LED guardrail lights use fluorescent tubes or LEDs as light sources and continuous guardrails as carriers to form an approximately linear guardrail light strip. This article mainly introduces a guardrail light solution based on a 16-channel constant current LED driver chip. The solution mainly consists of the following parts: (1) The main control circuit based on the STC11F02 microcontroller, whose main function is to generate SPI control signals; (2) The LED driver circuit based on the LN0134, whose main function is to use its 16-channel constant current to load the LED; (3) The power input voltage conversion circuit and the LED power supply circuit, which mainly complete the functions of circuit protection, chip power supply, and LED light power supply.
Introduction to main chip functions
LN0134 is a 16-way constant current LED driver chip developed by Nanlin Electronics. The chip has a built-in 16-bit CMOS shift register and output latch, which can convert the input serial data into a parallel output format, thereby controlling 16 output current sources, and providing a constant and consistent current of 3 to 45 mA at each output end to drive the LED without being affected by the load. The output current can be adjusted by adjusting the size of the external resistor, so as to easily control the brightness of the LED, and the average current of all LEDs can be adjusted by inputting a PWM signal at the enable end (OE). At the same time, it also supports the SPI communication protocol, making it easy for us to control the communication data, so it becomes one of the best ICs for driving LEDs.
The STC11F02 microcontroller has 2K FLASH program storage space and 256B SRAM storage area embedded inside; the chip has an advanced instruction set structure, is compatible with the common 8051 instruction set, has hardware multiplication and division instructions, and does not require a programmer or emulator, and can be upgraded remotely. This solution takes advantage of its high speed, low cost, and streamlined I/O port to simulate the SPI protocol to achieve communication control of other ICs.
Guardrail Light Design
1) Hardware circuit design and principle
The basic principle of this scheme is: the single chip microcomputer simulates the SPI protocol, sends data to the LN0134 driver chip, and the LN0134 internal hardware circuit realizes the serial input and parallel output of data, drives 16×3 LEDs, and then controls the changes of LED lights by changing the data to achieve different combinations of LED lights, such as: running lights, twinkling, jumping, breathing and other effects. The circuit of this scheme is completed in the hardware environment PADS. In order to save costs, the generated PCB files are also single-sided boards.
2) MCU control signal circuit
Figure 1 is a diagram of the MCU control circuit. The control signals generated by the main control chip are: (1) SPI control signals, including four ports: OE, SDIO, SCLK, and LE; (2) LED power enable signals, including two ports: CONTROL1 and CONTROL2.
MCU control circuit diagram
3) LN0134 application circuit
The LN0134 application circuit is shown in the figure. The LED driver chip receives the SPI signal sent by the microcontroller. Different SDIO data will get different data from OUT0 to OUT15, thereby driving the LED to produce different change effects. The LN0134 chip supports multi-chip cascading. Through the data port SDO end, it connects to the SDI port of the next chip, and so on. The design of the long-distance guardrail light solution only needs to cascade small units one by one. Setting the resistance value of R30 can change the output current value, thus eliminating the trouble of multi-channel current limiting.
LN0134 Application Circuit Diagram
4) Power supply circuit
The power supply circuit is shown in the figure. This circuit supports an input voltage of 12V to 15V, and the positive and negative poles can be prevented from being connected in reverse through the rectifier bridge. A 5V power supply voltage can be obtained through IC1, which provides power for the microcontroller and LN0134 chip; IC2~IC6 can complete the power supply of the LED light group, and the CONTROL1 and CONTROL2 ports provided by the microcontroller can control the power supply of POVER1 and POVER2 to be turned on and off.
Power supply circuit diagram
5) Software Design
Software design is the lifeline of the entire solution. It directly determines the operation quality and efficiency of the entire solution, and also reflects the functionality and reliability of the solution. The on-chip program of the STC11F02 chip is written in the software development environment Keil uVision2. The focus of the program is to simulate the SPI communication protocol. The timing waveform of the theoretical design is shown in the figure. The software code is implemented in C language. The SPI waveform simulated by the microcontroller observed by the oscilloscope is shown in Figure 5. Among them, Tek1 is SDI; TeK2 is CLK; TeK3 is LE; TeK4 is OE, which meets the design requirements.
SPI Timing Diagram
SPI Waveform
First, the SPI simulation program is modularized, mainly for the convenience of calling; in the whole process, the data in the buffer changes the most. When the data changes, the corresponding display effect will change; continuous data changes produce different lighting, which also shows the colorful and dazzling characteristics of the guardrail lights.
Conclusion
This guardrail light design is a 1-meter-long unit module. For longer guardrail distances, these small units need to be cascaded to improve the driving ability of the control signal. The 16-channel LN0134 chip is selected to increase the number of LED lights. According to the performance parameters of the chip, changing the power supply circuit can better expand the application circuit and drive more LED lights. The STC11F02 chip is selected to save costs and simplify the main control unit. The overall design of this solution follows the principles of reliability, simplicity, and practicality, providing reference and help for more guardrail effects.
Previous article:Thermal Analysis of LEAF Electric Vehicle LED Headlight
Next article:5S2P AR111 LED lamp driver reference design
Recommended ReadingLatest update time:2024-11-16 16:18
- Popular Resources
- Popular amplifiers
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- 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
- [Raspberry Pi Pico Review] - Unboxing + Download
- Hydrogen escape problem
- [Review of the RTT of the Bluesight AB32VG1 RISC-V board] 5: Tragedy caused by manually replacing the Studio file
- MSP430G2553 study notes DAY1 Knowledge reserve and device initialization
- 2018 Autumn Recruitment of Texas Instruments Reliability Engineer Interview and Written Examination Experience
- Simplicity Studio consultation on energy profile related issues
- C language compilation process
- Correctly analyze the role of each discrete component in the circuit - resistors, capacitors, inductors, diodes, transistors,
- SensorTile.box V431 firmware, suitable for some mobile phones that cannot be OTA upgraded
- Knowledge popularization! "Common algorithms in embedded system software design"