Project brief introduction STM32F103C8T6+ESP8266 01S connects to the cloud platform and controls the on and off of the 5VLED desk lamp and its brightness with a mobile phone. It can also be adjusted according to the ambient light intensity. PWM+MOS tube realizes on-off control and brightness control of LED lights. The BH1750 sensor IIC interface collects ambient illumination data. The onboard USB interface facilitates power access and desk lamp access. Implement WeChat AirKiss distribution network.
Some people think that it is impossible to renovate a dormitory desk lamp for 30 yuan. Here is a list of materials.
Debugging process 8.16 At noon today, the long-awaited board finally arrived. After hurriedly soldering, I found that there was a problem with the typeC interface soldering. For me who only have a soldering iron at hand, I just want to say that I will no longer use SMD components. I used to use them before. Terminals, I was so confused when I chose typec this time. . . . . Ten thousand words are omitted here, typeC power supply solves the problem. Not to mention, it does look better than the terminal blocks. 8.16 Night After three hours of hard work transplanting the onenet official routine, it has been successfully connected to the onenet platform. The next step is to upload and distribute data. 8.17 It's so hard to sit here adjusting the program all morning. It really hurts my liver. The biggest gain is that you must look at the schematic diagram to configure the pins. The PWM output was configured with the wrong pin, which made me doubt myself. 8.17 Afternoon and evening It’s now 10pm, and I haven’t eaten yet. I spent an afternoon verifying a sentence, "bugs are as deep as the sea, all day long!!!" When doing the final overall debugging in the afternoon, I found that the device cannot send a single piece of data in the self-dimming mode. As long as this is sent, it will definitely work. All data will be corrupted. I greeted each of the three major religions in the world but couldn't find the problem. Just now, I was so hungry that I suddenly discovered that the statement used u8, and when reporting the data, its data type was int. Good guy, this The question is too speechless, and it proves the words of our predecessors that bigger bugs often appear in the simplest places. I didn’t want to say anything anymore and went to eat. 8.17 I had just gone out in the evening and had not walked 10 meters when the heavy rain came. I was destined to eat instant noodles today. Ying Ying Ying.
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