I had to change some of the components since Wokwi didnt have the ones used im my project.
i could not get it to work here either, but the video in my dev log should show all function.
also some code in bombidk.ino is changed to work on here, but bomb_idk.ino is the original.
A fun electronics project using a D1 Mini (ESP8266) that simulates a countdown timer with lights, sound, and a relay. Purely for visual/audio effect (nothing dangerous).
๐ฏ Features โฑ๏ธ Countdown from 5 โ 0 on OLED display ๐ Increasing beep pitch as time runs out ๐ก Blinking LEDs synced with countdown โก Relay trigger at 0 (for external effect) ๐จ โBoomโ sequence: Fast LED strobe Siren sound Display message: * BOOM * (not really) ๐งฐ Hardware Required D1 Mini (ESP8266) SSD1306 OLED display (SPI) 2x LEDs 2x 220ฮฉ resistors Passive buzzer Relay module (5V) Breadboard + jumper wires Optional: external 5V supply (recommended for relay, since the d1 mini dosent seem to have enough power) ๐ Wiring OLED (SPI) OLED Pin D1 Mini VCC 3.3V GND GND SCL D5 (SCK) SDA D7 (MOSI) DC D3 CS D8 RES D4 LEDs LED Connection LED 1 D0 โ resistor โ LED โ GND LED 2 D2 โ resistor โ LED โ GND Buzzer Pin Connection
D1
GND Relay Module Pin Connection VCC 5V (USB or external PSU) GND GND (shared with D1 Mini) IN D6
๐ How It Works Device powers on OLED initializes Countdown begins: LEDs blink Buzzer beeps faster + higher pitch At 0: Relay is triggered Boom sequence runs: Strobe lights Siren sound Display message System resets and repeats ๐ง Key Implementation Details Custom tone_play() used (ESP8266 has no native tone()) Blocking loops create timing effects Relay triggered before sound sequence to ensure proper timing
SPI OLED uses:
display.begin(0x00); ๐งช Troubleshooting Relay LED on but no click Not enough current โ use external 5V Weak relay module โ test directly on PSU Relay clicks at wrong time Wrong wireing
Ensure trigger is before boom sequence:
digitalWrite(RELAY_PIN, LOW); Display not working Check SPI wiring Ensure correct init (0x00, not SSD1306_SWITCHCAPVCC) No sound Confirm buzzer is passive, not active ๐ฎ Ideas for Improvements Add a button to start countdown Add longer countdown (10, 30 seconds) Add RGB LEDs Add WiFi trigger via ESP8266 Add sound effects from speaker module โก Disclaimer
This is a harmless visual/sound project designed for learning electronics and programming. It does not create any explosive or dangerous effect.
# Blank project
This is a blank Wokwi project. Please edit this README file and add a description of your project.
## Usage
1. Add parts by clicking the blue "+" button in the diagram editor
2. Connect parts by dragging wires between them
3. Click the green play button to start the simulation