https://github.com/without-eyes/digitdisplayer
Simple digit displayer using Arduino Uno
https://github.com/without-eyes/digitdisplayer
7-segment-display arduino arduino-project arduino-uno cpp
Last synced: 2 months ago
JSON representation
Simple digit displayer using Arduino Uno
- Host: GitHub
- URL: https://github.com/without-eyes/digitdisplayer
- Owner: without-eyes
- License: mit
- Created: 2024-09-07T16:07:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-22T10:45:02.000Z (almost 2 years ago)
- Last Synced: 2025-02-21T22:43:07.499Z (over 1 year ago)
- Topics: 7-segment-display, arduino, arduino-project, arduino-uno, cpp
- Language: C++
- Homepage:
- Size: 297 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 7-Segment Display with Brightness Control
This Arduino project controls a 7-segment display to show numbers (0–9) and allows the brightness to be adjusted using buttons.
## Components
- Arduino Uno (or compatible)
- 7-segment display
- 3 push buttons
- Resistors
- Breadboard and jumper wires
## Schematic diagram

## Circuit
- **7-segment pins**: Connect to Arduino pins as per the `pins[]` array.
- **Buttons**: Three buttons connected to pins `10`, `11`, and `12` for increasing, decreasing the displayed number, and adjusting brightness.
- **PWM Pin**: Connected to pin `5` for brightness control via PWM.
## Pin Connections
- **Increase Button**: Pin 10
- **Decrease Button**: Pin 11
- **Brightness Button**: Pin 12
- **PWM Brightness Control**: Pin 5
- **7-Segment Display**: Pins `{7, 6, 4, 3, 2, 8, 9}`
## How it Works
- **Number Display**: Use the increase and decrease buttons to change the number on the display (0–9).
- **Brightness Control**: Use the brightness button to adjust the display brightness up or down, with a smooth transition.
- **Debouncing**: The code ensures buttons are debounced using the isButtonsPressed flag and a small delay.
## License
This project is open-source and available under the [MIT License](LICENSE).