Want A Counter Having Reset Button And Range Up to 9999(4 digit 7 seg.)

Thread Starter

aq_rules

Joined Oct 28, 2009
168
I want a schematic of such type of counter having the reset button and a count button(it will act like a trigger or it will be a push button),LCD displays a number everytime tht button is pressed..if tht button is pressed 5 times it displays 5 on the LCD
Max Count will be till 9999.
Plz help Me..
 

retched

Joined Dec 5, 2009
5,207
You write them to a uC (microcontroller) like a PIC.

You will need to use a PIC programmer like a PICKIT2.

There are many other programmers available. You may ask a friend to use theirs, or you can upload the code to microchip.com and they can program the PIC and send you the chip. That way you dont need to program it yourself.
 

n1ist

Joined Mar 8, 2009
189
If you don't want to use a micro, look at the ICM7224 chip. You may need to add some debouncing to the count input.
/mike
 

Thread Starter

aq_rules

Joined Oct 28, 2009
168
If i use a relay instead of a push button or switch will it work??
This relay will be connected to a infrared beam barrier circuit(having two parts)...for example a person passes through tht barrier with an average speed the relay will be active until the beam is not in contact with the other part of circuit..as the beam contacts other circuit relay goes off...plz rply soon
 

retched

Joined Dec 5, 2009
5,207
Relays still bounce. You need to de-bounce the signal from the relay. If you dont, you may count 3 or 5 or 15 counts for every 1 your trying to count.

I suppose you could use a SSR (Solid State Relay) to avoid bouncing.
 

beenthere

Joined Apr 20, 2004
15,819
By "latch on" I mean that the SSR will remain on once triggered until power is removed from the circuit. That is not good pushbutton behavior.
 

retched

Joined Dec 5, 2009
5,207
beenthere is correct. You will have to cut power in order to "turn-off" the relay.

There is a whole internet out there with circuits and topics on de-bouncing.

If you do a search in the forum, you will find many ways to de-bounce the switch.

If you find one that looks like you can handle, post it and we will see what we can do.
 

Thread Starter

aq_rules

Joined Oct 28, 2009
168
what about two plates of steel contacting together when displaced ?? i own re rolling mill in which we manfacture iron rods(used for construction)...when a iron rod comes from the machine displacing that steel plate over the other plate acting like a switch will it create any de bouncing thingy??
 

tom66

Joined May 9, 2009
2,595
I think you're talking about an SCR, silicon controlled rectifier, or a TRIAC, triode for alternating current. A solid state relay is just a MOSFET with its gate light coupled. A solid state relay does not latch, unless it is particularly designed to, or unless latchup occurs... if that even happens with an SSR.

You will need debouncing on pretty much any switch unless it is specifically designed to not bounce (it might be mercury wetted for example) or it already has debouncing logic built in (unlikely.)

If you want a discrete simple solution, you can use 4x CD4026 (or similar 4026 series) ICs. Each IC handles one digit and increments the next counter at tenth the rate of the input signal. Wiring them in series, with the "ungated 'C' segment" output wired to the input of the next counter would be a simple system, though it has its costs, and there is no easy way to record the input using a microcontroller or handle special cases like counting two at a time, it's a simple solution. Sometimes the simplest solution works best. A reset button could wire to pin 15 of the ICs, or it could temporarily switch off power to the chips (think pulling down the Vcc of the chips.)
 
Last edited:
Top