Multi toggle button press?

Status
Not open for further replies.

jizyjuice

Newbie level 3
Joined
Nov 28, 2006
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,302
multi toggle button

I'm trying to devise a way to implement connecting different pins using one button only. I'm trying to do this all in hardware with no programming involved. Programming it would be easy, but i was wondering if this is possible in hardware.

Ex:

button pressed zero times
led 1 - off
led 2 - off
led 3 - off

button pressed once
led 1 - on
led 2 - off
led 3 - off

button pressed twice
led 1 - off
led 2 - on
led 3 - off

button pressed three times
led 1 - off
led 2 - off
led 3 - on

And repeating like so with every button press.

Any ideas? I was looking into shift registers or possibly counters and a mux?
 

One of options is to use 4017 decade counter with 10 decoded outputs ..

Take a look at the attached 10-channel example ..
Re-configure 555 timer to button-operated-one-shot circuit (otherwise you will have to take care about button debounce problem) and to operate only 3 LEDs connect output [7] to [15] ..

Regards,
IanP
 

Attachments

  • 10-channel-sequencer-with-4017_8045.gif
    9 KB · Views: 101

    jizyjuice

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…