fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

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 . But the recommended component, 6N138, is much more expensive.

Instead have the drive the base of an NPN and by adding appropriate resistors, I get much improved switching speeds. Is this good enough for a MIDI input circuit?

@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
youtu.be/APUhm2tsCiE

See Figure 13 High bandwidth optocoupler configuration
onsemi.com/pub/Collateral/AND8

I might need to try that for comparison

@mike805
I tried the trick with the PC817 . 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 amplifier with 150 ohm resistor across base-emitter, yielded noticeably sharper rising/falling edges

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)
worldradiohistory.com/Archive-

By contrast, optoisolator ICs such as the 6N138, arrange for the phototransistor emitter or photodiode anode to drive the base of an NPN BJT

Bornach

Finally got around to editing video of my experiments in improving response times of slow low-cost ICs such as the

youtu.be/s1l86nTIWEE
The improved speed was sufficient to pass data (31250 bits/s) through it