XSANG5z

[Training Camp_Advanced Class] Smart Little Lamp

 
Overview

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. bill of materials.png

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.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-24 15:45:17
  • Altera SoC Gigabit Network Test Based on iperf
  • Problems with porting micropython to punctual atomic F767
  • Fixed-point DSP algorithm design based on IQmath library
  • Wiring diagram of emergency power supply and emergency lighting
  • JTAG download problem
  • About Windows 7 Drivers and Hardware - WinHEC Class Link

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号