mayfly
Epic Member
- Messages
- 8,960
The relay control was tricky. My goal was to detect the sag of a collapsing power supply and flip the relays before the supply was completely gone. That is, while the electronics are still operating correctly. Here's what I came up with:
How it works is when power is applied, the base of Q1 is driven 'on', which pulls down the base of Q2, which turn the relays on. The relays are wired to be 'off' when there is no power, or when Q2 turns off. The trick is in the cap/resistor pair on the emitter of Q1. Those guys have a large enough time constant to hold their voltage when the +15V supply starts drooping. When that happens, the voltage on the base of Q1 drops below the voltage sitting on C7, which shuts off Q1, and then Q2. I tweaked the circuit so this happens at about 80% of the supply voltage, which ensures that the electronics are still running.
When Q2 turns off, the relays turn off, and the balanced outputs are crowbared to ground. The diode/Zener series pair around the relay windings is to protect Q2 against back EMF spikes, but still pull the power out of the coil reasonably quickly. R9 is just for current limiting in the relays.
How it works is when power is applied, the base of Q1 is driven 'on', which pulls down the base of Q2, which turn the relays on. The relays are wired to be 'off' when there is no power, or when Q2 turns off. The trick is in the cap/resistor pair on the emitter of Q1. Those guys have a large enough time constant to hold their voltage when the +15V supply starts drooping. When that happens, the voltage on the base of Q1 drops below the voltage sitting on C7, which shuts off Q1, and then Q2. I tweaked the circuit so this happens at about 80% of the supply voltage, which ensures that the electronics are still running.
When Q2 turns off, the relays turn off, and the balanced outputs are crowbared to ground. The diode/Zener series pair around the relay windings is to protect Q2 against back EMF spikes, but still pull the power out of the coil reasonably quickly. R9 is just for current limiting in the relays.