You can connect the switch to the clock input of a flip-flop, such as a CD4013, with the D input connected to the /Q output. This will toggle the FF for each push of the button.
You would need to add a debounce circuit to the switch output to avoid multiple toggles.
You can connect the switch to the clock input of a flip-flop, such as a CD4013, with the D input connected to the /Q output. This will toggle the FF for each push of the button.
You would need to add a debounce circuit to the switch output to avoid multiple toggles.
I know what you mean, and it's puzzling. Perhaps the OP got his answer so didn't think he needed to reply. But it's just common courtesy to acknowledge any help you've received. Maybe it's a cultural thing.
Yes, I want an electronic solution.
The CD4013 could be an option, so for each switch i will need that many IC's. I just want the circuitry to be as simple as possible, and stable. I don't want buttons losing its state randomly lol
The Flip/Flops will need switch debouncing.
There is a page showing several interesting toggle circuits here http://www.bowdenshobbycircuits.info/page9.htm
The 555 timer has an internal flop and would be my choice.
Here is a sim of the circuit the KV linked. It seems to do the right thing with respect to switch bounce. The rc network defines a window during which further pulses from a bouncing switch are ignored.
The Flip/Flops will need switch debouncing.
There is a page showing several interesting toggle circuits here http://www.bowdenshobbycircuits.info/page9.htm
The 555 timer has an internal flop and would be my choice.
Here is a sim of the circuit the KV linked. It seems to do the right thing with respect to switch bounce. The rc network defines a window during which further pulses from a bouncing switch are ignored.
I haven't drawn the debounce circuit yet. I just got the CD4013 IC's today.
I'll get onto thata bit later perhps.
Its for both, logic and operate relays. I have a 5V power supply for it, some of the switches will go to an arduino, others will go to a transistor, then to a relay to for example, switch on car park lights, among other things
Take a look at the AMTEL U6032b chip...it's an
8 pin chip designed for use with pushbutton switches
to drive various loads. It contains a debouncer
and relay drive circuit..
I haven't drawn the debounce circuit yet. I just got the CD4013 IC's today.
I'll get onto thata bit later perhps.
Its for both, logic and operate relays. I have a 5V power supply for it, some of the switches will go to an arduino, others will go to a transistor, then to a relay to for example, switch on car park lights, among other things