Having finally abandoned the idea of using op amp to implement a toggle switch (as Sgt. Wookie once pointed out, using an op amp as a comparator really is a bit like "pounding in screws with a hammer"), I decided to go with the CD4027.

Wired up a preliminary circuit. No luck. I'd obviously done something wrong, so I just tore everything down and started again from scratch. Connected Vdd (Vcc) to 5V and Vss to ground. Repeatedly setting and resetting the flip-flop yielded very inconsistent results (and based on the above truth table, none of the other pins values should matter). Sometimes Q and ~Q would read correctly, sometimes not, and then other times they would fluctuate wildly for no apparent reason. What the heck?! I just don't know how to proceed at this point, honestly.

Wired up a preliminary circuit. No luck. I'd obviously done something wrong, so I just tore everything down and started again from scratch. Connected Vdd (Vcc) to 5V and Vss to ground. Repeatedly setting and resetting the flip-flop yielded very inconsistent results (and based on the above truth table, none of the other pins values should matter). Sometimes Q and ~Q would read correctly, sometimes not, and then other times they would fluctuate wildly for no apparent reason. What the heck?! I just don't know how to proceed at this point, honestly.

