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:


counter/JP6281DS.gif Four digits counter


  • CLEAR/COUNT - GND to clear count, VSS to count.
  • SAVE COUNT - GND start from zero on power up, VSS continue last count.
  • INPUT - Signal in, pulses to count.


    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:


    counter/JP6281.gif Four digits counter - schematic


    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.


    6/16/06 Update:


    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
    microcontroller Index
    How To Control Multiple Leds> 


    If any information, data, picture or design infringes a copyrighted material, please send me an e-mail asking to remove it along with the supporting data.
    Some features may not work with Google Chrome. © 2006-2010 Jose Pino - Powered by JPC Alpha