Skip to the content
2 layers49.5 × 49.5 mmAc relay, the printed circuit board in 3D

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

5

README

README.md

View this project on CADLAB.io.

AC Relay

Version

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 LED
  • ESP8266: ESP8266 as SoC instead of the ESP8266-12E module
  • UPS: Uninterrupted Power System. Cesar Fernández idea
  • Capacitive button: A capacitive external button that acts as the push button

Licencia Creative Commons
Home AC relay by Enrique Gómez licensed by Creative Commons Attribution-ShareAlike 4.0 International License.

Parts

17
QtyValueFootprintReferences
310kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR1, R2, R3
20.47uFCapacitor_SMD:C_0603_1608MetricC1, C2
2Screw_Terminal_01x02TerminalBlock:TerminalBlock_Altech_AK300-2_P5.00mmJ1, J3
11461492-2red:Rele-1461492-2K1
182.5Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR4
1BU33SD5WG-TRPackage_SO:TSOP-5_1.65x3.05mm_P0.95mmU1
1Conn_01x06_FemaleConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ2
1ESP-12ERF_Module:ESP-12EU2
1FDN537NPackage_TO_SOT_SMD:SOT-223Q1
1HLK-PM01red:HLK-PM01U3
1LED_verdeLED_SMD:LED_0603_1608MetricD2
1RGF1BDiode_SMD:D_0603_1608MetricD1
1SW_PushButton_Switch_SMD:SW_SPST_EVQP2SW1

Similar boards

  • 2 layers129.5 × 72.6 mmOpenPLC, the printed circuit board in 3D

    OpenPLC

    radioelf/OpenPlc

    Hardware for OpenPLC with raspberry PI Z and Mod. software OpenPlc

    165 parts7
  • 2 layers78 × 47 mmAgroTron(kicad), the printed circuit board in 3D

    AgroTron(kicad)

    HenryqueFarias16/AgroTron

    Projeto de Automação agrícola com microcontrolador ESP12-E

    35 parts
  • 2 layers61.5 × 48.5 mmModulo Dimmer, the printed circuit board in 3D

    Modulo Dimmer

    HenryqueFarias16/HardDimmer

    Automação Dimmerizada com microcontrolador ESP12-E

    28 parts
  • 2 layers71.4 × 66.2 mmHome Automation, the printed circuit board in 3D

    Home Automation

    Omverma3210/Home-Automation

    A smart home automation switch based on triac

    89 parts
  • 4 layers91 × 95 mmCarteMere, the printed circuit board in 3D

    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 mmTagBot, the printed circuit board in 3D

    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 mmSchematics batterie, the printed circuit board in 3D

    Schematics batterie

    LNauiz/24_25_Projet_1A_Veste_Lumineuse

    47 parts3AGPL-3.0

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).