Phototransistor going bad regularly

sarahMCML

Joined May 11, 2019
697
o

How does this work? please explain. I'm not getting it.

would 1N4148 do?

Also, the regular non-zener diodes, I had thought that if they conduct in reverse direction then they are broken forever.
Right, you want one diode with its anode connected to Gnd, its cathode to the transistor's collector. Then a second diode connected the same way, anode to collector, cathode to +5V. 1N4148 will be fine.
What happens is, if a spurious pulse drives the collector more than ~0.6v below Gnd, the diode conducts and clamps the spike to Gnd.
The same with the upper diode, except this time any positive going spike gets clamped to +5V!
 

BobTPH

Joined Jun 5, 2013
11,524
Exactly. It is a standard way of clamping voltages to just beyond the supply rails. Nearly every input in a microcontroller has this protection. Without that, they would fail all the time.
 
Top