An Arduino Mega–based electronic scoreboard designed for school activities, classroom games, and local sporting events. The project drives multiplexed 7-segment displays for a countdown timer, period indicator, and two team scores.
This is a hardware prototype. Adapt the wiring, power supply, display type, and enclosure design to your own installation before using it at an event.
- Four-digit countdown timer showing minutes and seconds.
- Two-digit home and away scores, each limited to
00–99. - Single-digit period indicator.
- Six auxiliary LED outputs and a buzzer output.
- Serial control interface at
9600baud. - Timer1 interrupt for one-second countdown updates.
- Arduino Mega 2560 or compatible board
- Nine-digit multiplexed 7-segment display setup
- Current-limiting resistors and suitable display-driver circuitry
- Buzzer
- Optional LEDs connected to the auxiliary outputs
- Appropriate external power supply for the chosen displays and drivers
| Function | Arduino Mega pins |
|---|---|
| 7-segment lines | 22, 23, 24, 25, 26, 27, 28 |
| Digit select lines | 4–12 |
| Auxiliary LEDs | 46–51 |
| Buzzer | 52 |
| Status output | 53 |
The exact display wiring depends on whether your hardware uses common-anode or common-cathode displays and on the driver hardware you select. Verify the segment order and digit-select wiring before powering the circuit.
- Open
main.inoin the Arduino IDE. - Select Arduino Mega 2560 as the board.
- Wire the displays and outputs according to the pin map above.
- Upload the sketch.
- Open the Serial Monitor at 9600 baud.
Commands are sent as plain text through the serial connection.
| Command | Action |
|---|---|
basla |
Start the countdown workflow. |
durdur |
Stop the countdown workflow. |
sMM |
Set the countdown minutes; for example, s10 sets 10 minutes. |
pN |
Set the period indicator using one digit; for example, p1. |
eHOME-AWAY |
Set scores; for example, e12-9 sets home to 12 and away to 9. |
1 |
Clear or initialize the display state. |
The score parser also accepts score values without a separator when the intended digit grouping is unambiguous. The dashed form, such as e12-9, is recommended.
- The sketch uses direct pin control and multiplexing; display brightness and stability depend on wiring and driver circuitry.
- The timer state is held in memory and resets when the board resets.
- Test every output with a low-power setup before connecting a full-size scoreboard.
This repository includes the existing project license. See LICENSE.txt.