The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
This ESP32 Wemos project is an MQTT-controlled 12 V siren output for a home-automation system. It uses separate messages to request an oscillating panic siren or a continuous fire siren, with an IRLB8721 MOSFET switching power to the sounder. It is a prototype—not a standalone, certified fire or security alarm.
What the ESP32 siren project does
Dave Wilson’s Hackster.io build, published December 28, 2019, connects an ESP32 development board to a 12 V siren and listens for MQTT messages from the author’s home-automation system. The system uses Mosquitto as its MQTT server. The board does not independently detect smoke, intrusion, or an emergency: another device or person must publish a message to trigger the sound.
The project’s three MQTT topics have distinct roles:
Recommended Free Tools
| Topic | Described behavior | Status in the project |
|---|---|---|
diy/system/panic |
Requests a loud, oscillating siren. | Described as a working alarm behavior. |
diy/system/fire |
Requests a loud, continuous siren. | Described as a working alarm behavior. |
diy/system/who |
Intended for a device status update. | The author says it was still under construction. |
The topic names and behavior come from the Hackster project description. They are not a general MQTT standard; a compatible controller must publish the messages the firmware expects.
#1 Best Overall
- 2.4GHz Dual Mode WiFi + Bluetooth Development Board
- Support LWIP protocol, Freertos
- SupportThree Modes: AP, STA, and AP+STA
- Ultra-Low power consumption, Compatible with Arduino IDE
- ESP32 is a safe, reliable, and scalable to a variety of applications
How the hardware switches the siren
The ESP32 controls an IRLB8721 N-channel MOSFET, which acts as the switching path for the 12 V siren. The siren is not powered directly from an ESP32 GPIO. The project’s parts list specifies a 12 V, 15 W, one-tone outdoor siren and a 12 V, 2 A supply; those are listed component specifications, not independent measurements or proof that the supply suits every substitute siren.
An alternative ESP32 tutorial demonstrates a relay switching a 12 V siren and uses GPIO 16 as its example. That is a separate tutorial, not a tested replacement circuit for Wilson’s MOSFET design. Whether using a MOSFET or relay, check the sounder’s voltage and current requirements, the driver’s load and control ratings, and the power supply’s capacity before connecting components. The sources do not compare the two approaches for efficiency, reliability, or safety. See the ESP32 siren tutorial for its relay example.
Rank #2
- Dual-Core Performance Up to 240 MHz: Run sensor processing, wireless communication, automation logic and connected-device tasks on a 32-bit dual-core ESP32 platform designed for responsive embedded and IoT projects
- Built-in Wi-Fi and Bluetooth 4.2: Connect to 2.4 GHz Wi-Fi networks or use Bluetooth Classic and BLE for wireless sensors, smart devices, remote controls, home automation and other connected projects
- Flexible Power-Saving Modes: ESP32 power-management features support dynamic clock scaling and low-power operating modes, helping developers reduce energy use in compatible sensing, monitoring and connected-device applications, suitable for battery-powered Internet of Things (IoT) devices.
- USB-C Programming with CP2102: Connect through USB-C for power, sketch uploads and serial monitoring, while GPIO, UART, SPI and I2C interfaces support sensors, displays, motor drivers and other modules (USB-C cable not included)
- Over-the-Air Update Support: Configure OTA functionality through a compatible ESP-32 software framework to update deployed firmware over Wi-Fi without reconnecting the board by USB for every revision
Parts in the original build
Wilson’s inventory lists the following components. Treat it as a record of this build, not a universal bill of materials: substitutions need to match the electrical requirements of the specific board, siren, and supply.
- Wemos ESP32 development board
- IRLB8721 N-channel MOSFET and a 10 kΩ resistor
- 7805 linear regulator
- Two 100 μF capacitors, two 22 μF capacitors, and three 0.1 μF capacitors
- Adafruit half-size Perma-Proto board, headers, and a 2.1 mm DC barrel jack
- 12 V, 15 W, one-tone outdoor siren and 12 V, 2 A power supply
- Electrical box enclosure
The listed tools include a soldering iron and solder, screwdriver or multitool, drill or driver, screws, and drill bits. Retail board names can be ambiguous: verify that a board is actually ESP32-based rather than an ESP8266 variant, and check the markings and revision of the particular board you intend to use.
Rank #3
- Powerful ESP-32 Board: Unlock the world of Internet of Things (IoT) and advanced electronics with the heart of this kit: the ESP-32 board. It features a powerful dual-core processor, integrated Wi-Fi and Bluetooth 4.2, making it perfect for building connected, smart devices that communicate with your phone or the cloud. It's fully compatible with the Arduino IDE for easy programming.
- Super Starter Kit: This kit contains over 35 different modules and electronic components, including sensors, displays, motors, and input devices. From LEDs and buttons to an OLED screen, servo motor, and keypad, you have everything needed to explore a vast range of projects in one box.
- Step by Step Online Tutorial: Jump right in with our detailed, beginner-friendly tutorial. Access 30+ projects with complete code, clear circuit diagrams, and step-by-step instructions. Learn the fundamentals of electronics, coding, and how to utilize the ESP-32's unique capabilities without any prior experience.
- Hands-on Learning for All Skill Levels: Perfect for students, makers, engineers, and hobbyists. Start with basic circuits and coding, then progress to intermediate and advanced IoT applications. Build practical projects like weather stations, smart home controllers, remote-controlled devices, and interactive gadgets. The skills you learn are the foundation for real-world innovation.
- Quality & Great Support: Elegoo is committed to quality. We provide a clear, detailed tutorial guide, refined code, and a well-organized component kit. All modules are carefully selected for reliability and ease of use. Our dedicated technical support team and active online community are ready to help you succeed in your learning journey.
Prototype construction and enclosure considerations
The author first assembled the circuit on a breadboard, then soldered it onto an Adafruit half-size Perma-Proto board. The write-up describes programming and debugging the ESP32 on the protoboard and fitting the assembly into an electrical box enclosure.
The project page notes that a siren power wire remained exposed and suggests routing it through the enclosure with insulation or sealant. That is an assembly note, not a verified weatherproofing method or an electrical installation specification. Decide how to protect wiring and the enclosure based on the intended location and applicable local requirements; the cited project does not establish an approved outdoor installation method.
Rank #4
- 2.4GHz Dual Mode WiFi + Bluetooth Development Board
- Support LWIP protocol, Freertos;ESP32 is a safe, reliable, and scalable to a variety of applications
- SupportThree Modes: AP, STA, and AP+STA
- Ultra-Low power consumption, Compatible with Arduino IDE
- 1PCS 30Pin ESP32 Development Board 2.4GHz WiFi Dual Cores Microcontroller Integrated with Antenna RF Low Noise Amplifiers Filters
What this build does not establish
The project demonstrates remotely commanded sound output integrated with its author’s home automation. Calling its code “production ready” reflects the author’s characterization; it does not establish product certification, field validation, or suitability as a life-safety system.
- It is not shown to be a complete fire alarm, monitored security system, or self-contained alarm panel.
- The sources do not establish backup operation during a power or network failure, compliance with installation rules, or certification.
- No measured decibel output, current draw, response time, reliability, or comparative sounder performance is reported.
For a smoke, fire, or security system where detection, monitoring, backup power, or code compliance matters, this prototype should not be treated as a replacement for an appropriately certified system.
Best Value
- 2.4GHz Dual Mode WiFi + Bluetooth Development Board
- Ultra-Low power consumption, works perfectly with the Arduino IDE
- Support LWIP protocol, Freertos
- SupportThree Modes: AP, STA, and AP+STA
- ESP32 is a safe, reliable, and scalable to a variety of applications
Check module and component fit before building
Espressif’s ESP32-WROOM-32D/32U datasheet covers those module variants and says the series is not recommended for new designs. That does not verify that the Wemos board in Wilson’s project contains either module. Check the module markings and board revision against the relevant documentation rather than assuming the title identifies the radio module.
Before choosing substitute parts, compare the siren’s rated voltage and current, the supply’s capacity, the switching component’s ratings, the sounder’s available tone behavior, and the wiring and enclosure requirements for its location. The project’s listed components are one example, not a compatibility guarantee for other products.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

