Ive been trying to use this schematic: to drive relay (from this answer).
(Components are as specified in schematics, with
D2 being 1N4007)
Vcc is 12V from PC standard Molex connector,
DTR is from RS-232 DB9 serial port from same PC, and
GNDs from both Molex and DB9 ports are connected.
I've completed bottom half of schematics (ending with
T1), and wrote a simple software which does
DTR ON for 2 seconds, then OFF for 2 seconds, then repeats. I've tested it (by connecting voltmeter between
Vcc and output from
T1) and it worked for at least an half an hour by happily alternating between 0 V and 12 V (open terminal voltage) exactly as I needed.
I left it doing this ON/OFF switching, and went to work on upper half for few hours. However, when I come back, the lower part of schematics was dead - it's open terminal voltage between
T1 collector and
Vcc now alternated between 12V and 10V, and if I connected some load (upper half of circuit, which seems to work OK if I connect it to power supply directly) it dropped to constant about 3.5V
I'll tear it down in few days to examine/rebuild, but in the meantime, can someone:
- spot would could be wrong with this, and
- suggest what can be changed to make it more robust (it is going to be installed in fairly inaccessible place)?
At the time it was detected not working correctly,
T1 or rest of electronics did not seem hot (about room temperature, maybe little higher -- of course it might have been dead already by then)
Another thing, when measuring
GND on PC serial port via voltmeter, it seems voltages are -12V for OFF and +12V for ON (instead of 0V and 12V which I'd assume - however it seems valid configuration). Could that have impacted the circuit (and how to protect from it) ?
The forensics shows that the transistor
T1 died (the E-C measures as 12k resistor), the rest of components are OK. Does that help find the problem? I also note that
BC517 has VEBO of 10V - could that have caused the problem (the collector was open at the time