Im making a midi in for arduino. Im using the schematic below (Expect i use a 4N27). I cant seem to get it work. The optocoupler works. When i hook a LED to it, and use 5v, i can switch it on/off. But when i hook it up to my midi cable (Korg), nothing happens. Like the voltage is to low to switch anything... Wierd thing is when i hook a LED on pin 4 & 5 of the midi cable the LED flickers, almost on the beat... So i have no idea where to look.
did you try reversing connections on the midi side?
if your korg's signal can drive an LED it should be able to drive the optocoupler as well.
if that direct-to-cable LED is rather dim, maybe reduce the 220[ch937] resistor to something smaller but still large enough for some basic protection. 110 or 50[ch937].
also note how the setup inverts the signal, so with no (midi) input the output is HIGH. (depending on your test LED the current provided through the 3.3k[ch937] might not be enough to prove that optically :-/ )
Just to add that, as far as i'm concerned, someone really should label the midi socket "seen from in/outside" in this widespread midi-in schematic. I still haven't found the right way ;D :-[
Ok i tried it without the whole optocoupler thing (what the heck), and it works perfectly, even with the 220K in between... And i cant be the parts, i swapt them all for others...
I dont even get with the use the darn thing (ok to seperate circuits)... But why you dont need one with midi out then ?? :-/ Whats the worst that could happen when not including the opto?
>Ok i tried it without the whole optocoupler thing (what the heck), and it works perfectly, even with the 220K in between... And i cant be the parts, i swapt them all for others...
wait a minute, 220k you're saying? it should be 220 ohm only...
But I was having the same problem, and even lowering it to 47ohm it wouldnt' work for me. When I finally removed the resistor altogether it worked...