devices.esphome.io

ESP-12F-Relay-X1

ESP-12F-Relay-X1

Device Type: relay
Electrical Standard: global
Board: esp8266

Product description

This is a 1-relay board based on ESP-12F, including AC and DC power supplies. It can be found in many online shops.

This might be the original source: http://www.chinalctech.com/m/view.php?aid=472

The relay has COM+NO+NC exposed. Print on relay says it can do 10A at 250VAC.

The board can be powered either via 90-250VAC or via 7-12VDC, or via 5VDC from USB.

All 5V inputs feed the same rail:

  • the AC switchmode power supply
  • the DC linear regulator
  • the Micro-USB port

IMPORTANT: connect only one of the three power inputs at the same time!

The comon 5V rail feeds a 3.3V linear regulator.

picturte of LC-Relay-ESP12-1R-MV

GPIO Pinout

This board has headers for every GPIO pin on its ESP-12F.

By default, the relay is connected to GPIO5. If you want to change that, remove R14 and connect the header "Relay" to the desired GPIO.

Programming header:

PinComment
5VCould inject +5V from the USB serial-TTL-converter
TX3.3V level!
RX3.3V level!
GPIO03.3V level! (pulled up, connect to GND for flashing)
GND
GND

Left header:

PinComment
5V5V rail
3V3from onboard voltage regulator
TX3.3V level!
RX3.3V level!
GPIO5drives relay via R14
GPIO4
GPIO0
GPIO2
GPIO15
Relayonce R14 removed, can be bridged to any GPIO
SCLK
GND

Right header:

PinComment
GND
3V3
GPIO16connected to red LED
ADC0V-1V only
GPIO12
GPIO14
CSO
GPIO13
GPIO9
MISO
MOSI
GPIO10

Basic Config

esphome:
name: esp12frelayx1
esp8266:
board: esp12e
# Use the red LED in the device as a status LED, which will blink if there are warnings (slow) or errors (fast)
status_led:
pin:
number: GPIO16
inverted: True
# relay output, exposed as switch in Home Assistant
switch:
- platform: gpio
pin: GPIO5
name: Relay
id: relay
Edit this page on GitHub