Finished product display
For home smart sockets that use the esp8266 chip as the main control, the firmware can be flashed by espeasy, tasmota, esphome, bliker and other open source firmware, or you can flash nodemcu, micropython and play by yourself!
This project uses a public version of the shell design. After successful testing, it can be used in daily life and has practical value.
(1) Learn the design ideas and methods of smart home products;
(2) Learn how to use the circuit of the ESP8266 chip;
(3) Learn the principles of relay driving and understand the rules of high-voltage isolation wiring;
(4) Understand the design ideas of isolated power supply 220 to 5V;
(5) Understand how to design a suitable PCB shape according to the shell;
(6) Learn to use Lichuang EDA to design schematic diagrams and PCB diagrams;
(7) Learn the composition of PCB boards and factory production processes;
(8) Practice welding skills and master the use of multimeters, soldering irons and other tools;
(9) Learn how to use TTL serial port tools and how to burn firmware.
(1) Onboard 220V to 5V/700MA isolated power module, which can be directly connected to the mains power;
(2) Onboard relay, external electrical equipment;
(3) Using ESP8266 as the main control and Wifi communication, there are many playable firmwares;
(4) In addition to Wifi control, it also provides a button to manually control the device;
(5) Some spare IOs of ESP8266 use pin headers to connect externally, which is convenient for adding expansion modules;
The circuit design is simple and is mainly composed of: 220V to 5V isolated power module interface circuit, 5V to 3.3V step-down circuit, ESP8266 main control circuit, relay control circuit, LED indication circuit and button control circuit.
All low-power household appliances within 1000W can be connected and controlled by this smart socket!
This program is a practical application program and is only used for learning reference. All commercial activities for profit are strictly prohibited;
This circuit matches the housing and can be designed according to the overall dimensions and layout in the reference picture, or you can find some public molds for use;
Pay attention to the electrical power. This relay module cannot be connected to high-power household appliances above 1000W. The relay module can be modified and applied to high-power occasions;
Pictures of the front side of the proofing circuit board and the front side after soldering the components. Pictures of
the back side of the proofing circuit board and after the components are soldered.
Installation diagram of the circuit board in the casing.
Tasmota open source firmware Github address: https://github.com/arendst/Tasmota
If you do not need to customize the firmware function, it is recommended to directly use Tasmotizer to program the firmware compiled by Tasmota!
Tasmotizer download address: https://github.com/tasmota/tasmotizer/releases
Custom firmware online compilation address: (requires Github account login) https://gitpod.io/#https://github.com/benzino77/tasmocompiler
The compilation system
is running. After the operation is completed, the first step is to click download source
Next, configure your own Wifi account password
Next, select the chip model used, and the sensors and functions that need to be integrated.
Next, select the language of the firmware, click compile, and wait for compilation. Download the firmware when finished!
Use tasmotizer to burn firmware
After the firmware is burned, the module will automatically restart. After a while, click GetIP on tasmotizer to get the address of the module on the Wifi network. Open this address in the browser to set up Tasmota. Of course, you can also use tasmotizer to set it up directly. !
The basic settings of this module are as follows:
Set the home MQTT server address, user, and password.
Create a new virtual device in the home Domoticz service, of type switch.
View the IDX number of the newly created switch in Domoticz.
Set the number to Tasmota of esp8266! Access completed!
After the above steps, today's protagonist socket has officially become a member of the smart home. Its linkage, automation scripts, etc. can be set in the Domoticz system!
Control video demonstration has been uploaded as an attachment!
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet