Menu

Home automation with the ESP32: managing loads through a web server
📰

Home automation with the ESP32: managing loads through a web server

Adafruit Industries – Makers, hackers, artists, designers and engineers!·Anne Barela·12 days ago
#3mJPLmFp
#adafruit#open#relay#normally#electronics
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.