• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Ethernet switchable 2-port power outlet 3D Printer File Image 1
Ethernet switchable 2-port power outlet 3D Printer File Image 2
Ethernet switchable 2-port power outlet 3D Printer File Image 3
Ethernet switchable 2-port power outlet 3D Printer File Image 4
Ethernet switchable 2-port power outlet 3D Printer File Image 5
Ethernet switchable 2-port power outlet 3D Printer File Image 6
Ethernet switchable 2-port power outlet 3D Printer File Image 7
Ethernet switchable 2-port power outlet 3D Printer File Image 8
Ethernet switchable 2-port power outlet 3D Printer File Image 9
Ethernet switchable 2-port power outlet 3D Printer File Image 10
Ethernet switchable 2-port power outlet 3D Printer File Image 11
Ethernet switchable 2-port power outlet 3D Printer File Image 12
Ethernet switchable 2-port power outlet 3D Printer File Image 13
Ethernet switchable 2-port power outlet 3D Printer File Image 14
Ethernet switchable 2-port power outlet 3D Printer File Image 15
Ethernet switchable 2-port power outlet 3D Printer File Image 16
Ethernet switchable 2-port power outlet 3D Printer File Image 17
Ethernet switchable 2-port power outlet 3D Printer File Image 18
Ethernet switchable 2-port power outlet 3D Printer File Image 19
Ethernet switchable 2-port power outlet 3D Printer File Image 20
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 1
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 2
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 3
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 4
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 5
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 6
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 7
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 8
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 9
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 10
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 11
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 12
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 13
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 14
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 15
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 16
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 17
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 18
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 19
Ethernet switchable 2-port power outlet 3D Printer File Thumbnail 20

Ethernet switchable 2-port power outlet

AWSW avatarAWSW

February 3, 2025

printables-icon
DescriptionCommentsTags

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

 

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:
5VVCC5V
GNDGNDGND
 IN1GPIO 32
 IN2GPIO 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 =)

License:

Creative Commons — Attribution — Noncommercial

Related Models

Thor Mjolnir Hammer Bic Pen preview image

Thor Mjolnir Hammer Bic Pen

effektz profile image

effektz

9,087

Diverse Schilder / various labels  for hobby & makers preview image

Diverse Schilder / various labels for hobby & makers

RPK profile image

RPK

2

Customizable EU License Plate Keychain preview image

Customizable EU License Plate Keychain

John_M profile image

John_M

36

Vorpal The Hexapod Walking Robot preview image

Vorpal The Hexapod Walking Robot

vorpal profile image

vorpal

4,984

MakerZ – Open Source 1/28 RC Drift Chassis by Fails & Makes | Açık Kaynak 1/28 RC Drift Şasisi preview image

MakerZ – Open Source 1/28 RC Drift Chassis by Fails & Makes | Açık Kaynak 1/28 RC Drift Şasisi

Fails&Makes profile image

Fails&Makes

Cacciavite Portachiavi - Scewdriver keychain preview image

Cacciavite Portachiavi - Scewdriver keychain

Butti Maker Studio profile image

Butti Maker Studio

22

Snap-Together Mini Minecraft Jack-O-Lantern with integrated LED preview image

Snap-Together Mini Minecraft Jack-O-Lantern with integrated LED

scottrlindsey profile image

scottrlindsey

4,448

Small Parts Storage Drawers - Organizer preview image

Small Parts Storage Drawers - Organizer

GT 3D Makers profile image

GT 3D Makers

29

8