Skip to main content

Results appear automatically as you type.

DIY Forum
Report

ESP32 Relay Project Adds Browser-Based Control for Mains Loads

Reading lead

Open Electronics describes a home-automation project using an ESP32 NodeMCU and five relays, wired to GPIOs 2, 26, 27, 25 and 33. The board connects to Wi-Fi and serves a control page on port 80; switches send requests that make the firmware set the corresponding relay pin. The write-up recommends an external 5 V supply, but reports no independent testing or detailed mains-safety measures.

Article body

Home automation with the ESP32: managing loads through a web server
Image credit: Adafruit Blog

Open Electronics has posted a project that switches mains loads from a phone, tablet or PC using an ESP32 NodeMCU board and a bank of relays. Five relay inputs are wired to GPIO 2, 26, 27, 25 and 33. The relay boards are the common TTL-level Arduino type, where a high input saturates a transistor, pulls the coil to ground and closes the contact. The screw terminals carry Common, Normally Closed and Normally Open for loads up to 250 VAC.

On the software side, the sketch uses the ESPAsyncWebServer library along with AsyncTCP, both from me-no-dev. The ESP32 joins the WiFi network and serves a page on port 80 with one slider switch per relay. Flipping a switch sends a GET request with the relay number and state, and the firmware writes the matching pin. Two defines set the number of relays and whether they’re treated as normally open or normally closed, and an array holds the pin assignments.

The board prints its IP address to the serial monitor at 115200 baud after a reset, and that address opens the control page. The write-up suggests powering the prototype from an external 5 V supply rather than a PC USB port.

See more at open-electronics.org and content on GitHub.

open-electronics.org · GitHub

Source: Anne Barela ·Adafruit Blog · 2026-11-18T15:56:42.000Z · Read the original article

Why read this

The report offers concrete wiring and firmware details for a web-controlled ESP32 relay setup, but provides no independent testing or detailed mains-safety guidance.

AI score 54 · View scoring rationale

Two-model scores assess source reading value, not factual accuracy. Check this editorial article against the original.

  1. gpt-6-luna-2026-09-22 · 54

    The report offers concrete wiring and firmware details for a web-controlled ESP32 relay setup, but provides no independent testing or detailed mains-safety guidance.

  2. deepseek-flash · 54

    Concrete, replicable ESP32 relay project with specific GPIO mapping, async web server stack and request-to-pin control flow. Increment is modest (a conventional home-automation build), and mains safety and independent testing are not addressed.

Analyzed: 2026.11.18 16:09 UTC

Arranged / reviewed on Zoowai · 2026.11.18 16:15

Reviewed and arranged by Zoowai editors. Original content and views belong to the source author.

0

Comments & answers 0

Sign in, rate or reply

VISA Mastercard Maestro JCB American Express Diners Club Discover