Introduction

Internet outages can be a frustrating and silent issue, often leaving you uncertain about the cause of connectivity problems. This guide will walk you through building a simple yet effective internet outage alarm using a $10 ESP32 microcontroller, LED strips, and a few other affordable components.

I built an ESP-powered internet-outage alarm I can't miss for just $5

Hardware Components

The core of this project revolves around the ESP32 C3 Supermini, a low-cost microcontroller with built-in Wi-Fi and Bluetooth. For the LED display, I used two daisy-chained 12V LED strips, which can be controlled by the ESP32's GPIO pins through MOSFETs. The ESP32 is powered by a 12V 1. 5A supply, and a buck converter is used to power the ESP32 from the same source.

Wiring and Power Supply

The wiring involved connecting the IRLZ44N N-channel MOSFETs to the LED strip's color channels, with the drain pins connected to the LED strip's color channels, source pins connected to a common ground rail (which the ESP32 connects to as well), and the gate pins connected to three PWM pins on the ESP32.

ESPHome Configuration

ESPHome is a powerful open-source smart home platform that simplifies the configuration of ESP32s. The YAML configuration handles RGB lights with ease, and the same logic applies here. I created three outputs in the YAML, one per GPIO pin, and handled the PWM dimming for each channel at 1,000Hz. The RGB light platform ties them together and exposes a single color-capable light entity to Home Assistant. The configuration also saves the LED strips' last state and returns to it after a power cycle, preventing unexpected behavior.

Conclusion

By following this guide, you can build a reliable and unmissable internet outage alarm for just $5. This project not only addresses a common issue but also provides a practical solution for ensuring your connectivity remains stable and uninterrupted.

Comments