0 Introduction
The rapid development of the LED industry has brought a great impact on lighting and decoration, especially the combination of LED and automobiles is a hot topic at present. LEDs are gradually appearing in the reading lights, width lights, brake lights, and even headlights in cars. Of course, as decorative instrument lights, scanning lights and chassis lights are not far behind. This article introduces the design and production of an LED scanning light.
1 System Configuration
This system consists of a high-brightness LED light bar and a car network scanning light controller. The controller also includes a logic control (microcontroller minimum system) part, a power supply part, a power drive part, and a circuit delay part. The specific block diagram is shown in Figure 1.
2 Circuit Design
Figure 2 is the logic control part of this design, which adopts the classic 8051 microcontroller minimum system, model STC89C52RC. The most convenient thing about the STC series of microcontrollers is that they only leave out the pins of P3.0 and P3.1. The program can be downloaded to the microcontroller through the serial port RS232 circuit of any experimental board, which is convenient for future modifications and upgrades of the work and also provides convenience for debugging.
It should be noted that the 31st pin of the MCU must be connected to a high level, otherwise the MCU will not read the memory in the chip, causing the MCU to not work. Although the 40-pin MCU is a bit too large, the pins are brought out with pins to facilitate future function expansion.
Figure 3 is the power supply part of this design. Because it involves powering the high-brightness LED light strip and the microcontroller separately, the power supply needs to have two voltage outputs: 12V and 5V.
The voltage of the car battery is about 12.5V. The LED light strip can be powered directly by 12V. The microcontroller needs to be converted to 5V by 7805. In order to enhance the safety of the car circuit, a fuse is added to the power circuit.
J2 is the car power input, the positive pole can be connected to the positive pole of the car width indicator light, and the negative pole can be connected to the metal part of the car structure. J1 can be used to lead out the control switch, or directly short-circuit with a jumper cap.
Figure 4 is the key point of this design. There are three groups of structures similar to Figure 4. The main device is a photocoupler, and the model can be EL817. They can achieve electrical isolation and control the 12V light bar with the signal of the single-chip computer. Two groups are selected, and the input end is connected to P2.7~P2.0 as the signal control end of the scanning light. It is used to control the eight groups of lights LED1~LED8 in the LED light bar.
It is worth noting that the input end of the optocoupler is very fragile and needs to be connected to a current limiting resistor when connected. The other end of the optocoupler can be connected to a group of LED light strips to form a loop with the 12V power supply, which is equivalent to the switch circuit controlled by the internal LED in front.
The capacitors C2 to C5 in the figure act as a delay circuit. When the optocoupler is turned on, the LED group lights up, and the capacitor is connected to the 12V power supply for charging. When the optocoupler is turned off, the capacitor and the LED group form a discharge circuit to keep the LED group from going out immediately. The tailing effect of the scanning light is achieved by this circuit.
The third group of four optocouplers is used for expansion functions.
Figure 4 Schematic diagram of this design
Figure 5 shows the signal output port of this design, where the signal output from J5 is used to control eight groups of car scanning lights, and the four groups of LED signals output from J4 are used to expand chassis lights or breathing lights. J9 is connected to the P3 port of the microcontroller to expand wireless remote control or communication modules.
Figure 5 Signal output port of this design
Figure 6 is a reference PCB layout diagram. The use of a single-sided copper-clad board increases the difficulty of wiring and requires a large number of flying wires. If a double-layer board is used, the layout problem can be simplified a lot. In Figure 3, RX can use a 75-ohm high-power resistor. Because the design uses a four-pin optocoupler, and the optocoupler is a component that may fail, a 16-pin IC socket is used in the package. In this way, each socket can install four optocouplers.
3 Component Selection
It is recommended to use silicone insulated wires of appropriate thickness for connecting to the car power supply, which can withstand high temperature and high current. The fuse can be 1A or 2A.
Select EL817 as the optocoupler, and be sure to connect a current-limiting resistor to the input of the optocoupler. Be careful not to burn out the optocoupler due to excessive current when doing experiments. As a capacitor for delayed energy storage, choose a high-quality 330UF or 470UF large capacitor.
4 Installation and debugging
This design is easy to debug. You only need to write the program of the water light or sample light into the microcontroller. The data is output from the P2 port, which is the port connected to the scanning light control optocoupler. It should be noted that the delay setting in the program should be modified according to the actual flashing light effect. As long as the time is selected appropriately, a trailing effect like a flame will be produced. In the test, a voltage of 12.5V is selected, and the maximum current is only 150mA.
5. Notes
The car is moving, and the temperature of the engine compartment is also high. Therefore, the installation environment of this design is a high temperature and vibrating environment. Pay attention to shockproof and heat dissipation during installation. The power supply is taken from the car's width indicator light, so the scanning light can work as long as the dashboard is lit.
6 Conclusion
This article uses concise ideas to realize the simple application of LED and single-chip microcomputer, providing personalized decoration for your car and adding color to your life.
Previous article:ALPS roof module achieves high antenna integration and image recognition/control
Next article:Using advanced graphics in car dashboards
Recommended ReadingLatest update time:2024-11-16 19:55
- Popular Resources
- Popular amplifiers
- 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!
- 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
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- 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!
- 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
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- DSP28035_Baud rate setting
- Fuse selection
- Complaint: Xiaomi 8 got stuck and bricked after automatic upgrade
- Improved logging
- [Image recognition classification & motion detection & analog signal processing system based on Raspberry Pi 400, fifth post] Project conclusion & documentation - 11.0...
- EEWORLD University Hall----Live Replay: ADI - Inertial MEMS Applications
- Using FreeRTOS notification functions to speed up application execution
- 【AT-START-F425 Review】First Look at AT32F425
- Circuit analysis, please help me
- Personal income tax