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.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.
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!