Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 9th May 2008, 09:12 PM   (permalink)
Default debouncing??

Hi all!

When I apply pulses from signal generator the 74HC163 counter counts properly. But I tried to give pulses from an on/off switch (to simulate an environment where I have to count pulses coming out of another circuit)It jumps to a wrong value.(May be due to the bouncing at the switch) so I used an RC circuit to drag the pulse time such that all vibrating pulses vanishes inside the pulse. I have tried it with many R and C values. But It dint work. What to do now? I have attached my diagram please go through that.

Thank you!
Attached Images
File Type: jpg debouncing swich2.JPG (30.9 KB, 26 views)
Bavananth is offline  
Old 9th May 2008, 10:12 PM   (permalink)
Default

Here's a good reference and another, 555-based option. Is there a reason you need to stick to the RC design you have?

John
Attached Images
File Type: png 555pulse.png (6.4 KB, 26 views)
Attached Files
File Type: pdf debouncing_Ganssle.pdf (472.2 KB, 54 views)
jpanhalt is online now  
Old 9th May 2008, 10:32 PM   (permalink)
Default

You should look at Debounce Circuit on Google.
Your diode stops the input of the 74HC161 from going low so it will be high all the time until interference drives it low.
__________________
Uncle $crooge
audioguru is online now  
Old 10th May 2008, 12:30 AM   (permalink)
Default

Hi jpanhalt, That is a wonderful article about debouncing switches. But those diagrams will be useful for switches but not for my circuit. i have attached my diagram more clearly.

Caps dint work. Counter values vibrates when the pulses come. I want the distorted pulses to be a smooth pulse.

???????
Attached Images
File Type: jpg circiut.JPG (37.2 KB, 25 views)
Bavananth is offline  
Old 10th May 2008, 02:18 AM   (permalink)
Default

An on and off frequency works fine on a breadboard.
A high frequency analog circuit gets messed up due to the high stray inductance and capacitance of a breadboard.
__________________
Uncle $crooge
audioguru is online now  
Old 10th May 2008, 03:50 AM   (permalink)
Default

I don't see any reason a switch debouncer wouldn't work. For example, in the circuit I posted, pulling Pin1 of the switch low (i.e., the high-low transition in what you drew) creates a single pulse of width defined by the 555. It cannot be retriggered until the switch is re-opened (i.e., the high in your signal). Other latch debouncers act similarly.

It is true you get a pulse on LOW, rather than HIGH, but that is a simple thing to invert.

Is the signal you are counting regular? That is, are the high and low times regular are does one or both vary? In the 555 debouncer, for example, the low times can be whatever you want them to be, but the high pulse is fixed (before inversion). The flip-flop debouncers don't have that restriction.

John
jpanhalt is online now  
Old 10th May 2008, 07:52 AM   (permalink)
Default

Not regular pulses. I'll try those NE555. other one(SR doesn't look suitable for my applicastion. In which pin I apply my pulse stream? It would damage my generator circuit.)
Bavananth is offline  
Old 10th May 2008, 07:58 AM   (permalink)
Default

Quote:
Originally Posted by Bavananth
Not regular pulses. I'll try those NE555. other one(SR doesn't look suitable for my applicastion. In which pin I apply my pulse stream? It would damage my generator circuit.)
hi Bavananth,
When you build your 555 debouncer, keep the 555 output voltage the same as the voltage powering the HC163.
That is power the 555 from the same rail as the HC163. OK.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now  
Old 10th May 2008, 01:06 PM   (permalink)
Default

Quote:
Originally Posted by Bavananth
Not regular pulses. I'll try those NE555. other one(SR doesn't look suitable for my applicastion. In which pin I apply my pulse stream? It would damage my generator circuit.)
The 555 circuit will give a low period (after inversion) of fixed width.

The input is at the switch leg being pulled to ground.

John
jpanhalt is online now  
Old 11th May 2008, 06:32 AM   (permalink)
Default

After a complete analysis I found out the real problem. I used NE555 circuits to remove noises and vibrations. But still the problem is there.(Counter bounces whenever my circuits pulse is fed. But direct signal generator connection works perfectly)

So I Applied A big capacitor and resistor between the generated pulse and counter, to delay(slowly fade) the transition such that I can observe what happens when transition occurs.

I observed that It occurs It occurs whenever It passes 2V. (Either in the down ward direction or upward directin )

So now I can't get the point of it.

Why does this problem occur?
Bavananth is offline  
Old 11th May 2008, 02:30 PM   (permalink)
Default

What happens if you put the resistor in series with the signal and before the capacitor like in the attached?
John
Attached Images
File Type: png DEBOUNCER2.PNG (4.1 KB, 12 views)
jpanhalt is online now  
Old 11th May 2008, 03:13 PM   (permalink)
Default

A 555 causes a 400mA supply current spike each time its output switches. A Cmos 555 causes a much lower spike.
The datasheet for the LM555 recommends two supply voltage bypass capacitors to absorb some of the spike it produces.
__________________
Uncle $crooge
audioguru is online now  
Old 11th May 2008, 04:18 PM   (permalink)
Default

Hi, It worked at last. I used an active filter(using UAF42) and NE555 circuit(http://www.freeinfosociety.com/elect...ew.php?id=1624) but replaced the 1uF with a 47uF. Transition was very slow but it worked. counters dint blink. Thank you so much everybody. I really appreciate your help. Thanks again.
Bavananth is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Debouncing WHO Micro Controllers 1 26th February 2008 03:46 AM
Circuit for Push Button Debouncing with Pull Up to 5v o 12v jptalledo Electronic Projects Design/Ideas/Reviews 4 18th August 2006 08:52 PM
Debouncing circuit help! seekee General Electronics Chat 8 1st May 2005 11:55 PM
Switch Debouncing Steps Correct? Drew C. Micro Controllers 5 17th October 2004 05:11 AM
Debouncing: Hardware or Software Gandledorf General Electronics Chat 10 1st February 2004 02:31 AM



All times are GMT. The time now is 06:25 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker