An Easy to build & multifunctional counter with 7-Segment Led Display using PIC16F628 microcontroller

Just one PIC to use it as counter with multiple functions. Here is the pin information:

16F628-JP6281-FOUR DIGITS COUNTER

 

PIN FUNCTIONS:

  • CLEAR/COUNT – GND to clear count, VSS to count.
  • SAVE COUNT – GND start from zero on power up, VSS continue last count.
  • C CATHODE/C ANODE – GND to use COMMON CATHODE Display, VSS to use COMMON ANODE.
  • 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:

 

JP6281-FOUR DIGITS COUNTER

 

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.

For more detail: An Easy to build & multifunctional counter with 7-Segment Led Display using PIC16F628 microcontroller

About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation and engineering. My writing style is clear and simple, and I am skilled in using infographics and diagrams. I am a great researcher and am able to present information in a well-organized and logical manner.

Follow Us:
LinkedinTwitter