Arduino is an excellent platform for learning electronics and programming because it allows us to transform a relatively simple idea into a physical system that actually works.
An interesting example is a project I developed: an electronic tennis scoreboard using Arduino, an LCD display, and a remote control to record the players’ points.
The idea is simple:
Every time a player wins a point, we press a button on the remote control, and Arduino automatically updates the score displayed on the LCD.
However, behind this idea lies an interesting combination of concepts: data input, infrared communication, processing, state management, and information display.
The Electronic Scoreboard Concept
Instead of updating the score manually, we can let Arduino manage the scoring.
The basic structure of the project can be represented as follows:
REMOTE CONTROL
↓
INFRARED
↓
IR RECEIVER
↓
ARDUINO
↓
GAME LOGIC
↓
LCD DISPLAY
↓
SCOREBOARD
The remote control acts as the input interface.
The LCD acts as the output interface.
Arduino sits between them, interpreting commands and deciding what should appear on the scoreboard.
Why Use a Remote Control?
One possibility would be to install two buttons near the display:
[PLAYER A] [PLAYER B]
That would work.
However, using a remote control provides a more interesting solution: the scoreboard can be placed in one location while the score is updated from a distance.
This also makes the project an excellent way to learn how Arduino receives infrared commands.
How Does the Remote Control Communicate with Arduino?
Infrared remote controls do not simply transmit a continuous beam of light.
When we press a button, the remote transmits a coded sequence of infrared pulses.
In simplified form:
BUTTON
↓
CODE
↓
INFRARED PULSES
↓
IR RECEIVER
↓
ARDUINO
Each button can be associated with a specific command.
For example:
BUTTON 1 → Point for Player A
BUTTON 2 → Point for Player B
This allows Arduino to identify which button was pressed and execute the corresponding action.
Libraries such as IRremote allow Arduino to receive and decode several protocols used by infrared remote controls, including NEC, Sony, Samsung, RC5, RC6, and others.
The Infrared Receiver
The circuit requires an IR receiver compatible with the remote control being used.
Conceptually, we have:
IR RECEIVER
│
┌─────┼─────┐
│ │ │
VCC GND SIGNAL
│
ARDUINO
The pin configuration should not be assumed based only on the component’s appearance, because it may vary between models.
The receiver converts the incoming optical pulses into an electrical signal that can be processed by the microcontroller.
First, We Need to Identify the Remote Control Codes
This is an interesting stage of the project.
Before programming:
“When button 1 is received, add one point.”
We need to know which code corresponds to button 1 on that particular remote control.
A common approach is to upload a receiver program first and observe the commands received through the Serial Monitor.
The current IRremote library documentation recommends using its ReceiveDemo example to identify the protocol, address, and command transmitted by the remote control.
We can then create our own associations:
Command X → Player A
Command Y → Player B
Command Z → Reset scoreboard
This also means that the project can be adapted to different remote controls.
The LCD Displays the Results
The second important element is the LCD display.
It transforms the values stored by Arduino into information that players can easily understand.
For example:
+----------------+
| A: 30 B: 15 |
| |
+----------------+
Or any other arrangement suitable for the display being used.
The important point is that the LCD does not control the score.
It simply displays the state calculated by the program.
We have:
Input → Processing → Output
This is a fundamental concept in embedded systems.
The Interesting Thing About Tennis: Scoring Is Not Simple Counting
If we were building a scoreboard for an activity where the points were:
0
1
2
3
4
5
...
The programming would be very simple.
However, tennis introduces an additional challenge.
The conventional point sequence within a game is:
0
15
30
40
After that, additional conditions are needed to determine the winner of the game.
This makes the project particularly interesting from a programming perspective.
Instead of simply writing:
points++;
We need to represent the current state of the game.
We Can Separate the Internal Value from What Appears on the Screen
An elegant strategy is to maintain an internal numeric variable:
0 → 0
1 → 15
2 → 30
3 → 40
In other words, Arduino does not need to literally store:
15
30
40
As though these numbers represented the mathematical number of points.
We could have:
pointsA = 2;
And the function responsible for updating the LCD knows that:
2 = "30"
This separates two different things:
The program’s internal logic and the way information is presented to the user.
This is a very useful programming practice.
The Program Becomes a State Machine
We can think of the scoreboard as a sequence of states:
0
↓
15
↓
30
↓
40
↓
GAME / Other
conditions
Each command received from the remote control can trigger a change of state.
For example:
REMOTE CONTROL
↓
"Point for Player A"
↓
Read current score
↓
Apply scoring rules
↓
Update state
↓
Update LCD
From an educational perspective, this is much more interesting than simply turning on an LED with Arduino.
What Happens If We Press the Button Twice?
Here we encounter another practical issue.
The remote control may transmit repeat information when a button is held down.
For example, the current IRremote library explicitly handles repeat frames and also allows long button presses to be detected.
This needs to be considered when building a scoreboard.
Imagine the score is:
15
The operator holds the button slightly longer than intended, and the program interprets:
15 → 30 → 40
That would be a problem.
Depending on the implementation, we can program the system to accept only one valid event per button press or properly handle repeat codes.
It Is Also Useful to Include an Error Correction Function
In practice, someone will inevitably press:
The wrong button.
Therefore, an interesting improvement would be to support:
+ Point A
+ Point B
- Point A
- Point B
RESET
Or even implement:
UNDO
In this case, Arduino could store the immediately preceding state.
We would have:
PREVIOUS STATE
↓
CURRENT STATE
↓
UNDO
↓
PREVIOUS STATE
This small feature makes the project an even more interesting programming exercise.
The LCD Can Also Display Other Information
Once Arduino is controlling the game, we do not need to limit the display to individual points.
Depending on the display size and future improvements, we could show:
PLAYER A
PLAYER B
POINTS
GAMES
SETS
And perhaps additional information.
At this stage, we begin to see how the project can evolve from a simple counter into a true programmable electronic scoreboard.
The Project Combines Hardware and Software
That is precisely what I find interesting about this type of experiment.
On the hardware side, we have components such as:
Arduino
+
Infrared receiver
+
LCD display
+
Power supply
+
Connections
On the software side, we have:
Command reception
+
Button identification
+
Scoring logic
+
State management
+
Display updates
Individually, each part is relatively simple.
The project comes together through the integration of all these elements.
Watch the Scoreboard in Action
In the video below, I demonstrate the electronic tennis scoreboard I developed using Arduino and an LCD, with points being added through a remote control.
It is a good example of how an Arduino project can go beyond traditional LED and sensor experiments to perform a practical task.
A Simple Project with Plenty of Room to Grow
The scoreboard also offers many possibilities for future improvements.
We could eventually add wireless communication, a larger display, a rechargeable battery, a buzzer, player names, score memory, or even match history storage.
However, there is a more important lesson.
This project demonstrates an extremely common architecture in digital electronics:
INPUT
↓
PROCESSING
↓
STATE
↓
OUTPUT
In this case:
REMOTE CONTROL
↓
ARDUINO
↓
SCOREBOARD LOGIC
↓
LCD
Once we understand this structure, we realize that the same principle can be used to build many other devices.
What changes are the sensors, commands, rules, and outputs.
This is precisely where Arduino stops being merely a board for experiments and becomes a platform for transforming an idea into a functional device.
To explore more content about electronic project development, circuit assembly, modifications, component reuse, and practical testing, visit the Projects, Circuit Assembly and Experimentation section.