Tri-color LED project

Discussion in 'The Projects Forum' started by hydra504, Sep 20, 2008.

  1. hydra504

    Thread Starter Member

    Oct 18, 2007
    16
    0
    Ok I have been working on this project for a while now,
     
    Last edited: Sep 21, 2008
  2. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    Can you post a schematic of your present circuit?

    hgmjr
     
  3. hydra504

    Thread Starter Member

    Oct 18, 2007
    16
    0
    here is the 555 that i build and was testing. it works at 5.5 second. when the swtich is pressed the red led is on. after the 100uF cap is about 2/3 the volatge of the source or VCC. The other green LED turns on.

    [​IMG]
     
  4. bertus

    Administrator

    Apr 5, 2008
    15,648
    2,346
    Hello,

    In your schematic only one of the leds will glow.
    The "yellow" state will not occur as it requires both leds to glow.

    Must "green" state remain on after the timing?

    Greetings,
    Bertus
     
  5. mik3

    Senior Member

    Feb 4, 2008
    4,846
    63
    You can use a 4 bit counter (or a 3 bit if you can find). Assume that the outputs of the counter are listed as Q0-Q3, with Q0 to represent the LSB. Then, connect the red led on Q0, the green led on Q1 and Q2 to the reset of the counter. When you give a pulse to the counter, the red will turn on (Q0 goes high), when you pulse again the counter the green led turns on (Q1 goes high) and when you pulse for a third time the counter the yellow led will appear (Q0 and Q1 go high, both leds turn on and make the yellow led). If you pulse for a fourth time then the counter resets and the leds are all off. Of course you can modify this circuit and connect your timer too to have the desired time delays.
     
  6. hydra504

    Thread Starter Member

    Oct 18, 2007
    16
    0
    awwww yes thank you! a counter should do the trick thanks!
     
Loading...