Wiring Guide
Before you start
⚠️ Disconnect mains power before working on high-voltage wiring. Consult a licensed electrician for AC loads.
Wiring steps
1. Power the ESP32
- Connect 5V and GND from a stable supply (2A+ recommended with 16 relays).
2. Connect the relay board
- Wire GPIO lines per the pinout.
- Share GND between ESP32 and the relay board.
3. Loads (lighting example)
Phase (L) ──► Lamp ──► Relay COM/NO ──► Neutral (N)
Use NO (Normally Open) so the load energizes when the relay is ON.
4. Earthing
- Follow your local electrical code at the distribution panel.
- Do not tie Neutral to protective Earth on the relay board.
Post-wiring test
- Flash firmware with no AC loads connected.
- Test one channel with a low-voltage lamp or LED indicator.
- Connect real loads gradually.