LCD Defusal Training Game (Arduino Project)

by Keshavseth in Circuits > Arduino

159 Views, 1 Favorites, 0 Comments

LCD Defusal Training Game (Arduino Project)

unnamed (14).jpg
unnamed.jpg
sche.png

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

Untitled design.png

Materials Required

  1. Arduino Uno (1)
  2. Liquid Crystal Display (LCD 16x2, I2C) (1)
  3. Push Buttons (4)
  4. 330Ω Resistors (4) — for pull-downs
  5. Jumper Wires (1 pack)
  6. Solderless Breadboard (1)
  7. Red LED (Threat Indicator) (1)
  8. Green LED (Safe Indicator) (1)
  9. Computer with Arduino IDE (1)

Set Up the Breadboard

  1. Place the 4 push buttons evenly on your breadboard.
  2. Connect one side of each button to 5V.
  3. Connect the other side to:
  4. A 330Ω resistor to GND (pull-down resistor)
  5. A jumper wire to Arduino digital pins 4, 5, 6, 7 (1 pin per button)


Connect the LEDs

  1. Connect a red LED (threat LED) to pin 10 (via 330Ω resistor)
  2. Connect a green LED (safe/success LED) to pin 11 (via 330Ω resistor)
  3. Both cathodes go to GND


Connect the LCD Display

Screenshot 2024-06-18 103921.png
  1. Use I2C LCD for easy connection:
  2. VCC → 5V
  3. GND → GND
  4. SDA → A4
  5. SCL → A5
  6. Make sure the LCD library is installed (LiquidCrystal_I2C.h)


Upload the Code

  1. Open the Arduino IDE
  2. Paste in the code provided
  3. Go to Tools → Board → Arduino Uno
  4. Connect your Arduino via USB
  5. Select the correct port and click Upload


Game Logic Overview

🔢 Random Code Generation

  1. At startup, a random 2- or 3-button defusal code is generated (e.g., A + C)
  2. Displayed briefly on the LCD and also in the Serial Monitor

🟢 Defusal Logic

  1. Press the correct combination of buttons (wires) within 15 seconds
  2. If correct:
  3. Green LED flashes
  4. LCD shows "Device Disarmed"
  5. Final time & success displayed

🔴 Failure Logic

  1. If wrong combo or time runs out:
  2. Red LED blinks rapidly
  3. LCD flashes “!! DETONATION !!”
  4. System enters simulated failure state (forever loop)


Countdown & Pressure

  1. A 15-second timer begins once any button is pressed
  2. LCD shows randomly selected stress messages like:
  3. "Detonation Imminent"
  4. "Stabilize the Core"
  5. These change dynamically as the timer ticks down
  6. Timer updates on LCD in format T-X sec