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 29th April 2008, 03:38 AM   (permalink)
Default 555 Based Ammo Counter Tweaking Problems

OK, well I've posted about this a few times, and I've gotten it working, but I'm having a problem with two things.

1. Accuracy of the pulses.
2. Random counting.

Here's the circuit.



The monostable side of the 555 should trigger for 435ms, allowing 3 pulses from the astable side to activate the counter. I've having a few problems though.

I know the 555 formulas to figure out the parts to use to achieve 435ms, but it's not accurate enough. Some times it lets 2 pulses through, sometimes as many as 5 make it through. I need this to be 3, every time. SO, could someone possibly recommend some high accuracy parts to achieve what I need? The average resistors and caps from Mouser have too high tolerances to be accurate enough.



For the second problem, it jumps to random numbers. Pressing the "Reload" button sets the counter to 36. Every time I press the "Trigger", it should count-down by 3. This normally works, though it's sometimes 4. However, if I hold the "Trigger" button just right when I push it, it counts down three then jumps again or all the way to 99. I assume this has something to do with micro-arching in the switch causing ripples in the circuit. Any ideas to fix this?

Also, it seems to get dramatically more errors when the four LEDs are plugged in. Any ways to fix this?

Last edited by GOkussj5okazu; 2nd May 2008 at 06:48 PM.
GOkussj5okazu is offline  
Old 29th April 2008, 05:36 AM   (permalink)
Default

It would help if you provided part numbers for IC1, IC2, IC3, etc. It would also help if there was only one IC1 on the diagram. Which button is the reset button? You should debounce the Start Switch for starters. You can make a debouncer out of the redundant gates from IC5 (pins 4,3,12&13) and just tie pins 12 & 13 of IC3 high directly.
__________________
--- The days of the digital watch are numbered. ---
kchriste is offline  
Old 29th April 2008, 01:28 PM   (permalink)
Default

Alright, sorry about that. I fixed it, so now it shows my completed schematic.

Anyhow, so how exactly would I debounce the switch? I know how to do it with a simple resistor and cap, but IC5 is an inverter package and I don't know how to do it using inverters.
GOkussj5okazu is offline  
Old 29th April 2008, 07:10 PM   (permalink)
Default

Bump! So could someone offer a bit of advice on the matter?

I need to know how to debounce the "Trigger" switch to eliminate flase button-presses, and how to better increase the accuracy of the 555.

ANy help woould be most appreciated.
GOkussj5okazu is offline  
Old 30th April 2008, 01:37 AM   (permalink)
Default sure sounds like switch bounce

here is a link that explains and has circuits for debouncing.
the parts may be working just fine, just to much switch noise so circuit is confused.

http://www.ganssle.com/debouncing.pdf
how did you draw your circuit?
I found using expresspcb an excellent tool for drawing schematics that are readable or easier to read.
some of the gates you have look like parts I never saw before. Took a second look and kinda figured it out.
curious what is this for??
just for fun I might just draw this out in express pcb then layout a pc board.
MrDEB is offline  
Old 30th April 2008, 05:25 AM   (permalink)
Default reviewing your circuit

it has several problems
you mentioned that connecting the leds the circuit does strange things
The transistor needs to be biased as the way you have it connected the leds are drawing 2.31 amps(ran a simulation in TINA
WHY is ic5 pins 5 &6 connected to the ic4 (pins 4,5,6)
ic4 is being used as an inverter then you reversed it with ic5.
ic5 would be better IMO using a 74hc14(schmitt trigger) then use to de-bounce the switches.
Will try and finish up tomorrow as its my bed time 10:30pm here in Idaho
MrDEB is offline  
Old 30th April 2008, 01:29 PM   (permalink)
Default

The thing with IC4 and IC5 is suppose to work like this.

The count comes through the 6,5,4 gate in IC4 as low while it's open. IC2 needs a high count, so IC5 5,6 is there to re-invert it. The whole purpose of IC4 6,5,4 is so that once the counter reaches 00, the gate closes, stopping further counting. So, it's not just being used as an inverter.

Hope that helps.

Could you explain the transistor biasing a bit? Transistors aren't my strong suit, as I'm sure you can see.

Also, this is for a prop weapon. It's designed to mimic a digital ammo counter in the original, from 36 to 0 in bursts of 3 rounds.

Last edited by GOkussj5okazu; 30th April 2008 at 10:13 PM.
GOkussj5okazu is offline  
Old 1st May 2008, 08:18 PM   (permalink)
Default

Bump for anyone else who might be of assistance.
GOkussj5okazu is offline  
Old 1st May 2008, 08:51 PM   (permalink)
Default

A microcontroller would make this easy, considering you want some presets. eg: 36 rounds at a rate of 3 per burst till zero. Plus switch debouncing & 435ms pulse. No problem for a microcontroller.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 2nd May 2008, 01:51 AM   (permalink)
Default

Thanks. I figured it could be setup in a microcontroller, but I wouldn't have a clue where to start. I can make that next one like that though. Might you have some links I can read to get me started on that?
GOkussj5okazu is offline  
Old 2nd May 2008, 02:34 AM   (permalink)
Default

Check the links section of my site, lots and lots of PIC related sites including some of the best online tutorial sites I could find.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 2nd May 2008, 04:30 AM   (permalink)
Default PICS are great BUT!!

one needs to learn how to walk before they can run.
Yes PICS will save alot of time and money IF one knows how to program AND has a pic programmer.
I myself would love to learn PIC programming BUT being on a fixed income and too busy to start from scratch and learn something new. Besides to use a pic one still needs to interface with the outside world using transistors or other old school hardware.
I have enough problems trying to get a stereo graphic equalizer with 2-10x10 leds displays designed and design the double sided boards to build the monster on.add a pocket TILT unit w/ 2- 10 led displays )a boy scout I have in my troop is building.I am scout master, Weblos den leader, electronics merit badge counselor etc))
the ammo counter that is in another post is one example.
the person has several errors in his/ her circuit involving basic digital logic and the use of transistors. YES a pic would work BUT he/ she still needs to have and learn pic programming. Its not something one learns overnight.
I don't mean to sound like a grumpy old man, I agree with you on the usage of a pic BUT??
MrDEB is offline  
Old 2nd May 2008, 04:31 AM   (permalink)
Default

Quote:
Originally Posted by GOkussj5okazu
Bump! So could someone offer a bit of advice on the matter?

I need to know how to debounce the "Trigger" switch to eliminate flase button-presses, and how to better increase the accuracy of the 555.

ANy help woould be most appreciated.
I think you mean increase the accuracy of the 556. I would change the values of your timing capacitors to a lower value and increase the timing value resistors. I have found by using good film capacitors and good quality trim pots the timing is reliable and repeatable. Sometimes high value of electrolytic capacitors have some leakage current the affects overall performance. Changing the 100uf capactor to a film may be a problem, but you might be able to use a 1uf and not have the timing resistor to large.
Another thing I have found is to put a electrolytic capacitor about 47uf very close to the 556 package. Connect this capacitor between Vcc and ground.
__________________
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.
k7elp60 is offline  
Old 2nd May 2008, 02:56 PM   (permalink)
Default

I may be wrong but tatinum caps are better suited for this? vers standard film cap??
MrDEB is offline  
Old 2nd May 2008, 03:34 PM   (permalink)
Default

The OPs circuit would require about the same amount of hardware as this schematic. (Actually a little less as most modern PICs have a built in oscillator)
http://www.mikroe.com/en/books/picbook/7_08chapter.htm
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 2nd May 2008 at 03:37 PM.
blueroomelectronics is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
PIC Ammo Counter GOkussj5okazu Electronic Projects Design/Ideas/Reviews 2 25th April 2008 02:50 PM
Circuit for interactive art piece using 555, problems arise TStryker Electronic Projects Design/Ideas/Reviews 0 10th April 2008 04:49 AM
Dual counter bananasiong Micro Controllers 45 24th March 2007 03:49 AM
How we can do it in Assembly..Help Needed Ayne Micro Controllers 37 29th December 2006 06:49 PM
Input Counter Pic16F84A (Code problems) loco Micro Controllers 4 26th September 2006 02:19 PM



All times are GMT. The time now is 07:58 AM.


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

eXTReMe Tracker