Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

on off every second press on button

Status
Not open for further replies.

ostr1969

New Member
how can i create simple circuit(dc) that will change state every second press?
press and release - on
press and release - still on
press and release - off
press and release - still off

or: another option
press - on
release - still on
press - off
release - still off

can it be done without controller?
 
Welcome to ETO!
This page has some circuits for the second option. The first option would require more complicated circuitry.
 
One possible solution to the first option would be to use a CD4017 (Or CD4022). Each press of the button would clock the CD4017 to the next state.
You would have a power on reset circuit to set it to state 0 the first press would set it to state 1. State 1 and state 2 outputs would be ORed together to give the output. So in states 1 and 2 the output would be on. The second press would set it to state 2 (so the output of the OR gate would still be high.) The third press would go to state 3 (So the output would be off.) the fourth press would go to state 4 but output 4 would be wired back to the reset pin so it would jump back to state 0.

Les.
 
The second bit of any binary counter that's clocked by the debounced button will do what you want.

Mike.
 
If you dont fancy the electronic approach you can use something like a sequencing relay, which will satisfy your second rule.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top