Ethernet switchable 2-port power outlet
Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.
Zapisane na tym urządzeniu.
Wired Ethernet switchable 2-port power outlet with full local control from web browser or via your smart home
- Ocena
- 0 / 5
- Polubienia
- 2
- Pobrania
- 12
- Wydruki
- 0
- Wyświetlenia
- 242
- Oceny
- 0
Aktualizacja u źródła:
Informacje o modelu
- Źródło
- Printables
- Kategoria
- Electronics
- Licencja
- Creative Commons — Attribution — Noncommercial
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. ;-)












Code download:
- Download the code from my GitHub repository and upload it to the board.
- Flashing these special ESP32 boards requires a UART-TTL to USB adapter listed also in the parts list. The board itself has no USB port as you already might have seen. How to connect the adapter as well as how to generally upload code to it is good explained in this video: Step by Step Upload Code to WT32 ETH01 from Arduino IDE and therefore not extra explained here again.


- Selected the board “WT32-ETH01” from the installed Arduino IDE:

- You will need to add extra libraries manually to the installed Arduino IDE. You will find them with their links to download in the top of the code.
- Try to test and complete the software part before you solder the board to the case part, because attaching the USB adapter will be harder after that…
- The used IP-address settings are set static in the code to ensure maximum stability. You will need to adjust these in the code manually as well as for the 4 links shown on the page in the web portal.
- The mains voltage part of the case is as good as possible separated. You do not need to open the bigger lid to upload new code. Therefore you just need to open the 5V lid part only!
Parts needed:
- 1x UART-TTL USB adapter with CH340G
- 1x WT32-ETH01
- 1x 2 channel relay module 5V
- 1x Connector 2 pins with 5.5 barrel jack
- 3x Wago 221-413 - 3 wire clamps
- 1x 5V/2A power supply with 5.5 barrel jack
- 2x power socket 230V/10A
- 1x AC 250V 10A IEC320 C14 panel mount power socket
- 10x M4x12 counter sunk screws
- 10x M4 nuts
- 6x M3x10 screw
- Some wires for the 230V mains voltage usage
- Some wires for the 5V voltage usage
- NOTE: Proper tools required for working on electronically components
Obvious but very important note:

‼ 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…
Wiring instructions:
- Wiring this device will require the need to solder.
- In the following table you will see the wiring for the 5V part:
| Barrel jack: | Relay: | ESP32: |
| 5V | VCC | 5V |
| GND | GND | GND |
| IN1 | GPIO 32 | |
| IN2 | GPIO 33 |

Printing instructions:
- 0.25 speed profile
- Organic supports from the print bed needed for the parts as shown in the pictures
- Brim activated but may not be needed
- Print the case with the new option in Prusa Slicer 2.9: Paintable Fuzzy Skin
- Textured sheet used:
- If you use a textured sheet too, let it cool down completely after the print and wait for the part gets loose by itself. Do not pull on it to avoid ripping off the letters!
- In my case it takes 30-45 minutes after the print has ended and the part just lays loose on the print bed.
- Do not touch the print bed and clean it with Isopropanol alcohol before printing.



Happy printing =)