ESP32 Relay Board

For another project, I needed relays to be able to switch a few pumps. During this, the ES32 boards caught my eye on AliExpress. These come completely ready to use and even have some with a 240V power supply on board.

ATTENTION: While the programming port on the boards is marked as 5V, the fact that my boards were only programmable once leads me to believe that the 5V is only the supply voltage and the data lines only operate at 3V. Fortunately, I flashed OTA on the first try. I will still check if I can replace the ESP on a board.

Facts

DescriptionBoard 1 Relay Programmer1 Relay + Power Supply4 Relays + Power Supply
DC supply voltage5V-60V5V-30V
AC supply voltage90V-250V240V
ControllerESP32-Wroom-32EESP32-Wroom-32EESP32-Wroom-32E
Switch114
Relay coil voltage5V5V5V
Relay Contact Voltage Max30V DC
250V ac
30V DC
250V ac
30V DC
250V ac
Maximum relay current10A10A10A
Relay ContactsNC/COM/NO*NC/COM/NO*NC/COM/NO*
USB PortMicro USB
Size57.5mm x 53.7mm
Board properties
Normal Closed/ Supply Voltage/ Normal Open

Description1 Rel. Board 2 Rel. Board 4 Rel. Board 8 Rel. Board
Relay 116?32?
Relais 2?33?
Relay 325?
Relay 426?
Relay 5?
Relay 6?
Relay 7?
Relay 8?
LED23232323
GPIOs for relays

Source: https://de.aliexpress.com/store/912246115?spm=a2g0o.detail.0.0.76fa7c1fXWn9rP

Areas of application

  • Fundamentally, if other voltages need to be switched.
  • Switch light scenes
  • Pump control for irrigation
  • Fan switches, e.g. for basement drying
  • ...

Views

Programming

Libraries

Nothing special

Test programme

To the Github project

The PCB can be selected in the definition. The test program switches all relays on one after another and then switches them all off step by step.

Problems

Programming interface probably 3V.

Miscellaneous

Conclusion

I like that the ESP ports have been brought out, this makes it possible to connect further peripherals. Two of the three boards do not have an onboard programmer; while this can easily be remedied with an external programmer, it's still a hassle. The boards are very specialised, but for someone looking for a board with a mains voltage supply and who wants to switch a few things, the two boards with a voltage converter offer a complete package.

Related Posts

Sources

https://de.aliexpress.com/store/912246115?spm=a2g0o.detail.0.0.76fa7c1fXWn9rP

1 thought on “ESP32 Relay Board

  1. I have the two-relay and four-relay versions.
    With the 4-relay board, some of the relays are unusable because outputs from the ADC2 are used, which do not function correctly when the Wi-Fi access point is activated. (The ESP32 problem is known but was not taken into account.)
    The 220V power supply can barely handle any load and, although the low-voltage conductors are relatively well protected by slots, it's not very safe.
    I often have problems with the One Wire bus on the 2-relay board, I don't know why yet. But here too, the voltage regulation is undersized. If I operate it with 24 volts and only use the relays on the board and a few digital inputs, the voltage regulator fails within a few weeks. I operate these 2 relay boards with an external 5-volt power supply, but they are not reliable even with this, they run for a few months and then fail. If I use a separate power supply, a separate ESP32 or 8622, and a relay board or an SSR board, these run for years without problems. Although I can't really see any real difference, I think that second-choice processors are used here, and everything is dimensioned at the limit.

    Perhaps someone has had better experiences with it, I have/had 4 of each version in use, which I also purchased from different suppliers.

Leave a Reply

Your email address will not be published. Required fields are marked *