So I've not had the opportunity to dig into CMOS much before the past few weeks, but decided it was time. I'm trying to put together a latching relay driver, with the goals being:
- Use a "bouncy" momentary switch to reliably drive a latching relay
- Revert to bypass on power loss
- Start in bypass mode when first powered
- Ensure relay is in sync with the logic when first powered
I've been cooking out of Don Lancaster's wonderful CMOS Cookbook and using Art of Electronics as a reference, as well as studying Mictester's fantastic latching relay driver on FSB (topic "A Switching Scheme").
Here are two different schematics I've ended up with. I haven't tested either of them, I'm still just in the world of theory here. I understand the core relay driver portion (the half on the right) but it's the logic part that I'm trying to work through.


(note: C1 should be 1uF in circuit B)
And here are my questions.
1. Can circuit "A" be modified so it is in bypass state when first powered on? (i.e. logic-low, relay is off)
2. Is the "power-on reset" hooked up properly in circuit "A"? The IC1C stuff on the far-left is supposed to send a positive pulse on initial power-up. This is a cobbling-together of two different circuit fragments so I'm trying to make sure I understand how it's supposed to be connected to the bistable portion.
3. Would circuit "B" have any trouble driving the relay? Would a transistor buffer be helpful here? (I added one to circuit "A" out of caution, but it's an inverting type that replaces a Schmitt inverter, so won't work in the "B" circuit)
4. Is there anything that circuit "A" does that circuit "B" doesn't do? ("B" being a whole lot simpler and obviously preferable) - or any other weaknesses of "B"?
5. Is there any risk of the relay pulse "misfiring" and getting out of sync with the LED status? If so, this would be fixed by the next switch press, correct?
6. Would it be prudent to put a small resistor (e.g. 10R) between +V and this sub-circuit to help suppress any voltage spikes from the relay that could get into the main supply and be audible?
7. Assuming the momentary switch is wired off-board, is anything needed to protect the CMOS inputs from static or other unexpected voltage spikes?
Sorry for all the questions, but this will be hugely helpful. I'm a programmer by day, so my job is to think through how everything could possibly go wrong and guard against those things. So when I experiment with new and unfamiliar things like this, I immediately think defensively and want to understand how to make it as bulletproof as possible!