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:
2. Power module 220V to 6VDC
3. A normal socket
Step 1: 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.
Step 2: Code for ESP12E
Get the code for ESP12E at this link (Google share)
Step 3: 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.
Step 4: 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.