devices.esphome.io
ESP-12F_Relay_X4
ESP-12F_Relay_X4
Device Type: relayElectrical Standard: globalBoard: esp8266
Product description
This is a 4-relay board with an ESP-12F.
Each relay has COM+NO+NC exposed. Product descriptions don't seem to specify maximum load.
The board can be powered either via 90-250VAC or via 7-30VDC, or via 5VDC (separate connectors).
I bought it from: https://www.aliexpress.com/item/1005001906928377.html (no affiliation, no guarantee it will continue to exist).
Search for more: https://www.aliexpress.com/wholesale?SearchText=esp-12f+ac90-250v+relay+4+channel
A more detailed manual: https://templates.blakadder.com/assets/ESP12F_Relay_X4.pdf
The board uses GPIO16 for RXD so it will always be briefly be powered on at boot, unforetunately this is also the pin the board is setup to use for relay1. If this brief power-on isn't an issue, you can continue to use GPIO16 or you can run a longer jumper over to a pin such as GPIO15.
GPIO Pinout
This board has headers for every GPIO pin on its ESP-12F.
J8 Pin | Comment |
---|---|
5V | Do not use 5V for programming |
TX | 3.3V level! |
RX | 3.3V level! |
GPIO0 | 3.3V level! (pulled up, connect to GND for programming) |
GND | |
GND |
J7 Pin | Comment |
---|---|
3V3 | For programming, inject 3.3V power here |
3V3 | For programming, inject 3.3V power here |
5V | |
5V | |
GND | |
GND | |
GPIO5 | 3.3V level, Blue LED (inverted) |
GPIO4 | 3.3V level |
GPIO0 | 3.3V level |
GPIO2 | 3.3V level |
GPIO15 | 3.3V level |
GND |
J6 Pin | Comment | J5 Pin |
---|---|---|
ADC | 0V-1V only | |
EN | Pulled up | |
GPIO16 | Use a jumper to RY1 to enable Relay 1 (Warning, see note above about power-on state) | RY1 |
GPIO15 | Optionally, use a longer jumper to RY1 to enable Relay 1 | RY1 |
GPIO14 | Use a jumper to RY2 to enable Relay 2 | RY2 |
GPIO12 | Use a jumper to RY3 to enable Relay 3 | RY3 |
GPIO13 | Use a jumper to RY4 to enable Relay 4 | RY4 |
Basic Config
esphome: name: relayboard platform: ESP8266 board: esp12e
# Use the blue LED in the device as a status LED, which will blink if there are warnings (slow) or errors (fast)status_led: pin: number: GPIO5 inverted: True
# Four relay outputs, exposed as switches in Home Assistantswitch: - platform: gpio pin: GPIO16 #or GPIO15 to avoid brief power-on at boot name: Relay1 id: relay1 - platform: gpio pin: GPIO14 name: Relay2 id: relay2 - platform: gpio pin: GPIO12 name: Relay3 id: relay3 - platform: gpio pin: GPIO13 name: Relay4 id: relay4