2-Player Multiplayer Reaction Game – Player 2

by DESHBOT in Circuits > Arduino

15 Views, 0 Favorites, 0 Comments

2-Player Multiplayer Reaction Game – Player 2

WhatsApp Image 2026-09-23 at 10.20.09 AM.jpeg
WhatsApp Image 2026-09-23 at 10.20.02 AM.jpeg
WhatsApp Image 2026-09-23 at 10.44.17 AM.jpeg

The objective of this project is to create a multiplayer reaction-time game using two Arduino Nano/UNO boards. The second board acts as Player 2's controller, using an OLED display and a push button.

The two Arduino boards communicate with each other using TX and RX serial communication.

Supplies

des 1.jpeg
uno.jpeg
oled.jpeg
WhatsApp Image 2026-08-25 at 12.00.19 PM.jpeg
WhatsApp Image 2026-09-23 at 10.44.17 AM.jpeg

Deshbot shield x2

Arduino Nano/UNOx2

0.96-inch 128×64 OLED display x1 ,

lcd 16x2 x1

Push button

Jumper wires x3

Connections


OLED Display

OLEDArduino Nano/UNO

VCC v- 5V

GND - GND

SDA - A4

SCL - A5

Player 2 Button

ButtonArduino

One pin - D12

Other pin - GND

Nano-to-Nano Communication

Player 2 BoardPlayer 1 Board

TX (D1) - RX (D0)

RX (D0) - TX (D1)

GND - GND

Working

WhatsApp Image 2026-09-23 at 10.19.33 AM.jpeg
WhatsApp Image 2026-09-23 at 10.19.41 AM.jpeg
WhatsApp Image 2026-09-23 at 10.20.13 AM.jpeg


  1. Player 2's Arduino starts and displays PLAYER 2 – READY on the OLED.
  2. Player 1 starts a new round.
  3. Both boards receive the START command.
  4. The game waits for a random amount of time.
  5. The Player 2 OLED displays GO!!! PRESS!
  6. Player 2 presses the button as quickly as possible.
  7. The Arduino measures the reaction time in milliseconds.
  8. Player 2's reaction time is sent to Player 1 through TX/RX.
  9. The OLED displays Player 2's reaction time.
  10. The same process can be repeated for multiple rounds.

Example OLED Display

Before the Game

PLAYER 2

READY

During the Game

GO!!!

PRESS!

After Pressing

PLAYER 2

TIME:
428 ms

Communication

Serial communication is used between the two Arduino boards.

  1. TX sends information.
  2. RX receives information.
  3. GND provides a common electrical reference.

The Player 2 board sends the reaction time in the format:

P2:428

where 428 represents the reaction time in milliseconds.

Result

The project creates a two-player reaction game in which Player 2 uses an OLED display and button while communicating with the other Arduino through TX/RX. The system measures and displays the player's reaction time.

Conclusion


This project demonstrates how two Arduino boards can communicate with each other while simultaneously handling user input and an OLED display. It combines buttons, OLED graphics, timing, and UART serial communication to create a simple multiplayer game.