1 Introduction
LED is called the fourth generation of lighting source or green light source. The light-emitting device of LED is a cold light source, which has the characteristics of energy saving, environmental protection, long life and small size. The light efficiency of incandescent lamps and halogen tungsten lamps is 12-24lm/W, fluorescent lamps are 50-70lm/W, and sodium lamps are 90-140lm/W, and most of the power consumption becomes heat consumption. LED can reach 50-200lm/W, and the monochromaticity of single light is good, the spectrum is narrow, and no filtering is required, and it can directly emit colored visible light. Under the same lighting effect, the power consumption is about one-tenth of incandescent lamps and one-half of fluorescent lamps. A fluorescent lamp with the same effect is more than 40 watts, while the power of each LED is only 8 watts. The average life of LED is 100,000 hours, with strong safety and reliability, and does not contain mercury, sodium and other substances that may endanger health. It is beneficial to environmental protection and is called "green lighting source".
2 Intelligent lighting control solution design
Photoresistors are used to detect the intensity of indoor light, and passive pyroelectric infrared detectors can detect the characteristics of the human body. The sensor transmits the detection data to the control core - the single-chip microcomputer, which controls the opening, closing and illumination of the lighting equipment according to the processing results. Figure 1 is a block diagram of the principle of the intelligent lighting control solution.
The system mainly consists of three parts: sensor part, controller part and LED driving circuit and lighting system, see Figure 1.
3 System Hardware Design
3.1 Sensor part
3.1.1 Passive pyroelectric infrared detector
The detector has three key components: Fresnel filter chip, which acts as a bandpass filter through a filter chip with a cutoff wavelength of 8 to 12μm, so that environmental interference is significantly controlled; Fresnel lens, which has a focusing effect, that is, refracting (reflecting) the pyroelectric infrared signal on the pyroelectric infrared sensor. The second function is to divide the warning area into several bright and dark areas, so that moving objects entering the warning area can generate changing pyroelectric infrared signals on the pyroelectric infrared sensor in the form of temperature changes, so that the pyroelectric infrared sensor can generate changing electrical signals; the pyroelectric infrared sensor converts the changes in infrared radiation energy passing through the filter chip into electrical signals, which is called thermoelectric conversion.
The human body has a constant body temperature, generally at 37 degrees, so it emits infrared rays with a specific wavelength of about 10μm. Passive infrared probes work by detecting infrared rays of about 10μm emitted by the human body. The infrared rays of about 10μm emitted by the human body are enhanced by the Fresnel filter and gathered on the infrared sensing source. The infrared sensing source uses pyroelectric elements. When this element receives a stable change in infrared radiation from the human body, it will lose its charge balance and release the charge outward, which will produce a change in the level after detection and processing.
Based on this principle, a stable infrared module is used. When someone is walking, the module outputs 3.3V voltage, and when no one is around, it outputs a low level. The module has an adjustable delay, which can reach up to 18 seconds. [page]
3.1.2 Ambient Brightness Sensor Module
The core component of this sensor module is the photoresistor. A photoresistor is a resistor made by the photoelectric effect of a semiconductor, and its resistance value changes with the intensity of the incident light; when the incident light is strong, the resistance is small, and when the incident light is weak, the resistance increases. Photoresistors are generally used for light measurement, light control, and photoelectric conversion (converting light changes into electrical changes), see Figure 2.
3.2 Control part
STC12C5628AD series MCU is a single clock/machine cycle (IT) MCU produced by Hongjing Technology. It is a new generation of 8051 MCU with high speed/low power consumption/super strong anti-interference. The instruction code is fully compatible with the traditional 8051, but the speed is 8 to 12 times faster. It has an internal integrated MAx810 dedicated reset circuit. 4-channel PWM, 8-channel high-speed 10-bit A/D conversion, for motor control and strong interference occasions.
The main reason for choosing this type of microcontroller is that it has PWM and AD conversion functions, which greatly simplifies the peripheral circuit. At the same time, the generated PWM signal can be directly connected to the driver chip, which greatly reduces the cost of the system.
Since PWM dimming is adopted, in order to reduce unnecessary peripheral circuits, the selected driver chip can directly input PWM square wave through the DIM pin. [page]
The LM3407 is a pulse width modulated floating buck converter with integrated N-channel power MOS field effect transistors, designed to provide precise constant current output to drive high power light emitting diodes (LEDs). The LM3407 features a pulse level modulation (PLM) control scheme that ensures a constant current output accuracy of better than 10% over the entire input voltage and operating temperature range when an external 1% current setting thick film resistor is used. Another feature of the converter is a DIM pin that can receive standard logic pulses to control the brightness of the LED array, making the LM3407 an ideal device for precision power LED drivers or constant current sources.
4 Software Design
This program adopts modular design concept, with the main program as the core and two functional module subroutines set up, so that some functions can be implemented in the subroutines, simplifying the design structure. During the operation, the main program calls the functional module subroutines.
[page]
The system has two functional modules: 1 is the AD conversion module; 2 is the PWM generation module. They can be directly called in the main function, which greatly simplifies the design structure. The flow chart of the system is shown in Figure 6.
5 Conclusion
After experimental verification, this system has achieved good results in energy saving and improving the lighting environment. It not only eliminates the nuisance of voice-controlled lights in the corridors of residential buildings, but also solves the problem of turning off lights in time to save energy. The selected LED lights are even called "green light sources in the 21st century."
The system has a simple structure and strong practicality. It can be applied to corridor lights in apartments, office buildings, bathroom lights, etc., and can achieve good lighting, energy saving and environmental protection effects.
Previous article:Design of programmable filter for controllable amplifier based on single chip microcomputer
Next article:Research on LPC900 series microcontrollers in radio frequency data transmission modules
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- The embodiment of advanced usage of C language in application
- Summary of comprehensive test lists in various regions
- Use CCS to connect to a running C2000 chip
- Answer questions to win prizes | TI Industrial Essentials selection, exquisite content, worth reading!
- A request for help from a newbie
- Wind speed and light irradiance synchronous tester based on MSP430
- Convert gerber file to ad format pcb
- Application of high-performance line cards for synchronous networks
- After 30 years, China has finally reached the United States
- 12. LCD12864 second edition (drawing + characters + numbers)