Projects / Sports scoreboard

Sports scoreboard

Intermediate3 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. NANO12:45

    Test one module

    Show digits with LedControl.

  2. NANO

    Chain the second module

    Show different numbers on each.

  3. NANO433

    Add the receiver

    Print button presses.

  4. NANO433

    Add the scores

    Buttons A and B.

  5. NANO433

    Add the timer

    Start and stop with C.

  6. NANO433

    Add the horn and the reset

    Buzzer at zero, hold D to reset.

  7. NANOABS

    Box it

    Fit the displays behind coloured acrylic.

In short

How do you build a sports scoreboard?

Two big LED score displays and a timer, controlled by a handheld remote, for school matches. You need Arduino Nano, 8-digit 7-segment module (MAX7219) × 2, 433 MHz 4-channel remote and receiver, Active buzzer 5 V, 12 V 2 A DC adapter, LM2596 Buck Module and ABS project box (100 × 60 × 25 mm). It takes 7 steps and about 180 minutes.

Level
Intermediate
Time
About 180 min
Parts
7

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
12 V adapterLM2596 IN+ and IN−Input
LM2596 OUT+ and OUT−Nano 5V and GND, display modules VCC and GND5 V rail (set to 5.0 V with a multimeter first)
MAX7219 module 1 DIN, CLK, CSNano D4, D5, D6Display data
Module 1 DOUT, CLK, CSModule 2 DIN, CLK, CSDaisy chain
Receiver D0, D1, D2, D3Nano D7, D8, D9, D10Remote buttons A to D
Receiver VCC and GNDNano 5V and GNDPower
Buzzer +Nano D11 (− to GND)Full-time horn

Code

Each 8-digit module is driven by a MAX7219 chip, which scans the digits itself, so the Nano only sends numbers. Two modules are chained together; the first shows the scores and the second the timer. The 4-channel remote's receiver has four outputs that go high while a button is pressed; check yours with a multimeter, and invert the logic in the code if yours go low. Buttons A and B add a point, C starts or stops the clock, and holding D for 2 seconds resets the board, which prevents an accidental press from wiping the score. Run both display modules and the Nano from a regulated 5 V rail set with a multimeter before connecting, and use a 12 V adapter of at least 2 A. Large digits for 20 m viewing need bigger displays than the small modules, so mount them behind a coloured acrylic window to raise the contrast, or use larger digit boards driven the same way. A basic remote can be triggered by anyone with the same type, so only use it where that does not matter. Arduino IDE, board "Arduino Nano" (try the Old Bootloader option if the upload fails).

Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

// Scoreboard. Libraries: LedControl. Board: Arduino Nano.
// Module 0: home score on digits 7 and 6, away score on digits 1 and 0. Module 1: match timer MM:SS.
#include <LedControl.h>
LedControl lc(4, 5, 6, 2);                     // DIN, CLK, CS, two modules
const byte BTN[4] = {7, 8, 9, 10};             // remote buttons A, B, C, D (HIGH while pressed on most receivers)
const int BUZZ = 11;
int home = 0, away = 0;
long timerSec = 20L * 60;                      // 20 minute match
bool running = false; unsigned long lastTick = 0, holdD = 0;

void show() {
  lc.setDigit(0, 7, (home / 10) % 10, false); lc.setDigit(0, 6, home % 10, false);
  lc.setDigit(0, 1, (away / 10) % 10, false); lc.setDigit(0, 0, away % 10, false);
  int m = timerSec / 60, s = timerSec % 60;
  lc.setDigit(1, 7, m / 10, false); lc.setDigit(1, 6, m % 10, true);   // decimal point between minutes and seconds
  lc.setDigit(1, 5, s / 10, false); lc.setDigit(1, 4, s % 10, false);
}

void setup() {
  for (byte d = 0; d < 2; d++) { lc.shutdown(d, false); lc.setIntensity(d, 14); lc.clearDisplay(d); }
  for (byte i = 0; i < 4; i++) pinMode(BTN[i], INPUT);
  pinMode(BUZZ, OUTPUT);
  show();
}

void loop() {
  static bool prev[4] = {0};
  for (byte i = 0; i < 4; i++) {
    bool now = digitalRead(BTN[i]);
    if (now && !prev[i]) {                      // new press
      if (i == 0) home = (home + 1) % 100;
      if (i == 1) away = (away + 1) % 100;
      if (i == 2) running = !running;           // start or stop the timer
      if (i == 3) holdD = millis();
      show();
    }
    if (i == 3 && now && holdD && millis() - holdD > 2000) {      // hold D for 2 s to reset everything
      home = away = 0; timerSec = 20L * 60; running = false; holdD = 0; show();
    }
    if (i == 3 && !now) holdD = 0;
    prev[i] = now;
  }
  if (running && millis() - lastTick >= 1000) {
    lastTick = millis();
    if (timerSec > 0 && --timerSec == 0) { running = false; tone(BUZZ, 2000, 1500); }   // full time horn
    show();
  }
}

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Press AHome score goes up
Press CTimer counts down
At zeroHorn sounds, timer stops
Hold D for 2 secondsEverything resets

If it does not work

Display dark

Check the 5 V rail, DIN, CLK and CS wires.

Wrong order of digits

Swap the digit numbers in the code.

Remote does nothing

Check the receiver's outputs with a multimeter and its pairing.

Scores jump

Add a short debounce delay or move the antenna.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the sports scoreboard?

Arduino Nano, 8-digit 7-segment module (MAX7219) × 2, 433 MHz 4-channel remote and receiver, Active buzzer 5 V, 12 V 2 A DC adapter, LM2596 Buck Module and ABS project box (100 × 60 × 25 mm).

How long does the sports scoreboard take to build?

About 180 minutes for a intermediate maker, in 7 steps.

How do I know the sports scoreboard works?

Press A: Home score goes up. Press C: Timer counts down. At zero: Horn sounds, timer stops.

Display dark: what should I check?

Check the 5 V rail, DIN, CLK and CS wires.

Wrong order of digits: what should I check?

Swap the digit numbers in the code.

Remote does nothing: what should I check?

Check the receiver's outputs with a multimeter and its pairing.

Scores jump: what should I check?

Add a short debounce delay or move the antenna.