Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Registry shifter issue concerning LED's (3min20sec)

  1. May 24, 2014 #1
    Please see the youtube video. I am relatively new to d.i.y. electronics and am a little befuddled at this issue I am having with my 74HC595N bit shifter IC.
  2. jcsd
  3. May 25, 2014 #2


    User Avatar
    Gold Member

    clock is ringing or grounf is bouncing. Grounds are sloppy. LED causes more switched current so inductance has more effect. Try adding a small capacitor to the clock input or somewhere else to reduce the ringing or ground bounce.
  4. May 25, 2014 #3
    I tried adding different value capacitors to the switch and various other places. It either had no effect or made it worse. I tied putting the cap between ground and positive, before and after the switch but nothing seems to fix the issue. Do you have any other suggestions or is this something I will need to have an oscilloscope to figure out?
  5. May 25, 2014 #4


    User Avatar
    Science Advisor
    Homework Helper

    It would help to see a circuit diagram that shows the two places you connected the LED.

    What is the power supply? Is it adequately smoothed?

    I wonder if your "wrong" LED position is somehow momentarily shorting out the power supply rails when you press the switch, and the glitch in the supply voltage is causing the chaos in the shift register.
  6. May 25, 2014 #5


    User Avatar
    Gold Member

    I agree --- I am making blind guesses without a schematic. It is obviously double clocking. Does it clock twice when you press, or once on press and once on release?

    Put some more resistance in series with the LED. Again, just blind guessing.

    Post a schematic and photo so we don't have to go to youtube.
  7. May 25, 2014 #6
    Last edited: May 25, 2014
  8. May 26, 2014 #7


    User Avatar
    Gold Member

    too lazy to do a real schematic?

    1. You need a 0.1 bypass across the shift register VDD and gnd. Don't use leads to connect it. Just put it over the IC.
    2. When you have a 10K pulldown, the fall time when you release the button is slow. With 330 it is fast and either rings or is fast enough for the switch bounces to get through.

    3. Switches bounce, causing multiple clock pulses. Usually one filters the heck out of them and uses a schmitt trigger to square up the edges. Look up switch bounce.

    4. Adding a cap at the LED will do nothing. Add 100 ohms in series with the clock pin and a capacitor to ground at the clock pin. Or, just add a cap at the clock pin with no resistor. Experiment with the cap size. T=RC

    Digital logic is very fast. Use the shortest possible ground. (you have a long inductor as a ground and power supply)
  9. May 26, 2014 #8
    Thank you meBigGuy. I will try your suggestions. Also, I am not lazy just new to drawing schematics.
  10. May 26, 2014 #9
    OK, all is working now! I added a cap between the ground and vcc of the IC and it helped a little. What really did the trick though was moving the vcc pin of the IC to the shared positive rail of all the other components instead of using the rail at the bottom of the breadboard. I am not sure why this fixed the issue but all is 100% working now.

    Last edited: May 26, 2014
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted

Similar Discussions: Registry shifter issue concerning LED's (3min20sec)
  1. Level shifter question (Replies: 5)

  2. These are LEDs? (Replies: 11)