0 Introduction
This article uses high-efficiency, energy-saving and environmentally friendly LED lamps as light sources, and uses sensor modules, light-controlled street lamp modules, and constant current source modules to implement it. According to environmental, traffic and other factors, the microcontroller collects signals from photoresistors or photoelectric switches to control the on and off of street lamps, realizing photoelectric and time control; at the same time, it has functions such as traffic situation detection, automatic fault detection and alarm, realizing intelligent control of street lamps, saving electricity energy and human resources.
1 System design requirements
1.1 System design requirements.
Design and make a set of simulated street light control system, the layout of street lights is shown in Figure 1. It is required to realize the clock function of the simulated street light control system, set and display the time of switching lights, and control the branch lights to turn on and off on time; automatically control the lights on and off according to the changes in the brightness of the environment; automatically adjust the lighting status according to the traffic conditions; independently control the on and off time of each street light; when the street light fails, the branch controller sends a ticking alarm signal and displays the number of the faulty light. The traffic conditions use infrared transceiver sensors to realize the automatic adjustment function. The unit controller has a dimming function, and the output power of the street light drive power supply can be automatically reduced according to the set requirements at the specified time. The power should be set and adjusted within the range of 20% ~ 100%, and the adjustment error is ≤2%.
Figure 1 Schematic diagram of street light layout
1.2 System Design
The system uses C8051F020 microcontroller as the system controller, and uses wired transmission to control LED1 and LED2. The control method is shown in Figure 2. C8051F020 microcontroller is a fully integrated mixed signal system-level chip with built-in ADC and DAC. However, this system needs to collect changes in ambient light and automatically control the brightness of LEDs, which requires converting analog voltage into digital quantity processing and converting digital quantity into analog quantity control. The entire system is completely self-sufficient, uses fewer peripheral devices, has low system cost, and is simple and convenient to debug.
Figure 2 C8051F020 control mode structure.
2 System Hardware Design
2.1 System overall block diagram and control circuit design
The hardware structure of the infrared road light control system is shown in Figure 3. The control system is mainly composed of functional modules such as the main control microcontroller, display interface, infrared remote control, sensor, and constant current drive. The C8051F020 microcontroller receives the infrared remote control signal, sets the time for switching the light on and off, starts the analog control system, and collects the ambient light and dark signal and inputs it into the microcontroller for analog-to-digital conversion to control the switching state of the LED light. The microcontroller detects the working state of the LED light in real time. When a fault occurs, the microcontroller controls the sound and light circuit to alarm and controls the LCD to display the fault point number. The analog voltage is output within the specified time to control the brightness of the LED light. The traffic situation is detected according to the infrared receiving signal, and the LED light can be intelligently controlled according to different traffic conditions. The minimum system and interface circuit of the C8051F020 microcontroller are shown in Figure 4.
Figure 3 Hardware structure of infrared line light control system.
Figure 4 C8051F020 MCU minimum system and interface circuit schematic.
2.2 LED constant current drive power supply design
Since OP07 has a very low input offset voltage (maximum 25 μV), OP07 does not require additional zeroing measures in many applications; OP07 also has the characteristics of low input bias current (± 2 nA) and high open-loop gain (300 V/mV). The output voltage of the 6th foot of the OP07 integrated operational amplifier is fed back to the inverting input terminal through resistor R30 to form a common-phase proportional circuit. The base of the power transistor Q6 is connected to the operational amplifier to increase the drive current. When the common-phase input voltage of OP07 is constant, due to the existence of negative feedback, the output voltage of OP07 is guaranteed to be constant, so that the current flowing through the LED load is a constant current. The schematic diagram of the LED constant current drive power supply circuit is shown in Figure 5. [page]
Figure 5 Schematic diagram of LED constant current drive power supply circuit.
According to Figure 5, we can see that:
It can be seen from the above formula that the value of the output current is only related to the input control voltage, and the two are proportional. In the circuit, R25 = R26, R39 = R30, and the proportional factor can be changed by selecting appropriate resistance values. When changing the current source proportional factor, it is also necessary to change the capacitance value of the compensation capacitor C29.
2.3 Position detection circuit
Infrared transceiver sensor is used, a transmitting tube transmits infrared and a receiving head receives infrared signal. Figure 6 is the principle block diagram of infrared transceiver sensor to judge traffic conditions and infrared receiving and transmitting circuit. Infrared transmitting tube and receiving tube are installed in opposite direction. When an obstacle reaches the middle of infrared transmitting tube and receiving tube, different high and low levels will be generated. The single chip collects this signal and controls the switch state of the light. Infrared transmitting tube and receiving tube are shielded to eliminate external interference.
Previous article:Overview of MCU Memory Registers
Next article:The same data memory expansion technology analysis solution as the MCS51 series microcontroller
- 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
- UltraISO, English learning .iso files made on PC, cannot be played?
- How to calculate the saturation of an inductor with a magnetic core? Is there a calculation formula for reference?
- What is the difference between the PLL input clock (1) the clock generated by the XTH crystal oscillator and (2) the clock input from the XTH pin PD00?
- Summary: GigaDevice GD32F350 Innovation Design Competition Participants' Shared Content
- Good stuff for beginners - How to find MSP430 program examples on TI's official website
- MicroPython's GNSS parser micropyGPS
- Please explain the pulse signal code at the bottom that generates a clock cycle every 0.5s
- 【Iprober 520 current probe】Closed magnetic circuit measurement
- [GD32L233C] + 7. Using ds18b20 temperature sensor under RTthread
- EEWORLD University ---- Engineer It Series