Electronics Flashing LED circuit

Discussion in 'Modding' started by MeRviN, 17 Apr 2003.

  1. MeRviN

    MeRviN What's a Dremel?

    Joined:
    19 Mar 2003
    Posts:
    28
    Likes Received:
    0
    I want to make 2 sets of 3 led’s flash like this

    [​IMG]

    Does any one have any ideas?
    I want them to run on 5 volts
    Each led is 25 milliamps at 3.5 volts.
     
  2. whypick1

    whypick1 The über-Pick

    Joined:
    17 Oct 2002
    Posts:
    2,014
    Likes Received:
    2
    I think I got how this'll work.

    First, you setup a 555 timer in astable mode, set to a frequency of 1/2 of the desired duration between pulses. This will feed into a 4017 decade counter. The outputs will be connected in this manner: 0,2,4 as one group, 5,7,9 as another. Since I doubt that this IC is capable of outputting 20mA of current, you'll need to find the appropriate transitor to drive the LEDs. Wish I could help you there, but that's one subject of electronics where I'm utterly clueless. From what I've seen, there's two types of 4017 counters, by Fairchild and Phillips. Phillips has two clock inputs, one of which is negative edge triggered, the other positive edge triggered. Since our clock is continuously running, it shouldn't matter which one you connect it to. Besides that, the only thing left to connect is output 9 (that is, the 10th output) to reset.
     
  3. whypick1

    whypick1 The über-Pick

    Joined:
    17 Oct 2002
    Posts:
    2,014
    Likes Received:
    2
    Picture

    [​IMG]

    Couple things to note:

    A. The supply voltage is 5v
    B. I purposely left out the values for the resisitor, potentiometer, and capacitor since you need to define them. Use this site for help
    C. You might need a resistor on the base of the transitor.
    D. Those are NPN transistors, as the outputs are active high (positive)
    E. The 4017 counter will have Vcc and Ground inputs, but TINA left them off for some reason, otherwise they'd be connected.

    In case your unclear, the flasher works by having only every other pulse (except for when the groups change) connect to the LEDs, so it goes On-off-on-off-on-(group 2)-on-off-on-off-on-(group 1)-so and so forth.
     
  4. MeRviN

    MeRviN What's a Dremel?

    Joined:
    19 Mar 2003
    Posts:
    28
    Likes Received:
    0
    Thanks but thats all foren to me i dont know a great deal about electronics but i might be able to get some one who does know a bit more than me to look at your info thanks anyway.
     
  5. cpemma

    cpemma Ecky thump

    Joined:
    27 Nov 2001
    Posts:
    12,328
    Likes Received:
    55
    Another possibility is the 4060b, which has a built-in oscillator so saving a 555 chip. Putting a led between different divider outputs gives a wide range of flash effects, simplest being a double-flash like [​IMG] but you can certainly get 4 flashes with a pause between. Speed easy to alter.

    Again you'll need a transistor to boost current for several leds on together.

    More details here.
     
  6. Snood

    Snood What's a Dremel?

    Joined:
    27 Feb 2003
    Posts:
    366
    Likes Received:
    0
    this is a good circuit however as outputs 5,7 and 9 are connected, as soon as 5 is on it will re-set the circuit. avoid this by placing a diode on output 9 to stop the voltage from the other outputs resetting the circuit. i also think connecting them all together straight off might be wrong, however i'm not sure, but i allways thought that if a pin outputs and the voltage goes back IN another pin it might fry the IC. problem solved by protecting each pin with a diode. can someone please confirm this, or just tell me to FCUK off... either way, hope i helped.

    Snood
     
  7. whypick1

    whypick1 The über-Pick

    Joined:
    17 Oct 2002
    Posts:
    2,014
    Likes Received:
    2
    Bleh, thanks for catching that Snood, I didn't even think about that.

    Even if connecting each of the outputs is bad, this can be remedied by connecting them to OR gates. If you were to use gates, you could also remedy that problem I screwed up by using an AND gate, inputs being the output of the OR gate for the 2nd group and the output of pin 9, the output of which would go to the reset pin.

    I know that sounds cryptic, but I'm not at my computer w/ the electronics software I use.
     
  8. Snood

    Snood What's a Dremel?

    Joined:
    27 Feb 2003
    Posts:
    366
    Likes Received:
    0
    why bother using more ICs and slightly more complex (not challenging i know) but i'm sure 6 good ole diodes will do the trick.

    Snood
     
  9. Smilodon

    Smilodon The Antagonist

    Joined:
    25 Mar 2003
    Posts:
    6,244
    Likes Received:
    102
    you also need a resistor on each transistor (base) or else they will fry ... the can only stand 0,6-0,7 volts...
     
  10. Snood

    Snood What's a Dremel?

    Joined:
    27 Feb 2003
    Posts:
    366
    Likes Received:
    0
    this will work fine -
    [​IMG]

    Edit: you might also meed a current limiting resistor. as the same ammount of led's are on at any one time, you just need a single common resistor connecter to the cathodes.

    Snood
     
    Last edited: 18 Apr 2003
  11. Smilodon

    Smilodon The Antagonist

    Joined:
    25 Mar 2003
    Posts:
    6,244
    Likes Received:
    102
    looks good.. :thumb:
     
  12. whypick1

    whypick1 The über-Pick

    Joined:
    17 Oct 2002
    Posts:
    2,014
    Likes Received:
    2
    I updated that schem I made to fix the thing Snood caught and something else I did to: I tried to turn an NPN transistor into a PPP transistor.
     

Share This Page