Single Button Cycler

    Joined
    Jul 29, 2013
    Messages
    1,173
    Reaction score
    494
    • Competition Winner - Small Fleets
    • Top Forum Contributor
    • Legacy Citizen 5
    I cannot find a thread about this one, so let me try and explain what I'm attempting to do.

    I want a single button to cycle through multiple inputs.

    Push a button, and output #1 turns high.
    Push same button, out #1 turns off, #2 turns on.
    Push again, #2 turns off, #3 turns on.
    Push a fourth time, #3 goes off, all outputs are off.

    I'm not good enough at describing this to find an answer via googling and I'm way too bad with logic to come up wit ha solution on my own. Some help would be appreciated.

    Bonus points if you can explain to me a version of this where the outputs turn on sequentially and stay on until the fourth button press.
     
    Joined
    Apr 24, 2013
    Messages
    436
    Reaction score
    73
    • Legacy Citizen 3
    Joined
    Jul 29, 2013
    Messages
    1,173
    Reaction score
    494
    • Competition Winner - Small Fleets
    • Top Forum Contributor
    • Legacy Citizen 5
    No, not entirely, although one of the memory cells is probably needed here.

    I will describe it more simply.

    Three output blocks, let's just say they're activators, they are all off.


    [off] [off] [off]

    This is the starting point, and the entire system is controlled by one button.
    Push the button once it looks like this.
    Once
    [on] [off] [off]

    Twice
    [off] [on] [off]

    Thrice
    [off] [off] [on]

    And the fourth time brings us back to the starting point.
    [off] [off] [off]


    It has to be compact, which is why I'm trying to do it with one button as the input, I just want it to "cycle" between different states.
     
    Joined
    Apr 24, 2013
    Messages
    436
    Reaction score
    73
    • Legacy Citizen 3
    If you could figure out a shift register it has all the elements you need for what you wanted.

    Anyway I went and threw together a little demo of what you wanted.
    Takes 4 button presses to go through [1,0,0] [0,1,0] [0,0,1] [0,0,0].
    www.dropbox.com
     
    Joined
    Jul 21, 2013
    Messages
    2,932
    Reaction score
    460
    • Hardware Store
    No, not entirely, although one of the memory cells is probably needed here.

    I will describe it more simply.

    Three output blocks, let's just say they're activators, they are all off.


    [off] [off] [off]

    This is the starting point, and the entire system is controlled by one button.
    Push the button once it looks like this.
    Once
    [on] [off] [off]

    Twice
    [off] [on] [off]

    Thrice
    [off] [off] [on]

    And the fourth time brings us back to the starting point.
    [off] [off] [off]


    It has to be compact, which is why I'm trying to do it with one button as the input, I just want it to "cycle" between different states.
    You want a counter coupled to a decoder.
     
    Joined
    Jul 29, 2013
    Messages
    1,173
    Reaction score
    494
    • Competition Winner - Small Fleets
    • Top Forum Contributor
    • Legacy Citizen 5
    Okay, I have no idea how any of that works, my logic ability extends to self-closing doors and multi floor elevators.

    That SMENT file works perfectly though, thank you.

    I'll try to take one apart and see how it works and maybe see if I can make one myself.

    Thank you so much.
     
    Joined
    Apr 24, 2013
    Messages
    436
    Reaction score
    73
    • Legacy Citizen 3
    I built it like that to show you some examples, its larger than what would be needed for the first thing you asked for.

    With a small amount of modifications I can make it fill this role "a version of this where the outputs turn on sequentially and stay on until the fourth button press." as well if you still want that.
     
    Joined
    Jul 29, 2013
    Messages
    1,173
    Reaction score
    494
    • Competition Winner - Small Fleets
    • Top Forum Contributor
    • Legacy Citizen 5
    I built it like that to show you some examples, its larger than what would be needed for the first thing you asked for.

    With a small amount of modifications I can make it fill this role "a version of this where the outputs turn on sequentially and stay on until the fourth button press." as well if you still want that.
    If it's a relatively easy change, sure, hook it up. Or explain how it works, now that I know roughly how the circuit works.