+ Reply to Thread
Results 1 to 13 of 13

Thread: LED Circuit mind of its own

  1. #1
    kenwalus Newbie
    Join Date
    Apr 2009
    Posts
    6

    LED Circuit mind of its own

    I have built a LED circuit that cycles 4 led’s with the push of a button. I am using a CD4017 and triggering it with a LM555. When I trigger the LM555 (pin 2) with a pushbutton the output is sent to the CLK of the CD4017. This causes it to advance one light. I have built 24 of these and they are located throughout the shop. This works fairly well so I took it a step further. I made a Master box that sits in the office. It has 24 sets of 4 LED’s that represent what is displayed on the small boxes. From each small box I send the same signal that I use to trigger the first CD4017 and have it trigger a duplicate CD4017 circuit. The lights will change at the same time . The problem that I am having is that the master box LED’s will change sometimes by themselves. I must be getting a stray signal from somewhere. Can I put a filter in the circuit? Any suggestions?


  2. #2
    Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent
    Join Date
    Nov 2007
    Location
    Phetchabun,Thailand
    Posts
    3,302

    Hi,

    that kind of behaviour might have many reasons, such as stray AC causing a timer circuit to be triggered or a false count pulse with the same effect.

    It would be helpful if you post an entire schematic diagram of the master and remote panels.

    Also distance between boxes and the kind of cable used has influence on the proper function of the circuit.

    Boncuk
    Proper Planning Prevents Piss Poor Performance

  3. #3
    kenwalus Newbie
    Join Date
    Apr 2009
    Posts
    6

    I will try to upload a schematic GIF format.
    The boxes are connected with CAT 5 cable to the main Junction Box. The furthest box is @100 ft away

    LED Circuit mind of its own-led-schematic-box.gif

  4. #4
    pcbheaven.com Newbie
    Join Date
    May 2009
    Posts
    84

    If you use only the CMOS and the 555 you mentioned, it would be good to have more than 5v supply, 9 or 12 would be better for the I2R loses. Also, a question. Have you add a pull up resistor?
    And on the eighth day God said, "Okay, Murphy, you're in charge!"

    www.pcbheaven.com

  5. #5
    sheldonstv Good sheldonstv Good sheldonstv Good
    Join Date
    Jul 2005
    Location
    warwickshire
    Posts
    202

    post a schematic so that we can see what you have built...we wont b scared of it!!!...also are u edge triggering yr 555?if u have a pushbutton connected so you ground pin 2 -as u release yr pushbutton u will have switch bounce which will cause unpredictable results regarding triggering and how long are the leads that connect the trigger signals to each 555?too long a lead length if its picking up electrical noise will also cause false triggering.... ive uploaded a switch debounce circuit for edge triggering yr 555 ........
    Attached Files
    Last edited by sheldonstv; 5th July 2009 at 12:53 AM.
    all "txt speak" has been removed from this post for the benefit of all other forum members who may get confused!!!

  6. #6
    sheldonstv Good sheldonstv Good sheldonstv Good
    Join Date
    Jul 2005
    Location
    warwickshire
    Posts
    202

    2 things with yr circuit-there is no power on reset....and the 555 needs to be edge triggered as my previous schematic shows with switch debounce......heres a revised 4017 schematic...also make sure there is adequate decoupling across supply lines and on the 555 timer add a 0.1mf from pin 5 to pin 1..........
    Attached Files
    Last edited by sheldonstv; 4th July 2009 at 12:25 AM.
    all "txt speak" has been removed from this post for the benefit of all other forum members who may get confused!!!

  7. #7
    k7elp60 Excellent k7elp60 Excellent k7elp60 Excellent k7elp60 Excellent k7elp60 Excellent
    Join Date
    Oct 2003
    Location
    Utah
    Posts
    913

    Quote Originally Posted by sheldonstv View Post
    2 things with yr circuit-there is no power on reset....and the 555 needs to be edge triggered as my previous schematic shows with switch debounce......heres a revised 4017 schematic...also make sure there is adequate decoupling across supply lines and on the 555 timer add a 0.1mf from pin 5 to pin 1..........
    The 555 doesn't need debouncing to trigger with a switch has shown.
    The great thing about electronics is unlimited ways to do the job. The only limit is one\'s imagination. I generally think my way is best.
    Show me a different way. I have an open mind.

  8. #8
    k7elp60 Excellent k7elp60 Excellent k7elp60 Excellent k7elp60 Excellent k7elp60 Excellent
    Join Date
    Oct 2003
    Location
    Utah
    Posts
    913

    Quote Originally Posted by kenwalus View Post
    I will try to upload a schematic GIF format.
    The boxes are connected with CAT 5 cable to the main Junction Box. The furthest box is @100 ft away

    Attachment 30960
    I see three problems with your posted circuit.
    1. Pin 4 of the 555 needs to be connected to pin 8
    2. You need on resistor about 680Ω between the common LED line and ground.
    3. You need a decoupling capacitor between +9V and ground, preferably close to the 555.
    Last edited by k7elp60; 4th July 2009 at 04:19 AM. Reason: addition
    The great thing about electronics is unlimited ways to do the job. The only limit is one\'s imagination. I generally think my way is best.
    Show me a different way. I have an open mind.

  9. #9
    kenwalus Newbie
    Join Date
    Apr 2009
    Posts
    6

    Thank you

    Thank you everyone for your replies and suggestions
    I will try next week and see how everything works out
    I willpost a final schematic when I finish

    Ken

  10. #10
    sheldonstv Good sheldonstv Good sheldonstv Good
    Join Date
    Jul 2005
    Location
    warwickshire
    Posts
    202

    regarding switch debounce-if the timed period is quite short the switch bounce will cause the 555 to retrigger and the 4017 will recieve more than the 1 desired clock pulse....switch bounce doesnt need to be a problem and there isnt much xtra circuitry to prevent it...also if he has long leads from his console to each circuit,a good clean switching signal is needed i have used 555s for quite a lot of things and switch bounce can cause strange things to happen with a 555.....
    all "txt speak" has been removed from this post for the benefit of all other forum members who may get confused!!!

  11. #11
    kenwalus Newbie
    Join Date
    Apr 2009
    Posts
    6

    LED mind of it's own update

    Well I have added a few ideas that I obtained from everyone and I think I have a Frankenstin. I have added the debounce circuit and it toggles fine. When I connect the Circuit with the 555 and the 4017 to the second 4017 circuit, I try to go to Prekit (which is the reset) the led will not come on. If I hit the switch again the prekit LED will come on but then change to Setup.
    Schmetic attached. Any Ideas?

  12. #12
    sheldonstv Good sheldonstv Good sheldonstv Good
    Join Date
    Jul 2005
    Location
    warwickshire
    Posts
    202

    no schematic????
    all "txt speak" has been removed from this post for the benefit of all other forum members who may get confused!!!

  13. #13
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,291

    The ordinary 555 causes a 400mA supply current spike when its output changes state. Then the CD4017 counters get all confused when their supply voltage suddenly drops when they are clocked.
    Use a Cmos 555 (LMC555, TLC555 or ICM7555) which does not have such a high current spike.
    Last edited by audioguru; 28th September 2009 at 02:07 AM.
    Uncle $crooge

+ Reply to Thread

Similar Threads

  1. Power of the mind...
    By Mickster in forum Chit-Chat
    Replies: 14
    Latest: 14th May 2009, 11:45 AM
  2. Would anyone mind simulating this simple circuit for me?
    By William At MyBlueRoom in forum Electronic Projects Design/Ideas/Reviews
    Replies: 16
    Latest: 8th April 2006, 09:02 PM
  3. any sharp mind around
    By emenent in forum Electronic Projects Design/Ideas/Reviews
    Replies: 2
    Latest: 9th June 2005, 12:44 AM
  4. never mind : )
    By Victor Frankenstein in forum Electronic Projects Design/Ideas/Reviews
    Replies: 0
    Latest: 3rd January 2005, 04:35 AM
  5. Counter with a mind of its own!
    By Barry in forum General Electronics Chat
    Replies: 8
    Latest: 30th April 2004, 08:49 PM

Tags for this Thread