February 3, 2025
Description
Wired Ethernet switchable 2-port power outlet with full local control from your web browser or via your smart home with the usage of prepared URLs.
It uses the WT32-ETH01 ESP32 board which allows using ESP32 controllers connected to your wired Ethernet instead of WiFi.
You can switch both power output sockets separately.
You can control the outlets via web portal or the also listed links to add to your smart home:
The components fit right in the case as shown and the 5V low voltage part is clearly separated from the mains voltage part as good as possible:
Pictures of the 1st prototype where someone had to take the drill out to make the ESP32 fit. ;-)
‼ Important note to the usage of mains voltage in this model: ‼
Wiring the mains voltage part is not explained here on purpose. If you are not legally qualified and therefore not allowed to work on mains voltage, you should not build this project or better find someone to do that for you with a legal certification. You should not try this yourself to avoid a possible fatal electrical accident!ALLWAYS unplug the mains voltage power cable before working on the model, open the lid or upload new code to the ESP32. Seriously!You are using this project at you own risk.
You have been warned ‼
All metal screws and parts shown on the outside of the case have no direct connection to the inside of the case to ensure they cannot touch any high voltage cables as shown here:
You will need to insert the 10 M4 nuts before adding the parts to the base. This can be a little tricky, but for safety reasons absolutely required to ensure, that if somehow a cable might get loose inside, no metal part on the outside can make contact to it. Put the nuts into each of its desired places from the side and pull it in its position with a longer ~M4x20 screw. After the part is inserted you will not be able to reach the nuts anymore…
| Barrel jack: | Relay: | ESP32: |
| 5V | VCC | 5V |
| GND | GND | GND |
| IN1 | GPIO 32 | |
| IN2 | GPIO 33 |
Happy printing =)
License:
Creative Commons — Attribution — Noncommercial
8