devices.esphome.io

ESP32_Relay X4 (AC/DC powered)

ESP32_Relay X4 (AC/DC powered)

Device Type: relay
Electrical Standard: global
Board: esp32

Product front Product back

Product description

This is a 4-relay board with an ESP32-WROOM-E that can be powered from either AC mains or a wide range of DC. The board can be powered either via 120-220VAC, 7-30VDC or 5VDC (separate connectors).

Each relay has COM+NO+NC exposed. The board also exposes a plethora of free GPIOs to use on solder pads.

Link: https://www.aliexpress.com/item/1005008762604101.html

Note: v1.1 of this board is nearly identical except the chip is an ESP32-WROOOM-32E

Pinout

This board has two double-row headers 10x2 for every GPIO pin on its ESP32 and a single row header for flashing. Programming can be done with 3.3V connected to 5V pin and GPIO0 connected to GND (via jumper or a push button). After flasing, if you want to test the board - it has to be powered properly via dedicated connectors, or via 5VDC applied to 5V ping. If you'll power it up with 3.3V on 5V pin - the MCU will brownout.

Programming header pinout

PinComment
5VDo not use 5V for programming
TXExposed on board 3.3V level!
RXExposed on board 3.3V level!
GND
GND
GPIO03.3V level! (Connected to a push button for programing)

Internal pinout

PinFunction
GPIO23Status LED
GPIO32Relay #1
GPIO33Relay #2
GPIO25Relay #3
GPIO26Relay #4

Basic Config

esphome:
name: ac-dc-relay-x4
friendly_name: ac-dc-relay-x4
esp32:
board: esp32dev
framework:
type: esp-idf
switch:
- platform: gpio
pin: GPIO32
name: "Relay 1"
- platform: gpio
pin: GPIO33
name: "Relay 2"
- platform: gpio
pin: GPIO25
name: "Relay 3"
- platform: gpio
pin: GPIO26
name: "Relay 4"
status_led:
pin: GPIO23
Edit this page on GitHub