Wifi Socket

Using ESP12E (programming in Arduino IDE) to control ON/OFF socket 220V through mobile phone (in same wifi network at home)
What we need is:
1. ESP12E https://amzn.to/2zoD8TU
2. Power module 220V to 6VDC https://amzn.to/2OalkEh
3. A normal socket https://amzn.to/2Ogk823
4. LED bulb 220V https://ebay.to/2xYA1ju
Make Control PCB


Make a PCB for ESP12E controlling 5V relay. This relay will ON/OFF the socket.
Try to make it as small as possible to fit space in socket.
Code for ESP12E
Get the code for ESP12E at this link (Google share)
Install PCBs to Socket


My case, i have to take out 2 of 3 socket to get space for power module and ESP12E PCB.
Install them to be fit inside socket.
Test It!


Plug a light for testing.
Go to web browser, type address (this project) is http://192.168.1.30/socket
A local web will be shown, click on "TOGGLE it" to ON/OFF relay for socket.