Testing the switching characteristics of cheapo PC817 optocouplers from Ebay.
555 timer astable is generating a 37kHz square wave test input.
Rise/fall time is way out of spec for use in #MIDI. But the recommended component, 6N138, is much more expensive.
Instead have the #optocoupler drive the base of an NPN #transistor and by adding appropriate resistors, I get much improved switching speeds. Is this good enough for a MIDI input circuit? #electronics #oscilloscope #breadboard
@bornach somewhere I saw a "fast optocoupler" circuit where the opto was the bottom transistor in a cascode, driving the emitter of a transistor. Since there was very little voltage change across the opto there was no Miller effect.
I know there are some optos that have a fast output amplifier built in.
As I understand it that's the problem with optos, the phototransistor is huge to collect light so it has a lot of Miller capacitance.
@mike805
[IMSAI Guy] explains the cascode amplifier trick
https://youtu.be/APUhm2tsCiE
See Figure 13 High bandwidth optocoupler configuration
https://www.onsemi.com/pub/Collateral/AND8273-D.PDF
I might need to try that for comparison
@mike805
I tried the #cascode #amplifier trick with the PC817 #optocoupler. IMSAI Guy only showed how the voltage of the transistor base affects the speed of the falling edge. But notice how the rising edge remains largely unaffected.
By comparison, the common mode NPN #transistor amplifier with 150 ohm resistor across base-emitter, yielded noticeably sharper rising/falling edges
#electronics #oscilloscope
Possible explanation for why you tend not to see optocoupler chip packages that combine a phototransistor/photodiode in a cascode configuration with a regular transistor in one integrated circuit, see this answer in Electronics (27 April 1978, page 154)
https://worldradiohistory.com/Archive-Electronics/70s/78/Electronics-1978-04-27.pdf
By contrast, optoisolator ICs such as the 6N138, arrange for the phototransistor emitter or photodiode anode to drive the base of an NPN BJT
Finally got around to editing video of my experiments in improving response times of slow low-cost #optocoupler #optoisolator ICs such as the #PC817
https://youtu.be/s1l86nTIWEE
The improved speed was sufficient to pass #MIDI data (31250 bits/s) through it