Cheapest Smart Plug || Wemos D1 Mini || Esp8266 || Wifi Plug || Smart Plug || Wmos || Vishal Soni India
by vishalsoniindia in Circuits > Arduino
1227 Views, 3 Favorites, 0 Comments
Cheapest Smart Plug || Wemos D1 Mini || Esp8266 || Wifi Plug || Smart Plug || Wmos || Vishal Soni India
In this project we will make a cheapest smart plug. The plug works on wifi so you can access any home appliances with your smart phone.
In the Smart plug the Wemos D1 R2 board is used which is based on ESP8266, it provide wifi connectivity to our device. Wemos Board used with relay to control the device works on mains supply.
If you like this project please subscribe to my YouTube channel.
By the way, subscribe to my YouTube channel for more projects like this. I also update my upcoming projects on Instagram.
buy me a coffee! ☕: Donate
Requirements
- you need two plugs one of them is big to hold circuit and other is small to control devices.
- Wemos D1 R2 Board
- 1k Resistor
- BC547 transistor
- 5v relay
- 220v AC to 5v DC converter i am using mobile charger.
Make Some Space
- Take a Big Plug.
- Open it.
- Remove all copper plates inside it.
- Remove unnecessary plastic to make some space.
- Use cutter and hot soldering iron to remove plastic.
Try to Place All Components
- Put all components to make sure there is enough space.
- check the cap is closing perfectly.
Connect Ac Terminals
- Connect Phase , Neutral and earth terminal on plug with help of screw as given in image.
Circuit Diagram for Smart Plug
- Here is circuit diagram you can download it from my Github page link given below.
- the socket in circuit diagram, where you will connect device.
Github :- https://github.com/vishalsoniindia/Smart_Plug_usin...
Connect the Circuit
- Connect All the circuit as shown in circuit diagram
- Place All components in Plug and place some hot glue.
- Make sure mains AC terminal are not touching the components.
- I also made a hole to program Wemos D1 board with micro usb.
Prepare Small Plug
- Take small plug and open it.
- Remove all the copper plates,
- Take three nuts and bolts we will use it to fix the copper plate shown in next step.
Connect Small Plug With Bigger
- Connect Phase, neutral and Earth wire the smaller plug with help of nut and bolts.
- The nut and bolt also holding copper plats on smaller plug.
- put cap of smaller plug.
Close Everything
- Close Everything with help of screw and hot glue.
Install CH340 Driver
- Download the folder from my Github page.
- Click of CH34x file .
- On next window click on install.
- After few second your driver install success.
- To verfy it connect the device with PC.
- Open device manager.
- here you will see USB SERIAL CH340. it means driver is installed.
Github :- https://github.com/vishalsoniindia/Smart_Plug_using_wifi
Install Wemos D1 Board Library
- Copy the link given below.
"https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json"
- Open arduino and go to the file >> preferences.
- Past the link as shown in image, if you already have a link separate it by comma.
Upload the Code
- Open the "Wifi_device_CSS" code.
- Here change SSID and password to your Hotspot name and password.
- Select board as Wemos D1 R2.
- Select port where your device connected.
- upload the code.
Find IP Address
- Open serial monitor
- Select boadrate 115200.
- Close serial monitor.
- now deconnect your device and connect it again.
- instantly open serial monitor.
- you will see some ip address note the ip address.
Done
- Insert your device in mains plug.
- Insert home appliance in device.
- Wait a min till it connect to wifi.
- Type IP address in your browser.
- Congratulation, Now you are able to control your device.
By the way, subscribe to my YouTube channel for more projects like this. I also update my upcoming projects on Instagram.
buy me a coffee! ☕: Donate