MIDI for the Arduino - Circuit Analysis
HTML-код
- Опубликовано: 28 ноя 2014
- 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.notesandvolts.com/2014/11/...
Want to purchase the gear I use? Check out my Amazon Influencer Page: www.amazon.com/shop/notesandv... Хобби
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!
+Mike Carroll Thanks Mike!
Agree. This is high class Youtubing :)
Instablaster.
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.
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.
HidekiSamba that is correct
This is one of the most clear tutorials I've ever watched. Thank you for the time, detail and clarity. +1 sub.
Thanks PE! Glad you liked it :)
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
This taught me so much more than what I was wanting to know. Great tutorial!!!!!
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.
+RabbitRobit9876 Thanks RR! Glad you liked it
I'm amazed by how well you explained everything! Seriously, thanks a lot!
Thanks Matheus!
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
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).
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!
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.
Thank you! I never have seen a video with such detailed explanation. Great!!!
Nicely explained! You earned a subscriber
Thank you very much . You have opened a door for me to enter into the world of MIDI & Arduino . Very much appreciated .
This video is of supreme quality. Subscribed.
Awesome! Thanks Nick!
What an excellent video! Clear explanations with great graphics! Thank you for sharing your knowledge.
You're very welcome!
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!!!!!!!!!!
You're very welcome!
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!
Excellent and well produced video!
Very nicely done!
Looking forward to watching the rest right away : )
Thanks Eirik!
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!
Glad you liked it!
@@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!
THE best explanation of the MIDI interface. Saved my neck already!
Thanks itlfrari! Glad to hear it :)
Wow, very well explained. I rarely like videos, but this one definitely deserves one.
+Eric Himmelblau Thanks Eric!
This is the best video I've seen on the topic. Nice work and thanks!
This video was excellent! I rarely find resources that do such a good job of demystifying something.
Thanks Mark!
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)
Thanks Jake and welcome to the channel!
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)
Thank you very much Kostas!
this is one of the best things i've ever seen on youtube. great work.
Thanks Theta!
Great explanations, it really helpsunderstanding the MIDI In circuitry based on the 6N138
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.
Glad it helped!
The best midi explanation on yt! Great!👏👏👏
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 :)
You are welcome!
The most well documented video I ever watched. Congratulations.
Wow, thank you!
Super helpful video. Very well done -- direct and to the point. Nothing wasted and very clear. Thank you.
Glad it was helpful!
Beat and clearest explanation I’ve seen on electronics period! Thanks!
Glad you liked it!
Excellent tutorial thanks!
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!
Awesome! Thanks Paul!
Excellent tutorial!!
Excellent work. It is great to find a well done explanation of this circuit. Thank you!
Thanks Joe!
Fantastic video, I'm just getting into all this stuff and this kind of circuit-first approach is super helpful. Thanks so much!
+Johnzoful Thanks Johnzoful! Glad it helped.
What a magnificent explanation. You've earned an Argentine subscriber. Nice work.
Thank you and welcome aboard!
Thanks for this really clear explanation. Never knew this, now I know.
Revisited this video again. This is really god stuff.
this tutorial is amazing!
congratulation for the channel
Very good series. Tahnks
This is amazing. I'm building an Arduinoboy and this just helped me understand what the hell I am actually doing.
Amazing video !! ⭐ Thanks man 🙏
that was extremely informative and helpful
amazing video. good job!
Great tutorial. Love this channel!
Thanks Boxcow!
What a Great Tutorial !!!
The best I ever met !!!
Thanks
Thanks Pierluigi!
That was awesome!
What an excellent tutorial. You could not have made it any clearer!
Thank you!
Great videos, man! Thanks, I'm stunned.
+Guilherme Barros Thanks Guilherme! Glad you like them
This is just an amazing channel.
Thanks Kevin!
great tutorial! thanks for sharing
Perfect explanation!! Keep doing your thing man :)
Thanks Luke!
Awesome explanation! Many thanks!
Thanks Nathan!
Thank you for this playlist :)
Thank you so much for details , very informative
Thanks Zaid!
Amazing video
this is great, you're great... thanks!
awesome video!
Thanks Ivan!
i want to make a footswitch for amplitube with my arduino. what tutorial i need to see for make something like this?
Superb!
Holy smoke! That was clearer than 8k res.......SUBSCRIBED!
Thanks Steve! Welcome to the channel
Wonderful video ! I instantly subscribed ! X🤘🏻X
fantastic,very well explained...thx
Thanks Terry!
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?
Thanks Stevie! Welcome aboard
thank you so much for this video. was just what i was looking for. keep up the good work. ~GG
Thanks G&G!
:-)
interesting explanation brother, keep spirit to give us good information bro
Thank you, I will :)
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!
awesome, thanks a lot
really great even for student majoring in EE
Superb video. Wow.
Thanks James!
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.
Thanks Srini! I'm glad you like it. Say hi to your students for me :)
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.
Thanks Ted!
Excellent video. Please do a tutorial talking about rotary encoders and MIDI controllers.
very very goooood video , thank you .
Thanks Pockey!
thank you, thank you & thank you!!! you are awesome
Thanks Zsolt!
awesome!!! thank you
Thanks Gibran!
Muito obrigado por compartilhar isso!
VIREI Fã do canal e do site!
Gracias Daniel!
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.
RUclips 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.
you guys make great videos. I still have no idea what you are talking about but you say it well. lol
Thanks James!
This is a great video. It has cleared up lots of my electronic questions about midi. I'm currently working on a project that would take audio clock and translate it to midi clock. Do you think you could make a video that explains how to create the 10 bit streams that allow midi to be entered into the arduino
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.
Thank You very much for making this precious video! Win a subscripted!
Welcome aboard :)
Excelent!
Subscribed!
(Considering being a Patreon)
LittlestPetShopEsp Welcome aboard! And thank you for your support!
LittlestPetShopEsp Welcome aboard! And thank you for your support!
Excellent tutorial, how did you do it?
This is what a perfect video looks and sounds like. It felt like I was getting high.
Thanks Jeff! I really appreciate the support.
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.
You are awesome
Thank you!
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
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.
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?
You're right, it can't be 5 volts. The principle should be the same with the lower voltages amounts I suppose.
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!
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
can you please give more information on whyATmega IC get failed.
great video - how about a version with no music track ?
Great video! I totally subscribed! I'm confused about one thing, though. Wouldn't there be a voltage drop as the 5 volts goes across the two 220 ohm resistors?
Actually, it's a current limiter.