LCD Defusal Training Game (Arduino Project)
by Keshavseth in Circuits > Arduino
159 Views, 1 Favorites, 0 Comments
LCD Defusal Training Game (Arduino Project)
.jpg)


Welcome to this step-by-step guide on building your own Defusal Training Module using Arduino! In this project, players must quickly identify and press the correct wire combinations (buttons) before time runs out — or risk simulated detonation. A Liquid Crystal Display, LEDs, and randomized logic simulate pressure-filled moments for any escape room or electronics training setup. Let’s get started!
Supplies

Materials Required
- Arduino Uno (1)
- Liquid Crystal Display (LCD 16x2, I2C) (1)
- Push Buttons (4)
- 330Ω Resistors (4) — for pull-downs
- Jumper Wires (1 pack)
- Solderless Breadboard (1)
- Red LED (Threat Indicator) (1)
- Green LED (Safe Indicator) (1)
- Computer with Arduino IDE (1)
Set Up the Breadboard
- Place the 4 push buttons evenly on your breadboard.
- Connect one side of each button to 5V.
- Connect the other side to:
- A 330Ω resistor to GND (pull-down resistor)
- A jumper wire to Arduino digital pins 4, 5, 6, 7 (1 pin per button)
Connect the LEDs
- Connect a red LED (threat LED) to pin 10 (via 330Ω resistor)
- Connect a green LED (safe/success LED) to pin 11 (via 330Ω resistor)
- Both cathodes go to GND
Connect the LCD Display

- Use I2C LCD for easy connection:
- VCC → 5V
- GND → GND
- SDA → A4
- SCL → A5
- Make sure the LCD library is installed (LiquidCrystal_I2C.h)
Upload the Code
- Open the Arduino IDE
- Paste in the code provided
- Go to Tools → Board → Arduino Uno
- Connect your Arduino via USB
- Select the correct port and click Upload
Game Logic Overview
🔢 Random Code Generation
- At startup, a random 2- or 3-button defusal code is generated (e.g., A + C)
- Displayed briefly on the LCD and also in the Serial Monitor
🟢 Defusal Logic
- Press the correct combination of buttons (wires) within 15 seconds
- If correct:
- Green LED flashes
- LCD shows "Device Disarmed"
- Final time & success displayed
🔴 Failure Logic
- If wrong combo or time runs out:
- Red LED blinks rapidly
- LCD flashes “!! DETONATION !!”
- System enters simulated failure state (forever loop)
Countdown & Pressure
- A 15-second timer begins once any button is pressed
- LCD shows randomly selected stress messages like:
- "Detonation Imminent"
- "Stabilize the Core"
- These change dynamically as the timer ticks down
- Timer updates on LCD in format T-X sec