Go Down

Topic: Which capacitor (Read 6844 times) previous topic - next topic

dannydebont

Hi Guys,

I made a copy of Kevin Darrah's manual input to shift registers. My L.E.D's are jumping all over the place when I give the 74HC595B1 manual input. I tried putting a capacitor over the switches (in an attempt to cancel the bouncing) but now it is even worse.

My question is this: How would I calculate which capacitor is needed to prevent this bouncing of the L.E.D's. Google has too many conflicting formulas. I am familiar with the series and parallel connections of capacitors, but I need some formula for getting the right capacitor for any circuit.

fungus

I looked my crystal ball but I can't see what you're actually doing from here...
No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

dannydebont

That is because you are using a crystal ball ... It is clouding your vision ... In a world without crystal balls "asking" normally does the trick ... :) ...

fungus

I still have no idea what you're doing - where you're putting the capacitors, what values you've tried, how your 'switches' are wired, etc.

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

TomGeorge

Hi Danny, can  you post a copy of your circuit diagram and post a copy of your sketch.
http://forum.arduino.cc/index.php/topic,148850.0.html
This link will help you with posting them.

Tom..... :)
Everything runs on smoke, let the smoke out, it stops running....

Grumpy_Mike

Quote
How would I calculate which capacitor is needed to prevent this bouncing of the L.E.D's

Use the formular Time constant = R x C

cjdelphi

Flickering would indicate a loose connection maybe on the latch or clock..

But a 0.1uf cap should be plenty between 5v pin and gnd pin....

dannydebont

Hi Guys,

Sorry for the late reply ... I have included a schematic and a Fritzing file. I have now added a de-bouncing circuit and it works absolutely NOT ... NOTHING ... NADA ...

Please give me some pointers ...

Thank You

Danny

Paul__B

Try raising the resistors on the HC595 LEDs to 1k, put a 100 nF capacitor across Vcc and ground on each (I am assuming you are using a breadboard) and  a 47 µF capacitor across the supply as well.

TomGeorge

Hi,  Danny, what are you using as your power supply.
Have  you measured the voltage at the various switched input pins to check that they are getting 5V when the switch is activated.


Tom... :)
Everything runs on smoke, let the smoke out, it stops running....

dannydebont

#10
Nov 10, 2013, 10:57 am Last Edit: Nov 10, 2013, 11:05 am by dannydebont Reason: 1
Hi,

I am using the power from an Arduino Uno's 5V and GND pins ... I still need to hook it up to be able to work from a 9v (or other) battery ... ( This project is to teach underprivileged school children (and myself of course  :smiley-red: ) so it  needs to work of a battery ) ...

The other thing I noticed is that when I take an L.E.D (that is lying around) and hold it against the leg of the DATA PIN or the leg of the LATCH PIN (on the actual 74HC595) while pressing their respective buttons (switches) they are very dim, but when I do the same to the LATCH pin, it is brighter ... Don't think it is serious, just thought I'd mention it ...

I will try the 47uF capacitor and changing the resistors on the output to the L.E.D's ...

Thanks to everyone assisting me ...  :D

Have a nice day

Danny

ps: O yes, all L.E.D's are 3mm

TomGeorge

Hi, I take it that you do not have a multimeter of any sort to measure voltages.
You will need one to help with development of your project.
Even a cheap chinese unit will suffice, a long as it can measure DC/AC , resistance and even test diodes.
The arduino 5V pin will not be able to power those LED's, you will need a separate supply to power the LEDs.

Tom.... :)
Everything runs on smoke, let the smoke out, it stops running....

Paul__B

Of course the LED diameter has nothing to do with the electrical characteristics.  XD

My suggestion to put a 100 nF (0.1 µF) capacitor across Vcc and ground on each 74HC595 chip may prove to be the most important one.   Digital ICs can oscillate if not correctly bypassed.

The Arduino has a limited capacity to supply current, if the 74HC595 chips managed (though unlikely) to draw sufficient current to exceed this, things definitely would get unreliable.

Grumpy_Mike

Start off just trying to get one shift register to work only then try three.
The circuit is some what unconventional although nothing strikes be as wrong.
I agree with Tom, get a meter and measure that the voltage on the actual shift register pins is going up and down as expected, up being greater than 4V and down being less than 0.7V.

dannydebont

O.k Guys,

I made the changes as suggested (see included jpg and Fritzing file ) ...

Is the circuit at least correct?  :~

Danny ...

p.s: I disconnected the other two shift registers  =( ... And yes ... I'll get a bloody multimeter ...  :D

Go Up