Introduction:
A counter is a tool that keeps track of how frequently a specific event occurs. With the help of a 7-segment display, 7 LEDs, and push buttons, we can create a counter that counts from 0 to 9. We can also learn how to program an Arduino using the desktop IDE and how to connect the various parts using a circuit diagram.
Requirements:
- Arduino Nano
- 7 LEDs
- 1 Button
- 8 Resistors (7 100ohm , 1 220ohm )
- 1 4xAA Battery Holder
Working:
This project’s operation is quite straightforward. The components should first be connected as the circuit indicates. Using the USB connection, upload the code to the Arduino Nano. The seven different LEDs used by the seven-segment display operate in various combinations to turn on. There are a total of 10 combinations, where each combination represents a digit. The pin’s state changes when the button is pressed, signaling that the button has been pressed. The code counts how many times the button is pressed using a variable counter. This variable’s value represents the value that will be shown on the LED segment. It restarts from zero when it reaches the number nine. The up counter on this button counts up.
Schematic:
Upgrade:
Different upgrades may be available for this counter project.
- A single 7-segment LED can be used in place of 7 different LEDs to create a single LED segment.
- To raise the maximum count value, more than one segment may be added.
- A second button that serves as a down counter can be added.
Code:
https://github.com/soumya-shome/Digital_Counter
Working Video


0 Comments