ESP32 Relay Project Adds Browser-Based Control for Mains Loads
导读
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.
正文

配图暂未加载。 查看来源原图 ↗
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.
Source: Anne Barela ·Adafruit Blog · 2026-11-18T15:56:42.000Z · Read the original article
推荐理由
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评分 54 · 查看评分依据
双模型按来源原文评估阅读价值,不判断事实真伪;本站整理正文仍应与原文核对。
- 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.
- 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.
分析时间:2026.11.18 16:09 UTC







评论与解答 0