CN103281848B - A kind of control method of LED street lamp and device - Google Patents

A kind of control method of LED street lamp and device Download PDF

Info

Publication number
CN103281848B
CN103281848B CN201310248000.9A CN201310248000A CN103281848B CN 103281848 B CN103281848 B CN 103281848B CN 201310248000 A CN201310248000 A CN 201310248000A CN 103281848 B CN103281848 B CN 103281848B
Authority
CN
China
Prior art keywords
analog
digital conversion
street lamp
led street
preset value
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.)
Active
Application number
CN201310248000.9A
Other languages
Chinese (zh)
Other versions
CN103281848A (en
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.)
Wistech Energy Saving Technology Co ltd
Comprehensive Energy of China Southern Power Grid Co Ltd
Original Assignee
Wistech Energy-Saving Technology Co Ltd
Comprehensive Energy of China Southern Power Grid 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 Wistech Energy-Saving Technology Co Ltd, Comprehensive Energy of China Southern Power Grid Co Ltd filed Critical Wistech Energy-Saving Technology Co Ltd
Priority to CN201310248000.9A priority Critical patent/CN103281848B/en
Publication of CN103281848A publication Critical patent/CN103281848A/en
Application granted granted Critical
Publication of CN103281848B publication Critical patent/CN103281848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Lighting Device Outwards From Vehicle And Optical Signal (AREA)

Abstract

The embodiment of the invention discloses a kind of control method and device of LED street lamp, determine the load a reference value of LED street lamp by the voltage of real-time sampling LED street lamp, can control exactly LED street lamp according to the actual conditions of LED street lamp.

Description

A kind of control method of LED street lamp and device
Technical field
The embodiment of the present invention relates to road lighting field, be specifically related to a kind of LED street lamp control method andDevice.
Background technology
Street lamp is the important component part of city illumination, and traditional street lamp often adopts high-pressure mercury lamp, high-pressure sodiumLamp 360 is spent luminous, and the shortcoming that its light loss is large has caused the huge waste of the energy. Compared with conventional road lamp,LED street lamp not only has the feature that colourity is good, non-maintaining and the life-span is long, and key is that it is than traditionStreet lamp is more energy-conservation, and in today of energy supply contradiction, this becomes and is even more important.
Existing LED street lamp control mode mainly contains two kinds, and a kind of is the mode that adopts single lamp control, alsoBe that each LED controller for road lamp is only controlled a LED street lamp, need to be one by one to LED when workStreet lamp is controlled, but in the situation that LED street lamp number is huge, the control of LED street lamp is detectedWork will become loaded down with trivial details and easily occur mistake, also can expend a large amount of manpower and materials simultaneously, causes tightHeavy waste.
Another is that mode by radio communication control is to single led street lamp or whole LED street lamp groupControl, this method is compared first method can be convenient and directly to whole LED street lampSystem is controlled, but because this method need to install wireless communication module additional in LED road lamp system,Can make LED road lamp system become huger, and this control method relative complex and reliability are notHigh.
Summary of the invention
Control method and device that the embodiment of the present invention provides a kind of LED street lamp, pass through real-time samplingThe voltage of LED street lamp is determined the light modulation threshold value of LED street lamp, can be according to the reality of LED street lampSituation is controlled LED street lamp exactly.
The control method of the LED street lamp of the embodiment of the present invention, comprising:
System is initialized;
Load the unloaded a reference value of default each gear;
Open the analog-to-digital conversion to voltage signal;
Read analog-to-digital conversion result, and by described analog-to-digital conversion result and the unloaded a reference value phase of described each gearRelatively, obtain comparative result;
Described comparative result is stored in PWM module and according to described comparative result and refreshes dutycycle;
Open the analog-to-digital conversion to voltage signal next time;
The analog-to-digital number of times of counter records;
If analog-to-digital conversion number of times equals preset value, read the analog-to-digital conversion result of preset value number of times and to instituteState the analog-to-digital conversion results averaged of preset value number of times, as corresponding gear load a reference value;
If analog-to-digital conversion number of times is greater than preset value, by analog-to-digital conversion result and the comparison of described load a reference value,When determining when light modulation need to be carried out, refresh dutycycle and to described counter according to described analog-to-digital conversion resultZero clearing, when determining while not needing to carry out light modulation, opens analog-to-digital conversion next time.
Alternatively,
Described system initialized and comprised:
Single-chip microcomputer, analog-to-digital conversion module and PWM module are initialized;
Single-chip microcomputer is initialized and comprised: to the register in single-chip microcomputer, timer and input/output terminalMouth initializes.
Alternatively,
After loading the unloaded a reference value of default each gear, step opens the modulus to voltage signal with stepBefore conversion, also comprise:
Postpone the default time.
Alternatively,
The described default time is 3 seconds.
The control device of the LED street lamp of the embodiment of the present invention, is characterized in that, comprising:
Initialization unit, for initializing system;
Load units, for loading the unloaded a reference value of default each gear;
Open unit, for opening the analog-to-digital conversion to voltage signal;
The first processing unit, for reading analog-to-digital conversion result, and by described analog-to-digital conversion result with described inThe unloaded a reference value of each gear is compared, and obtains comparative result;
Storage refresh unit, for being stored in described comparative result PWM module and according to described comparisonResult refreshes dutycycle;
Record cell, for recording analog-to-digital number of times;
The first judging unit, for judging whether analog-to-digital conversion number of times equals preset value;
The second processing unit, in the time that analog-to-digital conversion number of times equals preset value, reads preset value number of timesAnalog-to-digital conversion result the analog-to-digital conversion results averaged to described preset value number of times, as corresponding gearLoad a reference value;
The second judging unit, for judging whether analog-to-digital conversion number of times is greater than preset value;
The 3rd judging unit, in the time that analog-to-digital conversion number of times is greater than preset value, judges whether to carry outLight modulation;
The 3rd processing unit, for when determining need to carry out light modulation time, according to described analog-to-digital conversion result brushNew dutycycle to described counter O reset.
Alternatively,
Described device also comprises delay cell, for postpone the default time after the unloaded a reference value of loading.
Alternatively,
Described the first processing unit comprises:
First reads subelement, for reading analog-to-digital conversion result;
Relatively subelement, for described analog-to-digital conversion result is compared with the unloaded a reference value of described each gear,Obtain comparative result.
Alternatively,
Described the second processing unit comprises:
Second reads subelement, in the time that analog-to-digital conversion number of times equals preset value, reads preset value number of timesAnalog-to-digital conversion result;
Average subelement, for by the analog-to-digital conversion results averaged of described preset value number of times, as phaseAnswer gear load a reference value.
Alternatively,
Described the 3rd processing unit comprises:
Refresh subelement, for when determining need to carry out light modulation time, refresh according to described analog-to-digital conversion resultDutycycle;
Zero clearing subelement, for when determining while not needing to carry out light modulation, to described counter O reset.
In the embodiment of the present invention, first system is initialized; Then load default each gear zero loadA reference value; Then open the analog-to-digital conversion to voltage signal; Then read analog-to-digital conversion result, and by instituteState analog-to-digital conversion result and compare with the unloaded a reference value of described each gear, obtain comparative result; Then by instituteStating comparative result is stored in PWM module and according to described comparative result and refreshes dutycycle; Then under openingThe once analog-to-digital conversion to voltage signal; The analog-to-digital number of times of counter records; If analog-to-digital conversion number of timesEqual preset value, read the analog-to-digital conversion result of preset value number of times the modulus to described preset value number of timesTransformation result is averaged, as corresponding gear load a reference value; If analog-to-digital conversion number of times is greater than preset value,By analog-to-digital conversion result and the comparison of described load a reference value, when determining need to carry out light modulation time, according to describedAnalog-to-digital conversion result refreshes dutycycle and to described counter O reset, when determining while not needing to carry out light modulation,Open analog-to-digital conversion next time. Because the control method of LED street lamp of the present invention and device are by adopting in real timeThe voltage of sample LED street lamp is determined the load a reference value of LED street lamp, therefore can be according to LED street lampActual service condition control exactly LED street lamp.
Brief description of the drawings
Fig. 1 is the control method first embodiment flow chart of LED street lamp in the embodiment of the present invention;
Fig. 2 is the control method second embodiment flow chart of LED street lamp in the embodiment of the present invention;
Fig. 3 is the control device example structure figure of LED street lamp in the embodiment of the present invention.
Detailed description of the invention
Control method and device that the embodiment of the present invention provides a kind of LED street lamp, pass through real-time samplingThe voltage of LED street lamp is determined the load a reference value of LED street lamp, can be according to the reality of LED street lampSituation is controlled LED street lamp exactly.
Refer to Fig. 1, in the embodiment of the present invention, the control method of LED street lamp comprises:
101, system is initialized;
Before LED street lamp is controlled, can carry out initialization operation to system.
102, load the unloaded a reference value of default each gear;
After system is initialized, can load the unloaded a reference value of default each gear, above-mentioned each gradeThe unloaded a reference value in position can carry out setting after science calculating according to the parameters of LED street lamp.
103, open the analog-to-digital conversion to voltage signal;
After loading the unloaded a reference value of default each gear, can open the analog-to-digital conversion to voltage signal,Above-mentioned analog-to-digital conversion can obtain the level value of voltage signal.
104, read analog-to-digital conversion result, and unloaded to analog-to-digital conversion result and each gear a reference value compared,Obtain comparative result;
Open and complete after the analog-to-digital conversion of voltage signal, can obtain analog-to-digital conversion result, by mouldNumber conversion result, with the unloaded a reference value comparison of each gear, can obtain comparative result, above-mentioned comparative resultIt can be the light modulation gear of LED street lamp.
105, comparative result is stored in PWM module and according to comparative result and refreshes dutycycle;
After obtaining comparative result, comparative result can be stored in PWM module, and according to relatively tyingFruit is refreshed dutycycle, and the above-mentioned dutycycle that refreshes can regulate LED street lamp.
106, open the analog-to-digital conversion to voltage signal next time;
After completing steps 105, can open the analog-to-digital conversion to voltage signal next time.
107, the analog-to-digital number of times of counter records;
Open and complete after the analog-to-digital conversion of voltage signal, counter can record analog-to-digital conversionNumber of times.
If 108 analog-to-digital conversion number of times equal preset value, read the analog-to-digital conversion result of preset value number of times alsoTo the analog-to-digital conversion results averaged of preset value number of times, as corresponding gear load a reference value;
When completing analog-to-digital number of times and equaling preset value, for example preset value is 3, analog-to-digital when completingNumber of times is 3 o'clock, reads this three analog-to-digital results, and asks for flat to these three analog-to-digital conversion resultsAverage, as the load a reference value of corresponding gear.
If 109 analog-to-digital conversion number of times are greater than preset value, by analog-to-digital conversion result and the comparison of load a reference value,When determining need to carry out light modulation time, refresh dutycycle and to counter O reset according to analog-to-digital conversion result, whenDetermine while not needing to carry out light modulation, open analog-to-digital conversion next time.
When completing analog-to-digital number of times and being greater than preset value, read this time analog-to-digital result, and by upperState analog-to-digital conversion result and the comparison of load a reference value, when determining need to carry out light modulation time, that is analog-to-digital conversionWhen result has exceeded the voltage range of this gear, explanation need to be carried out light modulation to LED street lamp, can basisAnalog-to-digital conversion result refreshes dutycycle and to counter O reset, when determining while not needing to carry out light modulation, that isAnalog-to-digital conversion result, in the time of the voltage range of this gear, can be opened analog-to-digital conversion next time.
In the embodiment of the present invention, first system is initialized; Then load default each gear zero loadA reference value; Then open the analog-to-digital conversion to voltage signal; Then read analog-to-digital conversion result, and by instituteState analog-to-digital conversion result and compare with the unloaded a reference value of described each gear, obtain comparative result; Then by instituteStating comparative result is stored in PWM module and according to described comparative result and refreshes dutycycle; Then under openingThe once analog-to-digital conversion to voltage signal; The analog-to-digital number of times of counter records; If analog-to-digital conversion number of timesEqual preset value, read the analog-to-digital conversion result of preset value number of times the modulus to described preset value number of timesTransformation result is averaged, as corresponding gear load a reference value; If analog-to-digital conversion number of times is greater than preset value,By analog-to-digital conversion result and the comparison of described load a reference value, when determining need to carry out light modulation time, according to describedAnalog-to-digital conversion result refreshes dutycycle and to described counter O reset, when determining while not needing to carry out light modulation,Open analog-to-digital conversion next time. Because the control method of LED street lamp of the present invention and device are by adopting in real timeThe voltage of sample LED street lamp is determined the load a reference value of LED street lamp, therefore can be according to LED street lampActual service condition control exactly LED street lamp.
Simply introduce control method first embodiment of LED street lamp in the embodiment of the present invention above, belowControl method the second embodiment to LED street lamp of the present invention is described in detail, and refers to Fig. 2, thisIn inventive embodiments, control method second embodiment of LED street lamp comprises:
201, system is initialized;
Before LED street lamp is controlled, can carry out initialization operation to system. Above-mentioned to systemInitialize and can comprise: single-chip microcomputer, analog-to-digital conversion module and PWM module are initialized.
Wherein single-chip microcomputer is initialized and can be comprised: to the register in single-chip microcomputer, timer and defeatedEntering output port initializes. It should be noted that, be not limited to above-mentioned to the initialization operation of single-chip microcomputerThat describes initializes the register in single-chip microcomputer, timer and input/output port, can also wrapDraw together the initialization operation that other linkage function need to be carried out, do not limit herein.
202, load the unloaded a reference value of default each gear;
After system is initialized, can load the unloaded a reference value of default each gear, above-mentioned each gradeThe unloaded a reference value in position can carry out setting after science calculating according to the parameters of LED street lamp. For exampleWhen the magnitude of voltage excursion of LED street lamp during in zero load is 200VDC-300VDC, can be by light modulation shelvesPosition is divided into 5 grades, and 5 grades of concrete unloaded a reference values can be 200VDC-220VDC, 220VDC-240VDC, 240VDC-260VDC, 260VDC-280VDC and 280VDC-300VDC.
203, postpone the default time;
After loading the unloaded a reference value of default each gear, can postpone the default time. Above-mentioned delay is pre-If time be the voltage stabilization in order to wait for LED street lamp, the above-mentioned default time can be 3S, also canTo be 4S, concrete can set according to the actual state of LED street lamp, does not limit herein.
204, open the analog-to-digital conversion to voltage signal;
After postponing Preset Time, can open the analog-to-digital conversion to voltage signal, above-mentioned analog-to-digital conversionCan obtain the level value of voltage signal.
205, read analog-to-digital conversion result, and unloaded to analog-to-digital conversion result and each gear a reference value compared,Obtain comparative result;
Open and complete after the analog-to-digital conversion of voltage signal, can obtain analog-to-digital conversion result, by mouldNumber conversion result, with the unloaded a reference value comparison of each gear, can obtain comparative result, above-mentioned comparative resultCan be the light modulation gear of LED street lamp, for example, when light modulation gear is 5 grades, 5 grades of concrete unloaded benchmarkValue is 200VDC-220VDC, 220VDC-240VDC, 240VDC-260VDC, 260When five grades of VDC-280VDC and 280VDC-300VDC, if analog-to-digital conversion result is 245VDC,By relatively obtaining the comparative result in the 3rd light modulation gear.
206, comparative result is stored in PWM module and according to comparative result and refreshes dutycycle;
After obtaining comparative result, comparative result can be stored in PWM module, and according to relatively tyingFruit is refreshed dutycycle, and the above-mentioned dutycycle that refreshes can regulate LED street lamp, for example, when light modulation gearBe 5 grades, 5 grades of concrete unloaded a reference values are 200VDC-220VDC, 220VDC-240VDC, 240When five grades of VDC-260VDC, 260VDC-280VDC and 280VDC-300VDC, if analog-to-digital conversionResult is 245VDC, by relatively obtaining the comparative result in the 3rd light modulation gear, and supposesWhen the current value that the 3rd light modulation gear is corresponding is 1.5A, method that can be by refreshing dutycycle is by LEDThe current value adjustment of street lamp is to 1.5A.
207, open the analog-to-digital conversion to voltage signal next time;
After completing steps 206, can open the analog-to-digital conversion to voltage signal next time.
208, counter records completes analog-to-digital number of times;
Open and complete after the analog-to-digital conversion of voltage signal, counter can record analog-to-digital conversionNumber of times.
If 209 analog-to-digital conversion number of times equal preset value, perform step 210, otherwise execution step 211;
In the time that the analog-to-digital conversion number of times recording in counter equals preset value, execution step 210, no person carries outStep 211, the preset value of above-mentioned analog-to-digital conversion number of times can be 3, can be also 4, concrete can rootSet according to actual conditions, do not limit herein.
210, read the analog-to-digital conversion result of preset value number of times and the analog-to-digital conversion result of preset value number of times is gotMean value, as corresponding gear load a reference value;
When completing analog-to-digital number of times and equaling preset value, for example preset value is 3, analog-to-digital when completingNumber of times is 3 o'clock, reads this three analog-to-digital results, and asks for flat to these three analog-to-digital conversion resultsAverage, as the load a reference value of corresponding gear.
211, judge whether analog-to-digital conversion number of times is greater than preset value, if execution step 212, otherwise carry outStep 214;
When completing analog-to-digital number of times and being greater than preset value, can perform step 212; Complete analog-to-digitalWhen number of times is less than preset value, can perform step 214.
212, judge whether to carry out light modulation, if execution step 213, otherwise execution step 214;
When completing analog-to-digital number of times and being greater than preset value, read this time analog-to-digital result, and by upperState analog-to-digital conversion result and the comparison of load a reference value, when determining need to carry out light modulation time, that is analog-to-digital conversionWhen result has exceeded the voltage range of this gear, explanation need to be carried out light modulation to LED street lamp, can carry out stepRapid 213, when determining while not needing to carry out light modulation, that is analog-to-digital conversion result is in the time of the voltage range of this gear,Execution step 214.
213, refresh dutycycle according to analog-to-digital conversion result and to counter O reset;
Determine need to carry out light modulation time, that is analog-to-digital conversion result is while having exceeded the voltage range of this gear,Explanation need to be carried out light modulation to LED street lamp, can according to analog-to-digital conversion result refresh dutycycle and to countingDevice zero clearing.
214, open analog-to-digital conversion next time.
When determining while not needing to carry out light modulation, open analog-to-digital conversion next time.
In this embodiment of the present invention, first system is initialized; Then load default each gear skyCarry a reference value; Then open the analog-to-digital conversion to voltage signal; Then read analog-to-digital conversion result, and willDescribed analog-to-digital conversion result is compared with the unloaded a reference value of described each gear, obtains comparative result; Then willDescribed comparative result is stored in PWM module and according to described comparative result and refreshes dutycycle; Then openAnalog-to-digital conversion to voltage signal next time; The analog-to-digital number of times of counter records; If analog-to-digital conversion timeNumber equals preset value, reads the analog-to-digital conversion result of preset value number of times the mould to described preset value number of timesNumber conversion results averaged, as corresponding gear load a reference value; If it is default that analog-to-digital conversion number of times is greater thanValue, by analog-to-digital conversion result and the comparison of described load a reference value, when definite need to carry out light modulation time, according toDescribed analog-to-digital conversion result refreshes dutycycle and to described counter O reset, does not need to carry out light modulation when determiningTime, open analog-to-digital conversion next time. Because control method and the device of LED street lamp of the present invention pass through realTime the sample voltage of LED street lamp determine the load a reference value of LED street lamp, therefore can be according to LEDThe actual service condition of street lamp is controlled LED street lamp exactly, postpones adding of step simultaneously and can enter oneStep improves the degree of accuracy of controlling LED street lamp.
The second embodiment of the control method to LED street lamp of the present invention is described in detail above, particularlyThe setting up procedure of each gear a reference value and load a reference value, the control of introducing LED street lamp of the present invention below fillsPut embodiment, refer to Fig. 3, in the embodiment of the present invention, the control device embodiment of LED street lamp comprises:
Initialization unit 301, for initializing system;
Load units 302, for loading the unloaded a reference value of default each gear;
Open unit 303, for opening the analog-to-digital conversion to voltage signal;
The first processing unit 304, in the time that the analog-to-digital conversion of voltage signal is completed, reads analog-to-digital conversionAs a result, and described analog-to-digital conversion result is compared with the unloaded a reference value of described each gear, relatively tiedReally;
Storage refresh unit 305, for described comparative result is stored in PWM module and according to described inComparative result refreshes dutycycle;
Record cell 306, for recording analog-to-digital number of times;
The first judging unit 307, for judging whether analog-to-digital conversion number of times equals preset value;
The second processing unit 308, in the time that analog-to-digital conversion number of times equals preset value, reads preset value number of timesAnalog-to-digital conversion result and the analog-to-digital conversion results averaged to above-mentioned preset value number of times, as corresponding shelvesPosition load a reference value;
The second judging unit 309, for judging whether analog-to-digital conversion number of times is greater than preset value;
The 3rd judging unit 310, in the time that analog-to-digital conversion number of times is greater than preset value, judges whether to enterRow light modulation;
The 3rd processing unit 311, need to carry out light modulation for determining time, according to described analog-to-digital conversion result brushNew dutycycle to described counter O reset.
The device of the embodiment of the present invention further comprises:
Delay cell 312, for postponing the default time after the unloaded a reference value of loading.
Alternatively,
The first processing unit 304 comprises:
First reads subelement 3041, for reading analog-to-digital conversion result;
Relatively subelement 3042, for unloaded to analog-to-digital conversion result and each gear a reference value is compared,To comparative result.
Alternatively,
The second processing unit 308 comprises:
Second reads subelement 3081, in the time that analog-to-digital conversion number of times equals preset value, reads preset valueThe analog-to-digital conversion result of number of times;
Average subelement 3082, for by the analog-to-digital conversion results averaged of preset value number of times, as phaseAnswer gear load a reference value.
Alternatively,
The 3rd processing unit 311 comprises:
Refresh subelement 3111, for when determining need to carry out light modulation time, refresh according to analog-to-digital conversion resultDutycycle;
Zero clearing subelement 3112, for when determining need to carry out light modulation time, to counter O reset.
Before LED street lamp is controlled, initialization unit 301 can initialize behaviour to systemDo. Above-mentioned initialization unit 301 initializes and can comprise system: to single-chip microcomputer, analog-to-digital conversionModule and PWM module initialize.
Wherein single-chip microcomputer is initialized and can be comprised: to the register in single-chip microcomputer, timer and defeatedEntering output port initializes. It should be noted that, be not limited to above-mentioned to the initialization operation of single-chip microcomputerThat describes initializes the register in single-chip microcomputer, timer and input/output port, can also wrapDraw together the initialization operation that other linkage function need to be carried out, do not limit herein.
After initialization unit 301 initializes system, load units 302 can load defaultThe unloaded a reference value of each gear, the unloaded a reference value of above-mentioned each gear can be entered according to the parameters of LED street lampRow science is set after calculating. The magnitude of voltage excursion that when LED street lamp in zero load is is for example200VDC-300VDC, can be divided into light modulation gear 5 grades, and 5 grades of concrete unloaded a reference values can be200VDC-220VDC、220VDC-240VDC、240VDC-260VDC、260VDC-280VDCAnd 280VDC-300VDC.
After load units 302 loads the unloaded a reference value of default each gear, delay cell 312 can be prolongedThe default time late. It is the electricity in order to wait for LED street lamp that above-mentioned delay cell 312 postpones the default timePress and stablize, above-mentioned Preset Time can be 3S, can be also 4S, and concrete can be according to LED street lampActual state set, do not limit herein.
After delay cell 312 postpones the default time, open unit 303 and can open voltage signalAnalog-to-digital conversion, above-mentioned analog-to-digital conversion can obtain the level value of voltage signal.
Open unit 303 open the analog-to-digital conversion to voltage signal, when definite above-mentioned analog-to-digital conversion completeBecome, first reads subelement 3041 can obtain analog-to-digital conversion result, and relatively subelement 3042 is by modulusTransformation result, with the unloaded a reference value comparison of each gear, can obtain comparative result, and above-mentioned comparative result canTo be the light modulation gear of LED street lamp, for example, when light modulation gear is 5 grades, 5 grades of concrete unloaded a reference valuesFor 200VDC-220VDC, 220VDC-240VDC, 240VDC-260VDC, 260When five grades of VDC-280VDC and 280VDC-300VDC, if analog-to-digital conversion result is 245VDC,By relatively obtaining the comparative result in the 3rd light modulation gear. After obtaining comparative result, canComparative result is stored in PWM module, and refreshes dutycycle according to comparative result, the above-mentioned duty that refreshesThan can LED street lamp being regulated, for example, when light modulation gear is 5 grades, be specially 200VDC-220VDC, 220VDC-240VDC, 240VDC-260VDC, 260VDC-280VDC andWhen five grades of 280VDC-300VDC, if analog-to-digital conversion result is 245VDC, by relatively obtainingIn the comparative result of the 3rd light modulation gear, and hypothesis current value corresponding to the 3rd light modulation gear be while being 1.5A,Method that can be by refreshing dutycycle by the current value adjustment of LED street lamp to 1.5A; Then open unit303 open the analog-to-digital conversion to voltage signal next time.
Determine when the analog-to-digital conversion of voltage signal is completed, counter can record analog-to-digital timeNumber.
The first judging unit 307 judges that analog-to-digital conversion number of times equals preset value, second reads subelement 3081The analog-to-digital conversion result and the average subelement 3082 that read preset value number of times turn the modulus of preset value number of timesChange results averaged, as corresponding gear load a reference value, for example preset value is 3, turns when completing modulusThe number of times changing is 3 o'clock, reads this three analog-to-digital results, and these three analog-to-digital conversion results are askedAverage, as the load a reference value of corresponding gear.
The second judging unit 309 judges whether analog-to-digital conversion number of times is greater than preset value, if analog-to-digital conversion number of timesBe greater than preset value, the 3rd judging unit 310 judges whether to carry out light modulation, need to adjust when determiningLight time, that is analog-to-digital conversion result has been while having exceeded the voltage range of this gear, explanation need to be to LED street lampCarry out light modulation, refresh subelement 3111 and can refresh dutycycle and zero clearing list according to analog-to-digital conversion result3112 pairs of counter O resets of unit; When determining while not needing to carry out light modulation, that is analog-to-digital conversion result is at these shelvesPosition voltage range time, open analog-to-digital conversion next time.
In the embodiment of the present invention, first initialization unit 301 initializes system; Then load singleThe unloaded a reference value of default each gear is loaded by unit 302; Then delay cell 312 postpones the default time;Then open unit 303 and open the analog-to-digital conversion to voltage signal; The analog-to-digital conversion of determining voltage signal is completeCheng Hou, the first processing unit 304 reads analog-to-digital conversion result, and by analog-to-digital conversion result and each gear skyCarry a reference value and compare, obtain comparative result; Then storing refresh unit 305 is stored in comparative resultIn PWM module and according to comparative result, refresh dutycycle; Then opening unit 303 opens next time to electricityPress the analog-to-digital conversion of signal; Determine when the analog-to-digital conversion of voltage signal is completed record cell 306 recordsAnalog-to-digital number of times; The first judging unit 307 judges whether analog-to-digital conversion number of times equals preset value, ifThat the second processing unit 308 reads the analog-to-digital conversion result of preset value number of times the modulus to preset value number of timesTransformation result is averaged, as corresponding gear load a reference value; Otherwise the second judging unit 309 judgesWhether analog-to-digital conversion number of times is greater than preset value, and in the time that analog-to-digital conversion number of times is greater than preset value, the 3rd judgement is singleUnit 310 judges whether to carry out light modulation, when determining need to carry out light modulation time, and the 3rd processing unit 311Refresh dutycycle and to counter O reset according to analog-to-digital conversion result, when determining while not needing to carry out light modulation,Open unit 303 and open analog-to-digital conversion next time. Due to control method and the dress of LED street lamp of the present inventionPut the load a reference value of determining LED street lamp by the voltage of real-time sampling LED street lamp, therefore can rootActual conditions according to LED street lamp are controlled LED street lamp exactly, and adding of delay cell 312 can simultaneouslyFurther to improve the degree of accuracy of controlling LED street lamp.
Those skilled in the art can be well understood to, for convenience and simplicity of description, and above-mentioned retouchingThe system of stating, the specific works process of device and unit, can be with reference to the correspondence in preceding method embodimentProcess, does not repeat them here.
The above, above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit;Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art shouldWork as understanding: its technical scheme that still can record aforementioned each embodiment is modified, or to itMiddle part technical characterictic is equal to replacement; And these amendments or replacement do not make appropriate technical solutionEssence depart from the spirit and scope of various embodiments of the present invention technical schemes.

Claims (9)

1. a control method for LED street lamp, is characterized in that, comprising:
System is initialized;
Load the unloaded a reference value of default each gear;
Open the analog-to-digital conversion to voltage signal;
Read analog-to-digital conversion result, and by described analog-to-digital conversion result and the unloaded a reference value phase of described each gearRelatively, obtain comparative result;
Described comparative result is stored in PWM module and according to described comparative result and refreshes dutycycle;
Open the analog-to-digital conversion to voltage signal next time;
The analog-to-digital number of times of counter records;
If analog-to-digital conversion number of times equals preset value, read the analog-to-digital conversion result of preset value number of times and to instituteState the analog-to-digital conversion results averaged of preset value number of times, as corresponding gear load a reference value;
If analog-to-digital conversion number of times is greater than preset value, by analog-to-digital conversion result and the comparison of described load a reference value,When determining when light modulation need to be carried out, refresh dutycycle and to described counter according to described analog-to-digital conversion resultZero clearing, when determining while not needing to carry out light modulation, opens analog-to-digital conversion next time.
2. the control method of LED street lamp according to claim 1, is characterized in that, described rightSystem initializes and comprises:
Single-chip microcomputer, analog-to-digital conversion module and PWM module are initialized;
Single-chip microcomputer is initialized and comprised: to the register in single-chip microcomputer, timer and input/output terminalMouth initializes.
3. the control method of LED street lamp according to claim 1, is characterized in that, in stepAfter loading the unloaded a reference value of default each gear and step open going back before the analog-to-digital conversion of voltage signalComprise:
Postpone the default time.
4. the control method of LED street lamp according to claim 3, is characterized in that, described pre-If time be 3 seconds.
5. a control device for LED street lamp, is characterized in that, comprising:
Initialization unit, for initializing system;
Load units, for loading the unloaded a reference value of default each gear;
Open unit, for opening the analog-to-digital conversion to voltage signal;
The first processing unit, for reading analog-to-digital conversion result, and by described analog-to-digital conversion result with described inThe unloaded a reference value of each gear is compared, and obtains comparative result;
Storage refresh unit, for being stored in described comparative result PWM module and according to described comparisonResult refreshes dutycycle;
Record cell, for recording analog-to-digital number of times;
The first judging unit, for judging whether analog-to-digital conversion number of times equals preset value;
The second processing unit, in the time that analog-to-digital conversion number of times equals preset value, reads preset value number of timesAnalog-to-digital conversion result the analog-to-digital conversion results averaged to described preset value number of times, as corresponding gearLoad a reference value;
The second judging unit, for judging whether analog-to-digital conversion number of times is greater than preset value;
The 3rd judging unit, in the time that analog-to-digital conversion number of times is greater than preset value, judges whether to carry outLight modulation;
The 3rd processing unit, for when determining need to carry out light modulation time, according to described analog-to-digital conversion result brushNew dutycycle to described record cell zero clearing.
6. the control device of LED street lamp according to claim 5, is characterized in that, described dressPut and also comprise delay cell, for postpone the default time after the unloaded a reference value of loading.
7. according to the control device of the LED street lamp described in claim 5 or 6, it is characterized in that instituteStating the first processing unit comprises:
First reads subelement, for reading analog-to-digital conversion result;
Relatively subelement, for described analog-to-digital conversion result is compared with the unloaded a reference value of described each gear,Obtain comparative result.
8. according to the control device of the LED street lamp described in claim 5 or 6, it is characterized in that instituteStating the second processing unit comprises:
Second reads subelement, in the time that analog-to-digital conversion number of times equals preset value, reads preset value number of timesAnalog-to-digital conversion result;
Average subelement, for by the analog-to-digital conversion results averaged of described preset value number of times, as phaseAnswer gear load a reference value.
9. according to the control device of the LED street lamp described in claim 5 or 6, it is characterized in that instituteStating the 3rd processing unit comprises:
Refresh subelement, for when determining need to carry out light modulation time, refresh according to described analog-to-digital conversion resultDutycycle;
Zero clearing subelement, for when determining while not needing to carry out light modulation, to described record cell zero clearing.
CN201310248000.9A 2013-06-20 2013-06-20 A kind of control method of LED street lamp and device Active CN103281848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310248000.9A CN103281848B (en) 2013-06-20 2013-06-20 A kind of control method of LED street lamp and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310248000.9A CN103281848B (en) 2013-06-20 2013-06-20 A kind of control method of LED street lamp and device

Publications (2)

Publication Number Publication Date
CN103281848A CN103281848A (en) 2013-09-04
CN103281848B true CN103281848B (en) 2016-06-08

Family

ID=49064244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310248000.9A Active CN103281848B (en) 2013-06-20 2013-06-20 A kind of control method of LED street lamp and device

Country Status (1)

Country Link
CN (1) CN103281848B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002334793A (en) * 2001-05-08 2002-11-22 Nec Corp Illuminating lamp lighting control system and illuminating lamp lighting control method
CN1668159A (en) * 2005-02-03 2005-09-14 程涛 Intelligent electricity-saving device for lighting supply source
CN101022687A (en) * 2006-02-13 2007-08-22 盛群半导体股份有限公司 Device and method for adjusting luminous diode brightness
CN102843809A (en) * 2011-06-23 2012-12-26 比亚迪股份有限公司 Human body movement induced dimming control device
CN103096567A (en) * 2011-11-07 2013-05-08 英飞特电子(杭州)股份有限公司 Multi-channel current control circuit and control method
CN103118468A (en) * 2013-02-19 2013-05-22 广州从兴电子开发有限公司 Method and device for remotely controlling LED streetlamp
CN103118469A (en) * 2013-02-19 2013-05-22 广州从兴电子开发有限公司 Method and device for controlling LED streetlamp

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002334793A (en) * 2001-05-08 2002-11-22 Nec Corp Illuminating lamp lighting control system and illuminating lamp lighting control method
CN1668159A (en) * 2005-02-03 2005-09-14 程涛 Intelligent electricity-saving device for lighting supply source
CN101022687A (en) * 2006-02-13 2007-08-22 盛群半导体股份有限公司 Device and method for adjusting luminous diode brightness
CN102843809A (en) * 2011-06-23 2012-12-26 比亚迪股份有限公司 Human body movement induced dimming control device
CN103096567A (en) * 2011-11-07 2013-05-08 英飞特电子(杭州)股份有限公司 Multi-channel current control circuit and control method
CN103118468A (en) * 2013-02-19 2013-05-22 广州从兴电子开发有限公司 Method and device for remotely controlling LED streetlamp
CN103118469A (en) * 2013-02-19 2013-05-22 广州从兴电子开发有限公司 Method and device for controlling LED streetlamp

Also Published As

Publication number Publication date
CN103281848A (en) 2013-09-04

Similar Documents

Publication Publication Date Title
CN114114049B (en) Lithium ion battery life prediction method based on sample migration
JP2011138767A5 (en)
CN103914365B (en) Method and device for acquiring power consumption of mobile terminal application
CN105155203A (en) Washing machine power consumption calculating method
US11215672B2 (en) Battery detection method
WO2021044134A1 (en) Method and system for predicting battery degradation
CN102883012B (en) Test system and test method of mobile terminal current
CN111928429A (en) Energy-saving control method and device for data center refrigerating system
CN111426952A (en) Lithium ion battery life prediction method
CN105188189A (en) Gravity-sensor-based flash lamp illumination method and apparatus, and mobile terminal
CN106123350A (en) Control method and device of water heater and water heater
CN103281848B (en) A kind of control method of LED street lamp and device
CN107290654A (en) A kind of fpga logic test structure and method
CN103118469B (en) A kind of LED method for controlling street lamps and device
CN110805989B (en) Control method and device of air conditioner
CN105276747B (en) Air-conditioner control method based on intensity of illumination and control device
CN103458550A (en) Intelligent acousto-optic control method and lighting device
CN103000962A (en) Battery control method, battery and electronic equipment
CN107436757A (en) ECU software version method of calibration, device and vehicle
CN110031416A (en) Gas concentration detection apparatus and method
CN110388722A (en) Air conditioner anti-freezing control method and device, storage medium and air conditioner
CN113246797B (en) Method and device for predicting service life of battery
CN114966452A (en) Battery state determination method and related device
CN101291507A (en) Mobile phone capable of accurately determining whether radio frequency calibrated, and method thereof
CN103068017B (en) Device energy conservation control method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
CB02 Change of applicant information

Address after: 19, building 368, 510000 South Guangzhou Avenue, Guangdong, Guangzhou

Applicant after: Congxing Technology Co.,Ltd.

Address before: 19, building 368, 510000 South Guangzhou Avenue, Guangdong, Guangzhou

Applicant before: GUANGZHOU SUNRISE ELECTRONICS DEVELOPMENT Co.,Ltd.

CB03 Change of inventor or designer information

Inventor after: Fu Qiang

Inventor after: Li Yun

Inventor after: Zhang Guozheng

Inventor after: Lu Dongyang

Inventor before: Fu Qiang

Inventor before: Ge Wu

Inventor before: Zhang Guozheng

Inventor before: Lu Dongyang

Inventor before: Chen Yong

COR Change of bibliographic data
TA01 Transfer of patent application right

Effective date of registration: 20151118

Address after: 518000, Guangzhou, Guangdong province Zhuhai District 368 Guangzhou Avenue, building 13, E room

Applicant after: WISTECH ENERGY-SAVING TECHNOLOGY Co.,Ltd.

Address before: 19, building 368, 510000 South Guangzhou Avenue, Guangdong, Guangzhou

Applicant before: Congxing Technology Co.,Ltd.

C14 Grant of patent or utility model
C41 Transfer of patent application or patent right or utility model
CB03 Change of inventor or designer information

Inventor after: Fu Qiang

Inventor after: Lei Ming

Inventor after: Shen Baihao

Inventor after: Wei Jiafu

Inventor after: Bai Wei

Inventor after: Ye Jiangbo

Inventor after: Li Yun

Inventor after: Zhang Guozheng

Inventor after: Lu Dongyang

Inventor before: Fu Qiang

Inventor before: Li Yun

Inventor before: Zhang Guozheng

Inventor before: Lu Dongyang

COR Change of bibliographic data
GR01 Patent grant
TA01 Transfer of patent application right

Effective date of registration: 20160519

Address after: Tianhe Road 510000 Guangdong city of Guangzhou province Yuexiu District YUENENG Building No. 45

Applicant after: CHINA SOUTHERN POWER GRID COMPREHENSIVE ENERGY Co.,Ltd.

Applicant after: WISTECH ENERGY-SAVING TECHNOLOGY Co.,Ltd.

Address before: 518000, Guangzhou, Guangdong province Zhuhai District 368 Guangzhou Avenue, building 13, E room

Applicant before: WISTECH ENERGY-SAVING TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address

Address after: Xiangshan Road Development Zone in Guangzhou City, Guangdong province 510000 No. 2, No. 11 (self Kexiang 1 building 1-01 room)

Co-patentee after: WISTECH ENERGY-SAVING TECHNOLOGY Co.,Ltd.

Patentee after: China Southern Power Grid comprehensive energy Co.,Ltd.

Address before: Tianhe Road 510000 Guangdong city of Guangzhou province Yuexiu District YUENENG Building No. 45

Co-patentee before: WISTECH ENERGY-SAVING TECHNOLOGY Co.,Ltd.

Patentee before: CHINA SOUTHERN POWER GRID COMPREHENSIVE ENERGY Co.,Ltd.

CP03 Change of name, title or address