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
 
Thread Tools Display Modes
Old 23rd June 2008, 11:23 PM   (permalink)
Default Count Down Timer Problem (Again)

Ok, I've got a problem with this circuit again. A member on here helped me the first time I had a problem and it was solved, but now there's a new problem.

When I press the reload button that connects pin1 of IC5 to ground, it loads the input value of 60. However, instead of holding that value and counting down from 60, it imediately jumps to random numbers and then to either 99 or 88. From there the count down function doesn't work. HOWEVER, if the count down is initiated before the counter lands on 99 or 88, it will count down to 00 just fine like it's suppose to. Pressing the reload button to 60 causes it to jump randomly again. Any ideas?

GOkussj5okazu is offline   Reply With Quote
Old 23rd June 2008, 11:40 PM   (permalink)
Default

You might need to debounce your switch. First you get bounce when you press the switch, then more bounce when you move your finger off the switch.
Check this link, your best bet is the RC solution, the other is adding a chip.
http://www.ganssle.com/debouncing.pdf
Mikebits is online now   Reply With Quote
Old 24th June 2008, 02:19 AM   (permalink)
Default

Alright, I modified it as such. It still does it. That was,actually, my first thought, because I know the switching circuit is very sensitive. It seems that the two 74HC192's are having errors holding the input value of 60. When I press the reload switch, it loads the 60, but then it jumps to either 99 or 88, and it's always one or the other.

I have another circuit similiar to this, but it's input value is 32. Also, I modified the wiring on the first gate of the 74HC20. In my other circuit, pins 12 and 10 are each pulled high through a gate from 74HC14. Logically, I would think it could work either way. Am I wrong in the assumption? Could the way I have it wired now be causing a problem?

GOkussj5okazu is offline   Reply With Quote
Old 24th June 2008, 02:38 AM   (permalink)
Default

Your debounce circuit needs to be built as shown in the link I provided.



You can work out the RC values as shown in the equations, also in link.

Also, there is no need for the extra inverter.
Mikebits is online now   Reply With Quote
Old 25th June 2008, 03:27 AM   (permalink)
Default De bounce ALL switches

Your sw1 is not debounced
Also your 4 leds in parelle need a resistor. As your schematic indicates the Leds are pulling 28 amps as simulated using TINA.
This alone would rattle the power supply and cause all kinds of weird happenings
A 150 ohm resistor should bring it down to 23ma.
I would opt for a 200 ohm = 17ma
MrDEB is offline   Reply With Quote
Old 25th June 2008, 06:03 AM   (permalink)
Default

MrDEB is right, you need a current limiting resistor for each LED segment not one common one. 170 would be about right. You'll also need 0.1uf decoupling caps on every IC.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 26th June 2008, 04:31 AM   (permalink)
Default

Alright, here's what I've got. I haven't made these adjustments yet, but I will if ya'll think they look about right.


Last edited by GOkussj5okazu; 26th June 2008 at 04:32 AM.
GOkussj5okazu is offline   Reply With Quote
Old 26th June 2008, 11:01 AM   (permalink)
Default

Come on and give LEDs 1 through 4 also an individual current limiting resistor.
They like it.
Boncuk is online now   Reply With Quote
Old 26th June 2008, 11:21 AM   (permalink)
Default Why add more?

If you use a 2 watt or even a 1 watt resistor you don't need more than 1.
did adding the resistor, adding a switch de bounce, adding caps to supply/ground help??
MrDEB is offline   Reply With Quote
Old 26th June 2008, 11:04 PM   (permalink)
Default

Quote:
Originally Posted by MrDEB View Post
If you use a 2 watt or even a 1 watt resistor you don't need more than 1.
Yes, he can do that of course. With different foreward voltages of the LEDs he'll get nice looking uniform brightness of all four. They do have different UF.
Boncuk is online now   Reply With Quote
Old 26th June 2008, 11:35 PM   (permalink)
Default

Yes, your debounce looks correct. Just calc the right values. I don't think you need R5 anymore.
Mikebits is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Count Down Timer RetiredHAL Electronic Projects Design/Ideas/Reviews 8 8th March 2008 03:36 PM
count down timer nader hoseini Electronic Projects Design/Ideas/Reviews 1 28th August 2007 08:14 AM
Binary Count down timer hugehead General Electronics Chat 3 8th March 2005 12:49 AM
Count-down timer sword Electronic Projects Design/Ideas/Reviews 11 18th June 2004 02:03 PM
how do i count pulses using timer 0? vortech1 Electronic Projects Design/Ideas/Reviews 3 20th April 2004 08:28 AM



All times are GMT. The time now is 08:36 AM.


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