Lemontree

Source program based on 51 microcontroller multifunctional smart desk lamp (with clock, posture correction, display temperature and brightness)

 
Overview

Function description:
1. After power on, the LED light lights up, which means that the current light is in automatic control mode;
2. You can switch back and forth between automatic and manual modes through button K5;
3. In manual mode, buttons K2, K3, and K4 correspond to A light brightness; (unavailable when k1 is pressed)
4. In automatic mode, it must first detect someone before automatically controlling the brightness, otherwise the desk lamp will go out. You can block the light of the photoresistor, or use a flashlight to illuminate the photoresistor to simulate changes in lighting, so that you can see that the brightness of the desk lamp will change as the light intensity in the environment changes. The effect is that the weaker the light, the brighter the desk lamp. . If the human body sensor cannot detect anyone for 1 minute, the desk lamp will automatically turn off. (The photoresistor is behind the USB lamp);
5. Whether it is automatic mode or manual mode, the brightness is divided into 10 levels, and 0-9 is displayed on the LCD;
6. Set date and time: Press K1 (setting ) key, the cursor will flash at the displayed year position, indicating that the year can be adjusted at this time. If you need to adjust the year, press K3 (plus) and K4 (minus) to adjust the year. Then press the K2 (move) key, and the cursor will flash when the month position is displayed. The month can be adjusted in the same way. Press the K2 key again to set the day, hour, minute, and second respectively.
7. When approaching the ultrasonic wave, the buzzer will alarm.

 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-07 12:55:31

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号