This article introduces the framework structure and component modules of the design as well as the principles of each module. It also introduces the hardware design of each part, the software design of each part, and the software flow chart. The design is an intelligent LED desk lamp integrating multiple functions with STC89C52 microcontroller as the control core. The desk lamp realizes the function of automatically detecting whether there is someone in the room and automatically turning on/off; the desk lamp brightness has an adjustment function; it has a time display function; it has a temperature display function; and it has an alarm function. The hardware design is divided into eight parts, including the microcontroller control module, button module, desk lamp module, temperature module, clock module, alarm module, display module, and infrared sensing module. The microcontroller control uses STC89C52, the display module uses LCD1602C liquid crystal to display temperature, time, date, etc., the button module is used to adjust time, date, LED brightness, etc., the clock uses DS12C887 clock chip, and the desk lamp module uses 16 LEDs and uses a buzzer. The device emits an alarm sound, the temperature sensor uses a DS18B20 chip, and the human detection device uses a BIS0001 infrared thermal sensor. The software design is written in microcontroller C language and realizes all control functions.
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