No video
MIDI for the Arduino - Circuit Analysis
A detailed analysis of a Midi Input and Output circuit for the Arduino
Like my videos? Please consider supporting Notes and Volts on Patreon / notesandvolts
Read more at www.notesandvol...
Want to purchase the gear I use? Check out my Amazon Influencer Page: www.amazon.com...
Пікірлер: 210
Congratulations! 9 years and this video is still superb
Such a great and rare video to find. It gives a beginner and an advanced lesson all in one. Well done!
@NotesAndVolts
8 жыл бұрын
+Mike Carroll Thanks Mike!
@Marius-vw9hp
6 жыл бұрын
Agree. This is high class Youtubing :)
@georgekingsley3972
3 жыл бұрын
Instablaster.
Good job. While it will work fine and not damage anything, the schematic in the video is slightly wrong compared to the actual MIDI standard. It is missing one 220 ohm resistor on the TX pin on output side. That will add up to the correct 660 ohms in series when driven from 5V, and not 440 ohms. The current also drops to more like 5 mA, which is the proper value.
@xxx7917
5 жыл бұрын
HidekiSamba that is correct
THE best explanation of the MIDI interface. Saved my neck already!
@NotesAndVolts
8 жыл бұрын
Thanks itlfrari! Glad to hear it :)
This is a clear, clean, informative video. I kept thinking about making a "well, actually..." type comment about the performance of a component, then you would say what I would've said. Great visuals, great information. Again, great job.
@NotesAndVolts
9 жыл бұрын
+RabbitRobit9876 Thanks RR! Glad you liked it
This is one of the most clear tutorials I've ever watched. Thank you for the time, detail and clarity. +1 sub.
@NotesAndVolts
7 жыл бұрын
Thanks PE! Glad you liked it :)
IT WORKED!!! After months trying, I got it working!!! I love you, dude!!! I used an Arduino Uno (clone) and a 4n35 optocoupler to use my old Casio keyboard as a controller in LMMS (a DAW like Ableton, FL Studio...). All it takes are different resistor values and different coding (100 ohms at opto LED, 1K ohms at collector to 5v, and using SoftwareSerial as input pin instead of main RX pin).
This video is of supreme quality. Subscribed.
@NotesAndVolts
8 жыл бұрын
Awesome! Thanks Nick!
Your video is very enjoyable to watch. the explanations are easy to understand and for someone whose English is not the native language, your English is perfect. thank you
What can i say you are the best teacher ever i have seen you do not assume that anyone "must or should know this or that" you do it from grass roots...... Exceptional, wish the videos help all. Even those having no background could get all of this....thank you
This taught me so much more than what I was wanting to know. Great tutorial!!!!!
Thanks a lot for explaining every component and its purpose in the circuit! This really helped refreshing my memory (20+ years ago). Currently building a MIDI-thru box as a warmup project :)
@NotesAndVolts
2 жыл бұрын
You are welcome!
I just want to thank you very much for making this video. I'd shake your hand if I could! I don't think I have ever seen someone explain a concept quite as well as you did in this video. Beautifully presented. Exceptionally well explained.
I'm amazed by how well you explained everything! Seriously, thanks a lot!
@NotesAndVolts
7 жыл бұрын
Thanks Matheus!
Great explanations, it really helpsunderstanding the MIDI In circuitry based on the 6N138
This is amazing. I'm building an Arduinoboy and this just helped me understand what the hell I am actually doing.
Awesome production quality. A very clear, easily understood, and well articulated explanation. This was my first encounter with Notes and Volts. (Liked/Subscribed/Commented/Saved to personal projects playlist)
@NotesAndVolts
8 жыл бұрын
Thanks Jake and welcome to the channel!
Nicely explained! You earned a subscriber
man, you're explaining this in such a great way. the visualisation helps a ton, you taking it step by step makes it so easy to follow. big thanks!
@NotesAndVolts
Жыл бұрын
Glad you liked it!
@marvinmatter1501
Жыл бұрын
@@NotesAndVolts absolutely. Your guide actually made it possible to build our PolyTape-O-Tron in class. Its 4 Casette players with tape loops, whos motor speed is controlled via an arduino that receives MIDI from DAWs. This makes it a 4-voice polyphonic synthesizer. Big fun!
Currently studying electronics engineering, attempting a homebrewed project, I can't express enough how clear your explanation of the circuit is. Congratulations for real!!! (instant sub)
@NotesAndVolts
Жыл бұрын
Thank you very much Kostas!
Came here looking for why you need the optocoupler on the midi in. Now I know how that entire circuit works. Excellent video, keep them coming!
@NotesAndVolts
8 жыл бұрын
Awesome! Thanks Paul!
Thank you very much . You have opened a door for me to enter into the world of MIDI & Arduino . Very much appreciated .
The most well documented video I ever watched. Congratulations.
@NotesAndVolts
2 жыл бұрын
Wow, thank you!
No Collage / School can teach better than this in 16 mins. Actually i watched this video couple of times to understand it better. Please help to share your knowledge. I am from India and teaching my students. Thanks.
@NotesAndVolts
6 жыл бұрын
Thanks Srini! I'm glad you like it. Say hi to your students for me :)
this is one of the best things i've ever seen on youtube. great work.
@NotesAndVolts
7 жыл бұрын
Thanks Theta!
What an excellent tutorial. You could not have made it any clearer!
@NotesAndVolts
9 ай бұрын
Thank you!
Thank you! I never have seen a video with such detailed explanation. Great!!!
What an excellent video! Clear explanations with great graphics! Thank you for sharing your knowledge.
@NotesAndVolts
8 ай бұрын
You're very welcome!
hey, pal Dave -- thanks so much for this! I was struggling with really erratic signals from my optocoupter but as soon as I added the 4.7K drain resistor, it was rock-solid. Your diagrams and explanations are top-notch.
@NotesAndVolts
2 жыл бұрын
Glad it helped!
What a magnificent explanation. You've earned an Argentine subscriber. Nice work.
@NotesAndVolts
9 жыл бұрын
Thank you and welcome aboard!
Super helpful video. Very well done -- direct and to the point. Nothing wasted and very clear. Thank you.
@NotesAndVolts
8 ай бұрын
Glad it was helpful!
Beat and clearest explanation I’ve seen on electronics period! Thanks!
@NotesAndVolts
2 жыл бұрын
Glad you liked it!
Wow, very well explained. I rarely like videos, but this one definitely deserves one.
@NotesAndVolts
9 жыл бұрын
+Eric Himmelblau Thanks Eric!
This video was excellent! I rarely find resources that do such a good job of demystifying something.
@NotesAndVolts
5 жыл бұрын
Thanks Mark!
Serial transmission (in particular MIDI) begins from the least significant bit up to the most significant bit. So, 10010100 at the beginning of the video actually has to be read as 00101001, which is not a MIDI message. Other than that, GREAT video!
The best midi explanation on yt! Great!👏👏👏
Although I understand all of this and have built a number of Boxes with a number of: IN / OUT / THRU Jacks; your instructions are Right-On.
@NotesAndVolts
6 жыл бұрын
Thanks Ted!
Thank you so much for all the midi videos, I've been watching midi videos for the past few days and yours are the best!!!! Thank you!!!!!!!!!!
@NotesAndVolts
3 жыл бұрын
You're very welcome!
Excellent and well produced video!
So glad I found this channel. I've been looking for some examples of how to use the Arduino as a midi controller, but with full explanations, not just images and codes. I am wanting to use my Arduino with Multiplexers to make something similar to the massive Midi Box 64 controllers, to build a controller for a VST Midi Modular!
As happens frequently with such things, I knew most of it already. It's always nice to have all the various gaps in my knowledge filled in and integrated. Most importantly; the style and manner of your presentation is simply marvelous: perfect pacing, pleasing little animated flourishes, and seamless repetition and summarization. KZread originally served me an episode later in the series, and I'm glad I decided to load the Playlist and watch all of your videos on this subject.
This is the best video I've seen on the topic. Nice work and thanks!
Great video. I have been wanting to learn about MIDI for a while. It made some things very clear and look for more videos like this.
Very nicely done! Looking forward to watching the rest right away : )
@NotesAndVolts
8 жыл бұрын
Thanks Eirik!
Excellent work. It is great to find a well done explanation of this circuit. Thank you!
@NotesAndVolts
4 жыл бұрын
Thanks Joe!
Epic video! I'm about to start building a midi sequencer for my microcontrollers class and this was a great overview! Now on to some more of your vids!
Excellent tutorial thanks!
Fantastic video, I'm just getting into all this stuff and this kind of circuit-first approach is super helpful. Thanks so much!
@NotesAndVolts
9 жыл бұрын
+Johnzoful Thanks Johnzoful! Glad it helped.
Thanks for this really clear explanation. Never knew this, now I know.
this tutorial is amazing! congratulation for the channel
Amazing video !! ⭐ Thanks man 🙏
Excellent tutorial!!
Holy smoke! That was clearer than 8k res.......SUBSCRIBED!
@NotesAndVolts
7 жыл бұрын
Thanks Steve! Welcome to the channel
What a Great Tutorial !!! The best I ever met !!! Thanks
@NotesAndVolts
9 жыл бұрын
Thanks Pierluigi!
This is just an amazing channel.
@NotesAndVolts
6 жыл бұрын
Thanks Kevin!
Revisited this video again. This is really god stuff.
that was extremely informative and helpful
Very good series. Tahnks
interesting explanation brother, keep spirit to give us good information bro
@NotesAndVolts
11 ай бұрын
Thank you, I will :)
really great even for student majoring in EE
Great tutorial. Love this channel!
@NotesAndVolts
7 жыл бұрын
Thanks Boxcow!
fantastic,very well explained...thx
@NotesAndVolts
8 жыл бұрын
Thanks Terry!
this is great, you're great... thanks!
Superb!
UPDATE. I could get it to work with 4n35 only (sw serial is not a good idea for midi lots of misses so RX is a way to go). Same diode between 1 and 2, 1 goes to (midi 4) thru R1 (220-330+ Ohm)... (use any you have), 2 goes to (midi 5). 4 goes to GND, 5 goes to RX and thru R2 (800-1.2K) to 5V. That's it. 3 and 6 pins are not used. OLD I cannot get it to work with 6n136, PC817, 6n138 all of them work separately, but not together with the Atmega328p. Tried 2 different functional midi outs. Tried it with 2 new Arduino Nano, with a standalone atmega328p on a board (with all required components) Rx,tx are workings because I use them to upload code via USB-TTL. I've tested the schemes manually by connecting +5v to pin4 and ground to pin5, so i can get LOW signal out of RX, which I can read on any digital or analog inputs, even if connected to rx on arduino. So it works by connecting external VCC. But if I connect to midi outs (tried 2 different 1working with 100% working cables) to this scheme it just does not react at all... It does not read. I've tried Midi input test example, serial software, just serial with baud rate 31250... it just does not work and I don't understand why.
Awesome explanation! Many thanks!
@NotesAndVolts
6 жыл бұрын
Thanks Nathan!
I'm building a MIDI filter with Arduino Pro Mini, and noticed the odd thing about gnd of MIDI out being connected at one end of the cable. I was able to get the board to come up with power from a MIDI in. It can't use the optocoupler (because it gets power from IN). It works (a MIDI IN/OUT filter that can be reprogrammed with Arduino code). The main deviation is that I connect the IN.4 (pin 4 of MIDI IN) straight to regulated power), IN.4 to 220ohms to 5v, IN.2 to ground, IN.5 to rx. Then I think it's OUT.5 to tx, OUT.4 to 220 ohms to vcc.
great tutorial! thanks for sharing
Thank you so much for details , very informative
@NotesAndVolts
8 жыл бұрын
Thanks Zaid!
Fantastic tutorial, I love the graphics also. Just the right amount of detail always validated by an example. Well done! I am definitely a subscriber now and cannot wait to see your website. Thanks and keep it up, please?
@NotesAndVolts
9 жыл бұрын
Thanks Stevie! Welcome aboard
That was awesome!
Unfortunately, MIDI out circuit from this video can destroy ATmega IC. (I done it two times ;/) You should use transistor to separate microcontroler pin from MIDI out. But still very good video, analysing of in and out circuits helped mi to understand how actually MIDI transmission works
@abhilashpatel1809
5 жыл бұрын
can you please give more information on whyATmega IC get failed.
awesome, thanks a lot
amazing video. good job!
Perfect explanation!! Keep doing your thing man :)
@NotesAndVolts
7 жыл бұрын
Thanks Luke!
Great videos, man! Thanks, I'm stunned.
@NotesAndVolts
8 жыл бұрын
+Guilherme Barros Thanks Guilherme! Glad you like them
Muito obrigado por compartilhar isso! VIREI Fã do canal e do site!
@NotesAndVolts
7 жыл бұрын
Gracias Daniel!
Amazing video
Thank you for this playlist :)
awesome video!
@NotesAndVolts
8 жыл бұрын
Thanks Ivan!
@ivanex12
8 жыл бұрын
i want to make a footswitch for amplitube with my arduino. what tutorial i need to see for make something like this?
Wonderful video ! I instantly subscribed ! X🤘🏻X
isn't the anode the negative pole though, it being the part where oxidation occurs, whereas the cathode is involved with a reduction reaction and therefore the positive pole (attracts electrons)
@chromatic-me
3 жыл бұрын
I think the reason for the naming is that in a rectifier circuit, the positive voltage appears at the “anode” of the diode. I agree that it seems wrong in the video.
Excellent video. Please do a tutorial talking about rotary encoders and MIDI controllers.
Thank You very much for making this precious video! Win a subscripted!
@NotesAndVolts
Жыл бұрын
Welcome aboard :)
thank you so much for this video. was just what i was looking for. keep up the good work. ~GG
@NotesAndVolts
7 жыл бұрын
Thanks G&G!
@gismosgadgets8343
7 жыл бұрын
:-)
I believe from 1:40 to 2:00 is misleading because it is shown on a timing diagram. AFAIK, the LSB is sent first (i.e just after the Start), the MSB is sent just before the Stop, just like RS232. Hence the message here is actually 0x29 (not 0x94 as you imply) and 0x29 is most likely a data byte, certainly not a Status byte which must have its MSB high. So a message "Start note / channel 5 (4+1)" should be drawn as L(Start)-LLHLHLLH-H(Stop) on a timing diagram. Watch out, I've seen several wrong diagrams on the Internet...
@fphenix
5 жыл бұрын
On the other hand I loved your part on Optocoupler.
@NotesAndVolts
5 жыл бұрын
Hi Frederic. Midi is big-endian and the MSB of the status is always low.
@fphenix
5 жыл бұрын
That's incorrect. BTW: I'm talking about the serial physical communication, not how to read a byte on a screen! The status messages go from 0x80 to 0xFF, that means MSB=High right there and serially the MSB is sent last just before the Stop-bit (so close to the right hand side on a timing diagram). Watch this (esp. from 16.40): kzread.info/dash/bejne/iGSAz6qGZZfUp8Y.html
@NotesAndVolts
5 жыл бұрын
kzread.info/dash/bejne/a5mi2MeieZPLl5c.html at 12:40
@fphenix
5 жыл бұрын
Yep, it confirms I am right: the oscillo shows the 0x90 as Start00001001Stop, so LSB first, MSB last. Funnily enough the diagram he then pops up is wrong, but the scope doesn't lie!
thank you, thank you & thank you!!! you are awesome
@NotesAndVolts
5 жыл бұрын
Thanks Zsolt!
This is what a perfect video looks and sounds like. It felt like I was getting high.
@NotesAndVolts
9 жыл бұрын
Thanks Jeff! I really appreciate the support.
Superb video. Wow.
@NotesAndVolts
8 жыл бұрын
Thanks James!
Very good videos. One question I have is that at 10:28: how can the diode has 5V when there are two 220 ohm resisters are connected in serial?
@mstergtr
5 жыл бұрын
You're right, it can't be 5 volts. The principle should be the same with the lower voltages amounts I suppose.
very very goooood video , thank you .
@NotesAndVolts
7 жыл бұрын
Thanks Pockey!
An excellent video. Thank you for posting it. I wonder if you might consider not using background music though? My type of hearing impairment makes speech harder to follow against background noise. Best wishes.
Do a video on MIDI in out communication via Bluetooth LE to Arduino please!!! What libraries do I use, code tips, etc. That would be very helpful! Thanks!
awesome!!! thank you
@NotesAndVolts
7 жыл бұрын
Thanks Gibran!
At 11.04 I don’t understand why you say it’s passing 0.7v? I thought it subtracts the 0.7v forward current from 5v leaving 4.3v to pass through the LED?
@jeberle1
3 жыл бұрын
The two components (the diodes) are in parallel. If the component on the left were an open circuit (missing), the component on the right would see all 5V. If the component on the left were a short circuit (just a wire) the component on the right would see 0V. The component on the left has a voltage drop of 0.4V (imagine it's a resistor), so the component on the right sees that same voltage, 0.4V. No more or less. This is w/in the diode's spec and so does nothing, nor is it harmed by this arrangement.
Hola, una consulta, el 6n138 solo necesito para la entrada midi? Mi proyecto es enviar comandos CC# a un roland gr-55, necesito poner un 6n138 en el circuito de salida? Gracias
Excellent video. I found only one fault, the conclusion around 1:55 is wrong. The LSB is transmitted first. So, the interpretation of the data is incorrect.
you guys make great videos. I still have no idea what you are talking about but you say it well. lol
@NotesAndVolts
7 жыл бұрын
Thanks James!
The lag between OFF and ON should be measured at 3.0 Volts for ON and not the zero crossing.
great video - how about a version with no music track ?