Main Content

Multi Player Score Tracker

Device for tracking multiple players’ or teams’ score for games and activities.

Assume you are part of a game or activity with following requirements

Multiple players or teams will be participating, don’t know the count of players in advance.
Each player or team will be earning or losing points based on the rule of the game.
Score of every players need to tracked using one device instead of multiple devices.
Game or activity may span across days, option to store and retrieve score during breaks or even after days.
Option to reset score of all players when you restart or reset the game.
Option to decide on increment and decrement step for the score.
Game is planned to happen outdoor (or indoor) with no access to power supply.
Multi Player Score Tracker (MPST) explained here has the features to support all of the requirements listed above.

This unit can be a gift to kids for their daily game and competitions.

Description of the system
MPST is built with one Arduino (any variant), one 16x2 LCD display, 3 push button switches and few other components. Different combinations of button strokes are used for achieving various operations. This unit can be powered by 5V USB supply or by 9V battery. While turning the device off score of all players get stored in EEPROM for later retrieval and for resuming game. On powering up the device previously stored score get from EEPROM and can be resumed. As the number of components are minimal it can be assembled in a small box (please refer to prototype image) for easy handling. By powering it with 9V battery unit can be taken for outdoor games as well.

System can be operated and controlled in 3 different modes with the help of 3 push buttons named ‘player’, ‘score up’ and ‘score down’ buttons. All 3 button’s status is scanned continuously to detect short press, long press and to decide on operation mode.

View score mode - This is the default mode, in this mode score of every player can be reviewed by just pressing ‘score up’ or ‘score down’ buttons. With every press of ‘up’ or ‘down’ buttons system cycles through score of each player.
Update score mode - This mode is for score update operation. Just press ‘player’ button to enter into this mode. With every push of ‘player’ button system cycle through each player’s score update mode. ‘Up’ and ‘down’ buttons are used for incrementing and decrementing score by the configured step value. To exit from this mode press and hold ‘player’ button for 2 secs.
Config mode - Press and hold both ‘score up’ and ‘score down’ simultaneously for 2 seconds to enter into this mode (make sure the first button to press is ‘score up’ followed by ‘score down’). There are 3 different configurable parameters, with every push of ‘player’ button system cycle through following 3 configurable parameters.
1.Number of players : This is the default option in config mode. Use ‘score up’ and ‘score down’ buttons to increment and decrement player count.
2.Reset score ? : This is for resetting every players score to zero. Use ‘score up’ and ‘score down’ button to answer ‘YES’ or ‘NO’ to this question.
3.Score step : This is for setting incremental / decremental step for score while updating score. Minimum is 1 and it can be set to any integer number. Use ‘score up’ and ‘score down’ buttons to choose the number needed.
In order to exit from config mode press and hold ‘player’ button for 2 secs.

There is a 10ms timer configured with the help of MsTimer2 library. Purpose of the timer function powerLossDetector() is to monitor the voltage level at A3 input and to keep C2 charged at a steady level. During power failure A3 input will show higher voltage level which will trigger EEPROM write operation to save all scores. High value capacitor C1 is a must for powering Arduino unit while writing data into EEPROM.”

Link to article