CN111465137A - PID control method for regulating output current of vehicle lamp driving module - Google Patents
PID control method for regulating output current of vehicle lamp driving module Download PDFInfo
- Publication number
- CN111465137A CN111465137A CN202010403982.4A CN202010403982A CN111465137A CN 111465137 A CN111465137 A CN 111465137A CN 202010403982 A CN202010403982 A CN 202010403982A CN 111465137 A CN111465137 A CN 111465137A
- Authority
- CN
- China
- Prior art keywords
- output
- microprocessor
- driving chip
- pwm
- pid control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 9
- 230000001105 regulatory effect Effects 0.000 title description 2
- 238000005070 sampling Methods 0.000 claims description 9
- 230000000694 effects Effects 0.000 abstract description 3
- 238000001914 filtration Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Lighting Device Outwards From Vehicle And Optical Signal (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention discloses a PID control method for adjusting output current of a vehicle lamp driving module.A microprocessor outputs PWM square waves with fixed duty ratio through a PWM port, and the PWM square waves are filtered into direct current signals through RC and sent to an analog dimming ADIM pin of an L ED driving chip, so that the driving chip outputs and lights the L ED. microprocessor, and the voltage value on the ADMI pin of the driving chip is sampled through AD and compared with the previous set value, thereby adjusting the duty ratio of the output PWM, keeping the output current value of the driving chip consistent with the set value, and ensuring the lighting effect of L ED.
Description
Technical Field
The invention relates to the control technology of an L ED illuminating lamp for a vehicle, in particular to output current closed-loop control of a vehicle lamp driving module.
Background
With the continuous popularization of the application of the light emitting diode (L ED) in the automobile lamp, the body shadow of L ED appears in each functional lamp of the automobile, such as a front lamp, a daytime running lamp, a steering lamp, a tail lamp, a back-up lamp and the like, which can send signals to other vehicles and pedestrians when the automobile brakes, turns around or turns, L ED has excellent light source intensity, and can keep high visibility even in fog weather, constant current control needs to be realized for the high-power L ED such as the front lamp and the daytime running lamp, and the output current of the driving module can be accurately controlled by adjusting the current value to reduce the power when the temperature of L ED rises, so that the constant current lighting of L ED is realized, and the problem which needs to be solved in actual design and manufacturing work is urgent.
Disclosure of Invention
The invention aims to solve the problems and provides a PID control method for adjusting the output current of a vehicle lamp driving module, so as to achieve the aim of L ED constant current lighting.
A PID control method for adjusting output current of a vehicle lamp driving module comprises the following steps:
s1: configuring the input and output states of each port of the microprocessor and initializing the microprocessor;
s2: configuring the PWM output port to initialize the duty ratio value of 0 percent and initializing the function of an AD sampling module;
s3, the L ED lighting current value of the driving output is a PWM waveform calculated and output according to L ED branch BIN resistors sampled by the AD of the microprocessor and voltage values corresponding to the NTC, the output PWM waveform is changed into a direct current signal V1 after passing through an RC filter circuit, and the direct current signal is input to an analog dimming ADIM pin of the driving chip to regulate the output current of the driving chip;
s4: the microprocessor carries out AD sampling on the level on the analog dimming ADIM pin of the driving chip, and real-time comparison is carried out on the level and V1 which is theoretically calculated, so that the duty ratio of the PWM waveform is adjusted in real time, and the current PID control of the driving module is realized;
and S5, lighting a corresponding function L ED according to the vehicle lamp input state acquired by the microprocessor.
The microprocessor outputs a PWM square wave with a fixed duty ratio through a PWM port, and the PWM square wave is filtered by an RC to form a direct current signal to an analog dimming ADIM pin of an L ED driving chip, so that the driving chip outputs and lights the L ED. microprocessor, and the voltage value on the ADMI pin of the driving chip is sampled by an AD and compared with a previous set value, thereby adjusting the duty ratio of the output PWM, keeping the output current value of the driving chip consistent with the set value, and ensuring the lighting effect of L ED.
Drawings
FIG. 1 is a block diagram of a PID control scheme of the invention.
Detailed Description
In order to make the method, means, technical features, achievement effects and application range of the invention easy to understand, the invention is further explained below.
A PID control method for adjusting output current of a vehicle lamp driving module comprises the following steps:
s1: configuring the input and output states of each port of the microprocessor and initializing the microprocessor;
s2: configuring the PWM output port to initialize the duty ratio value of 0 percent and initializing the function of an AD sampling module;
s3, the L ED lighting current value of the driving output is a PWM waveform calculated and output according to L ED voltage values corresponding to the BIN resistor and the NTC thermistor sampled by the AD of the microprocessor, the output PWM waveform is changed into a direct current signal V1 after passing through an RC filter circuit, and the direct current signal is input to an analog dimming ADIM pin of the driving chip to regulate the output current of the driving chip;
s4: the microprocessor carries out AD sampling on the level on the analog dimming ADIM pin of the driving chip, and real-time comparison is carried out on the level and V1 which is theoretically calculated, so that the duty ratio of the PWM waveform is adjusted in real time, and the current PID control of the driving module is realized;
and S5, lighting a corresponding function L ED according to the vehicle lamp input state acquired by the microprocessor.
The specific control logic is that when the vehicle lamp obtains an input signal and L ED needs to be lightened, the microprocessor firstly carries out AD sampling on the voltage on a BIN-divided resistor of L ED, then carries out AD sampling on the voltage value on NTC, calculates the duty ratio of an output PWM square wave according to the voltage value obtained by twice AD sampling, outputs the PWM square wave with the corresponding duty ratio, carries out filtering through an RC (resistance-capacitance) filtering circuit, filters the square wave into a direct-current signal V1 and outputs the direct-current signal V1 to an analog dimming ADIM pin of a L ED driving chip, carries out analog dimming on the L ED, and lightens L ED and L ED in real time to sample the voltage on the analog dimming ADIM pin of the driving chip and obtain the voltage value of the voltage value in the process that the microprocessor is lightenedAnd the voltage value is compared with V1, so that the duty ratio of the output PWM square wave is adjusted in real time, the analog dimming voltage of the L ED driving module is consistent with a set value, and the stable work of L ED is ensured.
Claims (1)
1. A PID control method for adjusting output current of a vehicle lamp driving module is characterized by comprising the following steps:
s1: configuring the input and output states of each port of the microprocessor and initializing the microprocessor;
s2: configuring the PWM output port to initialize the duty ratio value of 0 percent and initializing the function of an AD sampling module;
s3, the L ED lighting current value of the driving output is a PWM waveform calculated and output according to L ED branch BIN resistors sampled by the AD of the microprocessor and voltage values corresponding to the NTC, the output PWM waveform is changed into a direct current signal V1 after passing through an RC filter circuit, and the direct current signal is input to an analog dimming ADIM pin of the driving chip to regulate the output current of the driving chip;
s4: the microprocessor carries out AD sampling on the level on the analog dimming ADIM pin of the driving chip, and real-time comparison is carried out on the level and V1 which is theoretically calculated, so that the duty ratio of the PWM waveform is adjusted in real time, and the current PID control of the driving module is realized;
and S5, lighting a corresponding function L ED according to the vehicle lamp input state acquired by the microprocessor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010403982.4A CN111465137A (en) | 2020-05-13 | 2020-05-13 | PID control method for regulating output current of vehicle lamp driving module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010403982.4A CN111465137A (en) | 2020-05-13 | 2020-05-13 | PID control method for regulating output current of vehicle lamp driving module |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111465137A true CN111465137A (en) | 2020-07-28 |
Family
ID=71678751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010403982.4A Pending CN111465137A (en) | 2020-05-13 | 2020-05-13 | PID control method for regulating output current of vehicle lamp driving module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111465137A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112399671A (en) * | 2020-12-08 | 2021-02-23 | 中山市优胜电子科技有限公司 | PWM pulse width voltage constant current circuit |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110121330A (en) * | 2010-04-30 | 2011-11-07 | 매그나칩 반도체 유한회사 | LED driving circuit and method for backlight and back light driving device |
CN102811525A (en) * | 2011-05-31 | 2012-12-05 | 海洋王照明科技股份有限公司 | LED lamp and control circuit thereof |
WO2014194041A1 (en) * | 2013-05-31 | 2014-12-04 | Smart Fos, Inc. | Systems and methods for providing a self-adjusting light source |
CN204190977U (en) * | 2014-09-16 | 2015-03-04 | 南京师范大学 | Multifunctional LED Simulated Natural Light Gradient System |
CN105744686A (en) * | 2016-04-21 | 2016-07-06 | 上海互兴科技股份有限公司 | Four-in-one compatible dimming NFC control LED driving power supply |
CN106535409A (en) * | 2016-12-03 | 2017-03-22 | 河池学院 | Constant current switching power supply system for LED illumination |
-
2020
- 2020-05-13 CN CN202010403982.4A patent/CN111465137A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110121330A (en) * | 2010-04-30 | 2011-11-07 | 매그나칩 반도체 유한회사 | LED driving circuit and method for backlight and back light driving device |
CN102811525A (en) * | 2011-05-31 | 2012-12-05 | 海洋王照明科技股份有限公司 | LED lamp and control circuit thereof |
WO2014194041A1 (en) * | 2013-05-31 | 2014-12-04 | Smart Fos, Inc. | Systems and methods for providing a self-adjusting light source |
CN204190977U (en) * | 2014-09-16 | 2015-03-04 | 南京师范大学 | Multifunctional LED Simulated Natural Light Gradient System |
CN105744686A (en) * | 2016-04-21 | 2016-07-06 | 上海互兴科技股份有限公司 | Four-in-one compatible dimming NFC control LED driving power supply |
CN106535409A (en) * | 2016-12-03 | 2017-03-22 | 河池学院 | Constant current switching power supply system for LED illumination |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112399671A (en) * | 2020-12-08 | 2021-02-23 | 中山市优胜电子科技有限公司 | PWM pulse width voltage constant current circuit |
CN112399671B (en) * | 2020-12-08 | 2024-05-31 | 中山市优胜电子科技有限公司 | PWM pulse width voltage constant current circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN202782867U (en) | Automatic automobile lamp regulation device | |
US5072154A (en) | Automatic luminosity control device for car and motor bicycle headlamps | |
CN108016348B (en) | LED automobile headlamp module and control method thereof | |
CN108657062A (en) | A kind of adjustable intelligent vehicle head lamp system of brightness based on environment and method | |
CN107864531B (en) | Four-channel electronic control system for controlling lighting of car lamp | |
CN104582130B (en) | Particularly for motor vehicles for controlling the device of multiple groups LED | |
KR100528439B1 (en) | Control apparatus for an intelligent led traffic signal | |
CN108569198A (en) | A kind of rear combined lamp of automobile and its control method based on OLED light source | |
CN111465137A (en) | PID control method for regulating output current of vehicle lamp driving module | |
CN112026637A (en) | Passenger vehicle far and near light control system and method capable of intelligently adjusting illumination area | |
CN109808587A (en) | An intelligent control system for automobile headlights | |
TWI496705B (en) | Vehicle with intelligent headlight control system | |
US5536975A (en) | Device for projecting scanning effects with standard automotive headlamps | |
CN109068435B (en) | Automobile dimming circuit | |
EP3233571B1 (en) | Two stage indicator dimming circuit controlled by pwm backlighting back feed and backlight control | |
CN201571227U (en) | Automatic dimming controller of head lamp of motor vehicle | |
CN206283685U (en) | A kind of day portable lighter and the LED drive circuit of position lamp multiplexing | |
CN107642754B (en) | Multiplexing lamp for front fog lamp and daytime running lamp of vehicle and construction method | |
CN103557502A (en) | Control circuit of automobile LED daytime running lamp | |
CN211090039U (en) | Shared control circuit for automobile L ED daytime running light and clearance indicating light | |
CN203352865U (en) | LED dimming system | |
CN109327935A (en) | A new type of automobile running water turn signal control system | |
CN104553964A (en) | Automatic automobile headlamp brightness regulating system | |
CN110435529B (en) | A system and method for switching between far and near beams of an automobile | |
RU2747225C1 (en) | Adaptive front lighting system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200728 |
|
RJ01 | Rejection of invention patent application after publication |