#optocoupler

togo | 🇬🇱togolab@techhub.social
2025-10-19

Lazy Sunday afternoon project, a simple *PC817 OptoCoupler tester.

Two very simple ~5V circuits:

1) Quick check — push the button, LED on = works.

2) Test Circuit as mentioned in the datasheet for frequency / pulse behavior test.

Nothing fancy, but handy for sorting out good vs questionable parts.

Blog:
togo-lab.io/?p=153

Gitea:
gitea.togo-lab.io/tgohle/0002-

#electronics #DIY #optocoupler #pc817 #ToGoLab #SundayDIY

the final product, a pcb with some electronic partsoutput of a wave form generator, producing pulses and the measurement
2023-08-27

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

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

#cascode #electronics #transistor #amplifier #YouTube

2023-05-04

@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

2023-05-04

@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

#cascode #amplifier #optocoupler #electronics

2023-05-03

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

On a prototyping breadboard are a 555 timer wired up as an astable oscillator and two PC817 optocouplers, one of which is connected to additional discrete components: the emitter is driving the base of an NPN BJT. Resistors have been specifically chosen to minimise the rise/fall times of the signal measured at the transistor's collectorOscilloscope shows the 555 timer output as a yellow square wave, and the optocoupler collector-emitter voltage as a blue waveform that is anything but square. At 37kHz the output signal is clearly not usableThe oscilloscope is now hooked up the the collector of the NPN transistor whose base is driven by the 2nd optocoupler. The blue waveform is a near perfect square wave, with rise/fall times well within 2us spec for a MIDI application.

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst