The ESP32 Dual Channel Relay Module is a versatile and powerful solution for controlling devices via Apple HomeKit. Featuring the ESP32-WROOM-32E board, this module delivers excellent performance, reliability, and extensive capabilities for smart home automation.

Module Overview
This module combines the powerful ESP32 microcontroller with two integrated relays, allowing you to independently control two different devices. It is ideal for applications such as lighting, fans, pumps, motors, or blinds.
Key features:
- ESP32-WROOM-32E: Wi-Fi and Bluetooth support
- Dual Channel Relays: Independent control of two circuits
- Integrated Power Supply: Converts 220V AC to 5V DC, then regulates to 3.3V via an 1117 voltage regulator for the ESP32 module
- Optocouplers and Galvanic Isolation: Ensures safe separation between the ESP32 and load
- Ease of Use: Clearly labeled terminals for power and load connections
- Comes with: Pin headers and jumper for configuration
- Programming Interface: Accessible pin row below the ESP32-WROOM-32E module
- Apple HomeKit Compatibility: Fully compatible with the esp32-homekit library
Specifications
Feature | Specification |
---|---|
Input Voltage | AC 220V to DC 5V, then 3.3V via 1117 regulator |
ESP32 Model | ESP32-WROOM-32E |
Wi-Fi | 802.11 b/g/n |
Bluetooth | Bluetooth 4.2 BLE |
Relays | 2 x 10A/250VAC, 10A/30VDC |
GPIO Pins | Fully accessible |
PCB Dimensions | 71 mm x 46 mm |
Note: One limitation of this module is the absence of a protective ground (earth) connection.
Pinout and Connections
Clearly marked terminals make this module easy to use:
- COM1, NO1, NC1: Common, Normally Open, Normally Closed (Relay 1)
- COM2, NO2, NC2: Common, Normally Open, Normally Closed (Relay 2)
- GND and 5V: Power inputs
- GPIOs: Directly accessible via pin headers
ESP32 GPIO Pinout
Based on the PCB silkscreen, the module provides three pin headers:
Header 1 (Top Right Vertical):
Label | Function |
G23 | GPIO23 | Onboard LED |
GND | GND |
TXD | TXD |
G22 | GPIO22 |
RXD | RXD |
G21 | GPIO21 |
G19 | GPIO19 |
GND | GND |
G5 | GPIO5 |
G18 | GPIO18 |
G16 | GPIO16 | Relay 1 |
G17 | GPIO17 | Relay 2 |
G0 | GPIO0 |
G4 | GPIO4 |
G15 | GPIO15 |
G2 | GPIO2 |
SDO | GPIO23 |
SD1 | GPIO22 |
3V3 | 3.3V |
CLK | GPIO0 |
Header 2 (Bottom Right Vertical):
Label | Function |
GND | GND |
3V3 | 3.3V |
EN | ENABLE |
SVP | GPIO36 |
SVN | GPIO39 |
G34 | GPIO34 |
G35 | GPIO35 |
G32 | GPIO32 |
G33 | GPIO33 |
G25 | GPIO25 |
G26 | GPIO26 |
G27 | GPIO27 |
G14 | GPIO14 |
G12 | GPIO12 |
SD3 | GPIO10 |
CMD | GPIO11 |
Header 3 (Bottom Center Horizontal – Programming):
Label | Function |
5V | 5V Input |
GND | GND |
RX | RX (GPIO3) |
TX | TX (GPIO1) |
GND | GND |
IO0 | GPIO0 (Boot Mode) |

Programming Interface
The row of six pins located below the ESP32-WROOM-32E module is used for flashing firmware. The pin order from left to right is:
- VCC
- TX
- RX
- GND
- GND
- IO0
To program the module:
- Connect a 5V FTDI programmer to the corresponding pins (TX to RX, RX to TX, GND to GND, and VCC to 5V).
- Place a jumper between GND and IO0 to enable bootloader (programming) mode.
- Power the module and flash firmware using your development environment (e.g., Arduino IDE or ESP-IDF).
- After flashing, remove the jumper and reset or power-cycle the module.

Hardware Integration
Connecting the module is straightforward:
- Connect a stable 220V AC power supply; the module automatically converts this to 5V DC.
- The onboard 1117 regulator then provides a stable 3.3V supply for the ESP32.
- Connect your devices to the relay terminals using COM, NO, and NC.
Important: Always turn off the power before making or modifying connections to ensure safety.
ESP32 Software Configuration
This relay module works perfectly with my esp32-homekit library, allowing for simple and reliable Apple HomeKit integration.
Usage Tips
- Ensure safe load handling and respect the relay capacity.
- Use the galvanic isolation feature to protect the ESP32.
- Leverage Apple HomeKit for intuitive automations and scenes.
Project Examples
Here are some ideal use cases for this module:
- Smart Lighting: Control lights via Siri or automation routines.
- Blinds and Shades: Precisely control motors with percentage-based positioning.
- Automatic Irrigation: Smart garden systems with automated watering.
- Ventilation Systems: Intelligent fan control for optimal air quality.
Conclusion
The ESP32 Dual Channel Relay Module offers a robust and user-friendly solution for smart home automation with Apple HomeKit. By combining powerful hardware with intuitive software integration, you can easily create advanced automations. Explore the possibilities and take your smart home projects to the next level!