Four Digit Counter
An Easy to build & multifunctional counter with 7-Segment Led Display. (5/06/2004)
CODE: JP6281 -- Updated May 27, 2004 FUSE CONFIG: Internal RC
Just one PIC to use it as counter with multiple functions. Here is the pin information:
As you can see, now you can use any 7 Segment Led Display. Just connect the pin C CATHODE/C ANODE to the respective signal. The pin SAVE COUNT can be used to save the count and power off the circuit. When you power on the circuit, the display will resume the counting.
An example how to use it using common cathode displays, no resume count on power up and free runing:
Download the HEX file HERE
Every time when you turn ON the circuit, will display 0000. Each pulse in the INPUT pin will increase the count. You can replace the switch with a LDR, reed switch or any kind of sensor.
Use RED displays for better performance, Green displays may need 5.5 volts.
You can use this counter with one, two, three or four digits, just remove the displays that doesn't need to be used. Also, you can use transistors to increase the current for each display. Here is an example of a 2-digits counter using transistors:
The displays are connected in parallel, each segment is connected to the same pin, that means the segment 'A' is connected to all 'A' segments, 'B' to all 'B' segments and so on.
Please note when you use transistors for this circuit, you need to define the right display type (pin 3).
|< Charlieplexing 7-segment LED display.||Homepage
|How To Control Multiple Leds>|