Discipline DUEL · ESP8266
Duel Game System
This page describes the implementation of a duel game system using ESP8266. The system uses several components, including sensors and relays, to manage a reaction time game between two players. The main functionalities are managed through a web server hosted on the ESP8266.
Code Explanation
The code provided configures the ESP8266 to run as an access point and serves a web page that allows players to start the game, view their reaction times, and adjust sensitivity settings. Here's a brief overview of the key components of the code:
- Web Server: Handles HTTP requests to control the game and display results.
- Reaction Time Measurement: Measures the reaction time of each player when they detect a signal.
- Display: Uses an LCD to show the game status, including the countdown and results.
- Sensitivity Settings: Allows adjustment of sensor sensitivity via web interface.
Schematic
Below is the schematic diagram of the connection setup for the Duel Game System. It includes the ESP8266, sensors, relays, and the LCD display.

Project Components
- Blue LED Rocker Switch
- DC Jack Female Panel Mount 5.5 x 2.1 mm
- Power Adapter 12V 1000mA 5.5 x 2.1 mm
- NodeMCU ESP8266 V3 WiFi Module
- 4-channel DC 12V Relay
- Quick Connector Screwless LT-633 SPL 63 250V 32A
- 433MHz Relay 1 Channel DC12V10A Remote Control
- Wireless Remote Control 433 MHz
- A27 L828 MN27 27A CA22 12V 26mAh Alkaline Battery
- Buck Step Down Converter DC 6-24V 12V/24V to 5V 3A USB
- IIC/I2C LCD 1602 16x2 Character LCD Module Blue
- Buzzer 12V for 19mm Diameter Hole Stainless
- LED Strip SB3-300 Indoor Warranty 3 Years
- LED Strip SB3-300 Indoor Warranty 3 Years (second link)
- LED Strip 9.6W/m Uncovered Yellow
- 801S Adjustable Vibration Sensor Module