Turn on, and do stuff with 1 button

Discussion in 'Homework Help' started by dave_is_sexy, Apr 25, 2005.

  1. dave_is_sexy

    Thread Starter New Member

    Jan 16, 2005
    Hey guys

    I'm real stuck on getting a circuit which does the following:

    press the button once, and the circuit gains power and a blue light comes on
    press it again and a purple light replaces the blue
    push again and a pink light replaces the purple
    push again and it turns off

    I was thinking oy maybe some kind of counter combined with a thyristor circuit?
    I bought some RGB LEDs so have no problem getting the colours :)

  2. Brandon

    Senior Member

    Dec 14, 2004
    A counter, mux, 3 transistors to drive the leds and your resistors should be it. Counter is triggered by the button, Counter connects to the S0,S1,S2 lines of the mux, input of the mux be logic high, output for Y0 would be the trans circuit for the 1st led, y1 would be the next, etc.
  3. ram434

    New Member

    Apr 19, 2005
    I think you could do it with one dual D flip-flop chip and 2 AND gates