loading

We are a leading manufacturer of solar power utilization and lighting systems

Digital LED light controller design

In modern automated production process, machine vision system is widely used in condition monitoring, inspection and quality control, etc. Machine vision system is mainly composed of lighting system, camera, video camera, image acquisition card and the image processing system, by the light source, lens and CCD imaging device matching image acquisition and processing system for product inspection, identification, etc. , this technique can greatly reduce the burden of artificial visual inspection product quality, to effectively improve the efficiency of detection, and is conducive to the production management. Lighting system is an important part of machine vision system, is the key of collecting image quality and application effect, and the light controller is the core of the lighting system, its main function is to provide the different lighting levels for specific applications and lighting system, thus improve the quality of the lighting source, to obtain high quality images. Is the current domestic manufacturers of light controller is manual regulation or adjusted by RS232 communication with a Pc, use less convenient, low efficiency, and high cost. This paper designed a new type of light controller, this controller to ST companies based on ARM Codex - M3 kernel STM32F107VCT6 STM32 micro controller as the core, through the plug and play, high transmission speed of the USB interface to communicate with a Pc, Pc application software for light controller parameters can be set in real time. Using STM32 timer on chip to realize PWM digital dimming, and pulse frequency and duty ratio of a wide range of adjustment, and through the timer to work together to ensure precise timing between. In addition, the controller implements three illumination mode, normal mode, stroboscopic mode and external trigger mode. This design flexibility to adapt to the machine vision detection system application needs on different occasions.

1 overall scheme design, in a nutshell, the main functions of the light controller is received from the PC host pre-defined commands and set parameters, through main controller processing, then through the drive circuit control LED light source according to the set for digital PWM dimming.

light controller according to the architecture can be divided into the software part and hardware part, software part and can be divided into Pc application user interface, USB driver, the controller hardware and firmware. The hardware part can be divided into main control module and LED driver module. Master control module is mainly responsible for communication with a Pc, the command response, and management, it is the core part of the controller. The LED driver module mainly provide suitable LED light source drive way. LED light source drive mode have common inductive charge pump drive, drive and the inductive drive circuit for driving a number of series of LED. LED brightness control method can be divided into analog dimming and digital PWM dimming two kinds. Analog dimming by changing the LED current to adjust the brightness. Its drawback is that the LED will produce with the forward current change color phenomenon, cannot satisfy the requirement of accuracy. PWM dimming by opening and closing the LED to change forward current conduction time in order to achieve the brightness adjustment effect. Because the leds are in constant current conduction, so there will be no analog dimming technology color deviation problem. This design adopts inductive drive, PWM constant current dimmer.

GET IN TOUCH WITH Us
recommended articles
Knowledge News & events Project
Focus on Light + Building 2026: ALLTOP's New Energy Storage Products Draw Attention, Global Expansion Accelerates

Exhibition Name:Light + Building 2026

Exhibition Time: 8 –13 March 2026

Hall :10.2

Booth:F10H

Exhibition Center: Messe Frankfurt Exhibition Ground

Adress: Ludwig-Erhard-Anlage 1,D-60327 Frankfurt am Main
ALLTOP Smart Lighting: Every Beam Illuminates Your Ideal Life
In horticulture, each day brings new challenges. Unpredictable weather, fluctuating light conditions, and rising energy costs make it difficult to ensure consistent crop quality and yield. But what if growers no longer had to leave success to chance? At ALLTOP, we believe light should work for you, not against you. With nearly 16 years of experience, we develop intelligent LED lighting solutions that empower growers to optimize every aspect of plant growth—helping you Control Your Perfect Day.
Fifteen Years of Good Deeds: ALLTOP Donates Another 230,000 to Expand Schools and Revitalize Henglan
On the evening of December 3rd, the 2025 Henglan Town Charity Walk Appreciation Gala concluded warmly. At this grand event themed "Expanding Schools and Revitalizing Henglan," Guangdong ALLTOP Lighting Co., Ltd. pledged an on-site donation of 230,000 RMB, interpreting the "Spirit of Fraternity" through action and contributing to the development of local education.
Congratulations on the Successful Launch of Guangdong ALLTOP Industrial Park!

The Guangdong ALLTOP Campus, spanning 50.24 mu with a 168,000 sqm built-up area, represents a 370 million RMB investment. It is projected to generate an annual output value of over 600 million RMB at full operation. Featuring advanced smart production lines and digital management systems, its core mission is to become a modern base for intelligent manufacturing.
CCTV Authority Spotlight: Alltop's Innovative Energy Storage Products Shine at Canton Fair

CCTV featured Alltop's innovative energy storage products at the Canton Fair, highlighting the company's technological strength and market leadership. The brand drew significant attention and orders at the event, with its booth attracting global visitors and showcasing advanced renewable energy solutions. The coverage underscored Alltop's expertise in energy storage systems and smart solar lighting, earning national recognition for its innovation.
Invitation | From October 15th to 19th, ALLTOP invites you to attend the 138th Canton Fair together!

The 138th China Import and Export Fair

Date: Oct. 15th-19th, 2025

Booth No.:14.3F33-34G10-11

Add: China Import and Export Fair Complex (Canton Fair Complex)
Global Witness, Technological Breakthrough! ALLTOP Showcases Comprehensive Solutions at Solar PV & Energy Storage World Expo

Solar PV & Energy Storage World Expo

The 17th Guangzhou Intl Solar Photovoltaic & Energy Storage Exhibition

th No.:10.2 B551

Date: 8th-10th, August 2025

ADD: Area B, China Import & Export Fair Complex, Guangzhou
Leading the future of green energy storage, ALLTOP will appear at the 137th Canton Fair

Exhibition name: 2025 THE 137TH CHINA IMPORT AND EXPORT FAIRExhibition date: April 15-19, 2025Booth No. : 14.3 f33-34g10-11/14.2 D13-14-15Address: China Import and Export Fair Hall (Canton Fair Hall)
Our aim is to provide the best products and the most considerate service for customers.
About Us
Customer service
detect