| × | 1 | ||||
![]() |
| × | 8 | |||
![]() |
| × | 1 |
Components and supplies
About this project
Arduino UNO is connected to the 8 segments (7 + decimal dot) of the single digit led, digital output. The LTS-546AWC is a common anode led digit so turning to LOW displays the segment.
Software is embedded in a simple library for convenience. No external libraries used.
In the circuit every segment is connected to Arduino pins with a 220 Ohm resistor to reduce current. The system is powered with 5V voltage.
Code
GitHub repository
Schematics
ledPinDP = 9; // the number of the LED pin decimal point
ledPinG = 8; // the number of the LED pin segment G
ledPinF = 7; // the number of the LED pin segment F
ledPinE = 6; // the numero of the LED pin segment E
ledPinD = 5; // the segment of the LED pin segment D
ledPinC = 4; // the number of the LED pin segment C
ledPinB = 3; // the number of the LED pin segment B
ledPinA = 2; // the number of the LED pin segment A