Use a transformer to convert 220V to 9V to drive the relay, and then convert it to 5V to power the microcontroller. The main control is STC15W204S microcontroller. The relay is suitable for small-power electrical appliances. The human body sensing and photosensitive modular use switch will automatically count down for 30 minutes and then close the relay after the human body is sensed at night. , turn on the relay, and it will automatically turn off after 2 minutes. Open source has been uploaded to 51 Forum https://blog.csdn.net/qq_33945682/article/details/105844333 http://www.51hei.com/bbs/dpj-186189-1. html (under review)
There is an error in the board in the picture. I used jumpers to solder it manually. Now the PCB of the project file has been corrected.
The overall structure is relatively simple, the program is not complicated, and my personal energy is limited. More functions will be added and improved in the future.
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