WiFi Switch

Wall outlet adapter which can be controlled over the home wireless network

Similar projects worth following
This wall outlet can turn On/Off any device which is plugged into it. It uses an ESP8266-01 module to connect to the home network over WiFi.

Recently I wanted to remotely turn on/off a device which is connected to a wall outlet. Building an RF transmitter and a receiver was an option, but why build two separate RF units when we already have WiFi all around us.

So, instead of trying to integrate WiFi capabilities into the device, I've decided that it is more useful to build a wall outlet adapter which can be controlled over WiFi.

Since I had several of these universal travel adapters lying around, I used them as reference for my designs. 


  • 1 × ESP8266-01 WiFi module
  • 1 × 230VAC to 5VDC converter HiLink-5VDC - HLK-PM01 3W
  • 1 × 5V Relay 230V 10A
  • 1 × 3.3V Regulator LM1117 3.3V
  • 1 × NPN Transistor MMBT2222A

View all 9 components

  • Log 1: Bumps along the road

    Anuradha Gunawardhana06/02/2019 at 14:41 0 comments

    🛠 Bumps!!

    During soldering I found out that I've made some mistakes on this version(V1) of the board and I correct them using the old fashion way.

    Other than that I've encountered some issues when using the GPIO2 pin of the ESP8266-01 with the relay. When booting up GPIO2 output a small pulse, which activates the relay interrupting the booting of ESP module. this issue was resolved by changing the pin to GPIO3.

View project log

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates