

Ac relay
A relay controlled by an ESP8266 and powered by AC main
- Size
- 49.5 × 49.5 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 17
- Nets
- 27
- Pads
- 69
- Tracks, vias
- 157, 5
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 6 (file 20211014)
- Created
- 26 Mar 2021
- Updated
- 11 Sep 2025
Overview
Ac relay is an open-source printed circuit board by kikeelectronico, from the kikeelectronico/ac-relay repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 49.5 × 49.5 mm with 17 parts on 27 nets, routed with 157 tracks and 5 vias.
It is built around the ESP-12E, HLK-PM01 and BU33SD5WG-TR, with the FDN537N and RGF1B among its other parts. Its parts include 4 resistors, 3 ICs, 3 connectors, 2 capacitors and 2 diodes. It belongs with the home automation and IoT boards and the ESP8266 boards of this library.
Main components
5ESP-12E
SMD,24x16mm-20℃~+70℃ -90dBm 16dBm 170mA 2.4GHz 3V~3.6V 56mA 802.11b/g/n ESP8266 Chip On-board PCB Antenna Over-the-air (OTA) update UART、SPI、I2C SMD,24x16mm WiFi Modules ROHSAi-ThinkerWiFi ModulesHLK-PM01
DIP,34x24mm0.1W 100mVp-p 15mm 20mm 34mm 3W 3kV 5V 700mA 73% 85VAC~265VAC AC-DC Short Circuit Protection、Over Current Protection、Fault self-recovery ±0.2% 插件,34x20mm AC-DC Power Modules ROHSHI-LINKAC-DC Power ModulesBU33SD5WG-TR
SSOP-5-40℃~+105℃ 1 150mV@(100mA) 3.3V 30uVrms 500mA 68dB@(1kHz) 6V 80uA Fixed Over Current Protection、Thermal shutdown、Enable control、Output discharge Positive SSOP-5 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSROHM SemiconductorVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsFDN537N
SOT-23-3-55℃~+150℃ 1 N-channel 1.5W 180pF 30V 35pF 36mΩ@4.5V 3V 465pF 6.5A 8.4nC@10V N-Channel SOT-23-3 MOSFETs ROHSonsemiMOSFETsRGF1B
SMA(DO-214AC)-65℃~+175℃ 1.3V@1A 1.76W 100V 150ns 1A 30A 5uA@100V SMA(DO-214AC) Fast Recovery / High Efficiency Diodes ROHSonsemiFast Recovery / High Efficiency Diodes
README
README.mdView this project on CADLAB.io.
AC Relay
It is a relay controlled by an ESP8266 and a push button. It is powered by the main AC.
Firmwares
Test
This firmware allows you to test the hardware if needed. It will change the relay status each 400 millisenconds when the button is pressed and it will send the push button status via serial communication.
AdafruitIO
This firmware is based in the Adafruit example for comumnicate with its MQTT broker called AdafruitIO. You can see more in io.adafruit.com
In order to use it you should set:
- Your WiFi setting
- You Adafruit user name
- API Key from Adafruit IO
- The MQTT feed which will be used in Adafruit IO
MQTT
This firmware allows you to communicate with a MQTT broker. For example, you can install your own MQTT broker in a Raspberry Pi.
This is the actual firmware that I am using at home with this circuit, and it is prepared for being working 24/7. It does:
- Recovery after a power failure.
- Wake up message
- Reconnect message
- Serial debug
- WiFi reconnect if the signal is lost
- MQTT Broker reconnect if the signal is lost
For future revisions
LED: LED as IO instead of Power LEDESP8266: ESP8266 as SoC instead of the ESP8266-12E moduleUPS: Uninterrupted Power System. Cesar Fernández ideaCapacitive button: A capacitive external button that acts as the push button

Home AC relay by Enrique Gómez licensed by Creative Commons Attribution-ShareAlike 4.0 International License.
Parts
17| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | 10k | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R1, R2, R3 |
| 2 | 0.47uF | Capacitor_SMD:C_0603_1608Metric | C1, C2 |
| 2 | Screw_Terminal_01x02 | TerminalBlock:TerminalBlock_Altech_AK300-2_P5.00mm | J1, J3 |
| 1 | 1461492-2 | red:Rele-1461492-2 | K1 |
| 1 | 82.5 | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R4 |
| 1 | BU33SD5WG-TR | Package_SO:TSOP-5_1.65x3.05mm_P0.95mm | U1 |
| 1 | Conn_01x06_Female | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J2 |
| 1 | ESP-12E | RF_Module:ESP-12E | U2 |
| 1 | FDN537N | Package_TO_SOT_SMD:SOT-223 | Q1 |
| 1 | HLK-PM01 | red:HLK-PM01 | U3 |
| 1 | LED_verde | LED_SMD:LED_0603_1608Metric | D2 |
| 1 | RGF1B | Diode_SMD:D_0603_1608Metric | D1 |
| 1 | SW_Push | Button_Switch_SMD:SW_SPST_EVQP2 | SW1 |
Similar boards
- 2 layers129.5 × 72.6 mm

- 2 layers58 × 50 mm

- 2 layers78 × 47 mm

AgroTron(kicad)
HenryqueFarias16/AgroTron
Projeto de Automação agrícola com microcontrolador ESP12-E
35 parts - 2 layers61.5 × 48.5 mm

- 2 layers71.4 × 66.2 mm

- 4 layers91 × 95 mm

CarteMere
AresEnsea/2526_Projet2A_AresCFR
Ce repository GitHub regroupe l'ensemble des projets et documents réalisés par l'équipe Ares pour la Coupe de France de Robotique 2026.
122 parts5 - 4 layers54 × 57 mm

TagBot
exysta/2425_ESE_Projet_TagBot
Vous vous trouvez actuellement dans le projet TagBot (ou robot chat), qui s'intègre à un projet de classe où chaque équipe doit concevoir un robot.
87 parts3MIT - 2 layers45 × 45 mm

Questions
How big is the Ac relay PCB?
It measures 49.5 × 49.5 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Ac relay use?
17 parts, built around the ESP-12E, HLK-PM01, BU33SD5WG-TR and FDN537N. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Ac relay KiCad files?
From the kikeelectronico/ac-relay repository on GitHub, at the commit this page was made from: the board is KiCad/AC Relay/AC Relay.kicad_pcb and its schematic KiCad/AC Relay/AC Relay.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Ac relay design in my own project?
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).