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 PDF

Info

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
Application number
CN202010403982.4A
Other languages
Chinese (zh)
Inventor
倪圣林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xunchi Vehicle Jiangsu Co ltd
Original Assignee
Xunchi Vehicle Jiangsu Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xunchi Vehicle Jiangsu Co ltd filed Critical Xunchi Vehicle Jiangsu Co ltd
Priority to CN202010403982.4A priority Critical patent/CN111465137A/en
Publication of CN111465137A publication Critical patent/CN111465137A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

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

PID control method for regulating output current of vehicle lamp driving module
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 lightened
Figure DEST_PATH_IMAGE002
And 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.
CN202010403982.4A 2020-05-13 2020-05-13 PID control method for regulating output current of vehicle lamp driving module Pending CN111465137A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110121330A (en) * 2010-04-30 2011-11-07 매그나칩 반도체 유한회사 Led driving circuit for back light and driving method thereof and back light driving apparatus
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 simulating nature light gradually bright 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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110121330A (en) * 2010-04-30 2011-11-07 매그나칩 반도체 유한회사 Led driving circuit for back light and driving method thereof and back light driving apparatus
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 simulating nature light gradually bright 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399671A (en) * 2020-12-08 2021-02-23 中山市优胜电子科技有限公司 PWM pulse width voltage constant current circuit

Similar Documents

Publication Publication Date Title
KR100528439B1 (en) Control apparatus for an intelligent led traffic signal
US5072154A (en) Automatic luminosity control device for car and motor bicycle headlamps
CN108016348B (en) LED automobile headlamp module and control method thereof
CN202541408U (en) Intelligent control device for automobile daytime running lamp
CN108657062A (en) A kind of adjustable intelligent vehicle head lamp system of brightness based on environment and method
US9974136B1 (en) LED automobile headlight with switchable dual-color temperature
CN104582130B (en) Particularly for motor vehicles for controlling the device of multiple groups LED
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
TWI496705B (en) Vehicle with intelligent headlight control system
EP3233571B1 (en) Two stage indicator dimming circuit controlled by pwm backlighting back feed and backlight control
US5536975A (en) Device for projecting scanning effects with standard automotive headlamps
CN107864531B (en) Four-channel electronic control system for controlling lighting of car lamp
CN207311259U (en) A kind of rear combined lamp of automobile based on OLED light source
CN206283685U (en) A kind of day portable lighter and the LED drive circuit of position lamp multiplexing
CN109068435B (en) Automobile dimming circuit
CN107642754B (en) Multiplexing lamp for front fog lamp and daytime running lamp of vehicle and construction method
CN112026637A (en) Passenger vehicle far and near light control system and method capable of intelligently adjusting illumination area
CN211090039U (en) Shared control circuit for automobile L ED daytime running light and clearance indicating light
CN203352865U (en) LED dimming system
CN104553964A (en) Automatic automobile headlamp brightness regulating system
CN110435529B (en) Far and near light switching system and method for automobile
CN108093506B (en) LED drive circuit for multiplexing daytime running light and position light
CN206072935U (en) A kind of daytime running lamps with adjust automatically brightness function
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