Hardware Circuit Design of Multifunctional Intelligent Table Lamp Based on STM32
Yingkun Hu,Hongji Wang,Jiahao Qiu,Zhong-liang Pan
DOI: https://doi.org/10.1145/3630138.3630142
2023-09-24
Abstract:According to the survey, the incidence rate of myopia and long-term poor sitting posture among young people lead to a rapid rise in the phenomenon of stooping. Based on this, a multifunctional intelligent desk lamp based on STM32 has been designed,The hardware system can be divided into two parts: the main body of the desk lamp and the low head detection grating on both sides. The main peripheral circuits include a light sensor circuit, button input ADC, Bluetooth circuit, audio circuit, battery residual voltage detection circuit, battery charging state detection, serial port debugging circuit, thermal infrared human body detection circuit, SW download interface, white and warm light PWM adjustment, temperature and humidity detection, OLED display IIC interface circuit, NRF wireless communication circuit Power circuit, etc., and corresponding programs for STM32 and WeChat mini programs were designed. The debugging results indicate that the temperature and humidity module continuously collects the temperature and humidity of the surrounding environment and automatically adjusts the color temperature of the light. The photosensitive sensor collects the light intensity of the surrounding environment, thereby automatically adjusting the brightness of the light. The human body sensor detects that there is no one around the desk lamp, and if there is no one around, the lamp will automatically turn off. The four buttons include switch buttons for mode selection, low head detection gear selection, white light brightness selection, and warm light brightness selection. Set four levels of low head detection alarm thresholds, namely 20cm, 25cm, 30cm, and 35cm. When a person's head falls below the selected alarm threshold, the desk lamp emits a voice reminder. If the person still lowers their head after the set time, the lamp will automatically turn off. The OLED screen displays the current mode, brightness value, temperature, humidity, and time information of the desk lamp. After connecting to Bluetooth, the mobile WeChat mini program synchronously displays and adjusts data such as brightness, color temperature, desk lamp mode, and ambient temperature and humidity. This intelligent desk lamp can provide users with a suitable brightness and color temperature, and is a multifunctional intelligent desk lamp for correcting improper sitting posture.
Engineering,Computer Science