{'fraction_non_alphanumeric': 0.019834710743801654, 'fraction_numerical': 0.0022038567493112946, 'mean_word_length': 4.993399339933993, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Design of Control System of Indoor Energy-saving Lamps Based on Microcontroller

With the progress of society and the improvement of living standards, people waste more and more resources. There is no one in the room in the brightly lit Chongming building, but the lights are not turned off, and a few people are all on. Aiming at the waste of electricity caused by not turning off the lights, this paper designs an energy-saving lamp control system based on a microcontroller to realize the purpose of light on when people come, lights off when people go, and lights on when there are fewer people, and resources are saved. By analyzing the principle of traditional lighting, a design scheme of energy-saving control system for indoor lighting is proposed to achieve the purpose of reducing the waste of power resources. The hardware of this design uses the STC89C52 microcontroller as the core device of the control. The infrared sensor detects the number of people entering the room, and the photoresistor detects the external light environment. According to the judgment conditions of indoor lighting, combining the external ambient light intensity and the specific number of people in the room detected by infrared, the microcontroller can process various signals to achieve complete intelligent control of indoor lighting, avoiding a lot of waste of resources caused by no people in the room and the lights are not off. The software program part of this design is written in C language, which has high efficiency, good versatility, easy improvement and expansion, high portability, light weight, convenient use, good stability, strong adaptability, etc., to a large extent The above meets the current society’s needs for lighting control, and there is still great practicability and improvement in the future.