LILYGO T-Relay 5V 8-Channel Relay - image 1
1 / 6
LILYGO·ESP32

LILYGO T-Relay 5V 8-Channel Relay

ESP32-Wrover-E development board with eight optocoupler-isolated relay channels, 8 MB PSRAM, Wi-Fi, Bluetooth, and indicator LEDs for industrial automation and smart home switching applications.

Starting from

$15.99

Compatible Firmware

Hardware Specifications

CPUESP32-Wrover-E dual-core Xtensa LX6 up to 240 MHz
RAM520 KB SRAM + 8 MB PSRAM
Flash4 MB
GPIO16 pins
USBRequires T-U2T USB-to-serial downloader
PowerDC 12-24V input for relay coils; 5V logic
Dimensionsrelay board form factor

Connectivity

WiFi802.11 b/g/n 2.4GHz
Bluetooth4.2 BLE

Components

ESP32-Wrover-Emcu

Dual-core Xtensa LX6 at 240 MHz with 4 MB flash, 8 MB PSRAM, Wi-Fi, Bluetooth

HRS4H-S-DC5Vrelay

5V relay with optocoupler isolation, AC 250V / DC 28V max switching voltage (x8)

Resources

Where to Buy

Overview

The LILYGO T-Relay 5V 8-Channel Relay board combines an ESP32-Wrover-E microcontroller with eight independently controlled HRS4H-S-DC5V relay channels, each with optocoupler isolation for electrical safety between the control logic and switched loads. Blue LED indicators show the status of each relay channel at a glance.

Relay GPIO assignments are: K1-IO33, K2-IO32, K3-IO13, K4-IO12, K5-IO21, K6-IO19, K7-IO18, K8-IO05. Maximum switching capability is AC 250V or DC 28V. The board requires a DC 12-24V supply for the relay coils. An additional 16-pin expansion GPIO header provides connection points for sensors and peripherals.

With Wi-Fi and Bluetooth onboard, the T-Relay is well suited for Home Assistant via ESPHome or Tasmota, industrial control panels, and custom IoT automation gateways. The 8 MB PSRAM in the Wrover-E module enables complex state machines and OTA update buffers. A T-U2T USB-to-serial downloader is needed for programming as there is no onboard USB chip. An optional W5500 Ethernet shield variant (H671) is also available.

Firmware Compatibility

Tasmota firmware with template support and ESPHome YAML configurations are the most common deployments, enabling instant integration with Home Assistant and other home automation platforms. The Arduino IDE with ESP32 core works for custom firmware. LILYGO's LilyGo-T-Relay GitHub provides relay control examples and pin definitions.

Flashing Guide

  1. Connect the T-U2T downloader to the programming header and your computer via USB.
  2. Install CH9102 drivers if required.
  3. In Arduino IDE, select "ESP32 Wrover Module," enable PSRAM, set Flash to 4 MB.
  4. Alternatively, use the Tasmota web flasher or ESPHome dashboard for no-code deployment.
  5. Click Upload and wait for completion.
  6. Apply DC 12-24V to the relay power input to activate relay switching.

Related Products

ESP32

This product page may contain errors. If you find any, please report them.