Just double checking midi in optocopler schematic

snowsh

Well-known member
I am sure its right, but i just want to double check this before i get boards made.

in the schematic for the midi in optocoupler suggestion - https://www.pjrc.com/teensy/td_libs_MIDI.html

"MIDI input requires an optically isolated input. Output requires only 2 resistors. This schematic is recommended for Teensy 4.x & 3.x & LC:"

td_libs_MIDI_sch_t3.png


We are powering the optocoupler with 5v and sending the output to a t4.1 input pin. Is VCC pin 8 5v correct? Or should it be 3v3?
 
Pin 8 to 5V is fine, pin 6 can only pull down (open collector output) and the 470R resistor pulls the Teensy input up to a safe 3V3.

There’s a note on the page you linked that some opto-isolators need pin 7 pulled down to work properly - see this thread.
 
Back
Top