CN103281848A - Control method and control device of LED street lamp - Google Patents

Control method and control device of LED street lamp Download PDF

Info

Publication number
CN103281848A
CN103281848A CN2013102480009A CN201310248000A CN103281848A CN 103281848 A CN103281848 A CN 103281848A CN 2013102480009 A CN2013102480009 A CN 2013102480009A CN 201310248000 A CN201310248000 A CN 201310248000A CN 103281848 A CN103281848 A CN 103281848A
Authority
CN
China
Prior art keywords
analog
digital conversion
led street
preset value
street lamp
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.)
Granted
Application number
CN2013102480009A
Other languages
Chinese (zh)
Other versions
CN103281848B (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
SNRISE Corp
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 SNRISE Corp filed Critical SNRISE Corp
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

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 control method and control device of an LED street lamp. According to the LED street lamp voltage which is sampled in real time, a load reference value of the LED street lamp can be confirmed. The LED street lamp can be accurately controlled according to practical conditions of the LED street lamp.

Description

A kind of control method of LED street lamp and device
Technical field
The embodiment of the invention relates to the road lighting field, is specifically related to a kind of control method and device of LED street lamp.
Background technology
Street lamp is the important component part of city illumination, and traditional street lamp often adopts high-pressure sodium lamp, and high-pressure sodium lamp 360 degree are luminous, and the shortcoming that its light loss is big has caused the huge waste of the energy.Compare with conventional road lamp, the LED street lamp not only has long characteristics of good, non-maintaining and life-span of colourity, and crucial be that it is more energy-conservation than conventional road lamp, in today that energy supply contradiction becomes increasingly conspicuous, this becomes and is even more important.
Existing LED street lamp control mode mainly contains two kinds, a kind of is the mode that adopts single lamp control, that is each LED controller for road lamp is only controlled a LED street lamp, need in the time of work one by one the LED street lamp to be controlled, but under the huge situation of LED street lamp number, control testing to the LED street lamp will become loaded down with trivial details and occur mistake easily, also can expend lot of manpower and material resources simultaneously, causes serious waste.
Another is by the mode of radio communication control single led street lamp or whole LED street lamp group to be controlled, this method is compared first method and can convenient and directly be controlled the whole LED road lamp system, but because this method need install wireless communication module additional in the LED road lamp system, can make the LED road lamp system become huger, and this control method relative complex and reliability are not high.
Summary of the invention
The embodiment of the invention provides a kind of control method and device of LED street lamp, determines the light modulation threshold value of LED street lamp by the voltage of real-time sampling LED street lamp, can control the LED street lamp exactly according to the actual conditions of LED street lamp.
The control method of the LED street lamp of the embodiment of the invention comprises:
System is carried out initialization;
Load the unloaded fiducial value of each default gear;
Unlatching is to the analog-to-digital conversion of voltage signal;
Read the analog-to-digital conversion result, and described analog-to-digital conversion result is compared with the unloaded fiducial value of described each gear, obtain comparative result;
Described comparative result is stored in the PWM module and according to described comparative result refreshes duty ratio;
Open next time the analog-to-digital conversion to voltage signal;
The analog-to-digital number of times of counter records;
If the analog-to-digital conversion number of times equals preset value, then read the analog-to-digital conversion result of preset value number of times and to the analog-to-digital conversion results averaged of described preset value number of times, as corresponding gear load fiducial value;
If the analog-to-digital conversion number of times is greater than preset value, with analog-to-digital conversion result and described load fiducial value relatively, when determining to carry out light modulation, refresh duty ratio and to described counter O reset according to described analog-to-digital conversion result, when determining not need to carry out light modulation, open analog-to-digital conversion next time.
Alternatively,
Describedly system carried out initialization comprise:
Single-chip microcomputer, analog-to-digital conversion module and PWM module are carried out initialization;
Single-chip microcomputer is carried out initialization to be comprised: the register in the single-chip microcomputer, timer and input/output port are carried out initialization.
Alternatively,
After step is loaded the unloaded fiducial value of each default gear and before the analog-to-digital conversion of step unlatching to voltage signal, 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 invention is characterized in that, comprising:
Initialization unit is used for system is carried out initialization;
Load units is used for loading the unloaded fiducial value of each default gear;
Open the unit, be used for opening the analog-to-digital conversion to voltage signal;
First processing unit is used for reading the analog-to-digital conversion result, and described analog-to-digital conversion result is compared with the unloaded fiducial value of described each gear, obtains comparative result;
The storage refresh unit is used for described comparative result is stored in the PWM module and refreshes duty ratio according to described comparative result;
Record cell is used for the analog-to-digital number of times of record;
First judging unit is used for judging whether the analog-to-digital conversion number of times equals preset value;
Second processing unit is used for when the analog-to-digital conversion number of times equals preset value, reads the analog-to-digital conversion result of preset value number of times and to the analog-to-digital conversion results averaged of described preset value number of times, as corresponding gear load fiducial value;
Second judging unit is used for judging that whether the analog-to-digital conversion number of times is greater than preset value;
The 3rd judging unit is used for judging whether to carry out light modulation when analog-to-digital conversion number of times during greater than preset value;
The 3rd processing unit is used for when definite need carry out light modulation the time, refreshes duty ratio and to described counter O reset according to described analog-to-digital conversion result.
Alternatively,
Described device also comprises delay cell, is used for postponing the default time after loading unloaded fiducial value.
Alternatively,
Described first processing unit comprises:
First reads subelement, is used for reading the analog-to-digital conversion result;
Relatively subelement is used for described analog-to-digital conversion result is compared with the unloaded fiducial value of described each gear, obtains comparative result.
Alternatively,
Described second processing unit comprises:
Second reads subelement, is used for reading the analog-to-digital conversion result of preset value number of times when the analog-to-digital conversion number of times equals preset value;
The average subelement is used for the analog-to-digital conversion results averaged with described preset value number of times, as corresponding gear load fiducial value.
Alternatively,
Described the 3rd processing unit comprises:
Refresh subelement, be used for when determining to carry out light modulation, refreshing duty ratio according to described analog-to-digital conversion result;
The zero clearing subelement is used for when determining not need to carry out light modulation, to described counter O reset.
In the embodiment of the invention, at first system is carried out initialization; Then load the unloaded fiducial value of each default gear; Open the analog-to-digital conversion to voltage signal then; Then read the analog-to-digital conversion result, and described analog-to-digital conversion result is compared with the unloaded fiducial value of described each gear, obtain comparative result; Then described comparative result is stored in the PWM module and according to described comparative result and refreshes duty ratio; Then open next time the analog-to-digital conversion to voltage signal; The analog-to-digital number of times of counter records; If the analog-to-digital conversion number of times equals preset value, then read the analog-to-digital conversion result of preset value number of times and to the analog-to-digital conversion results averaged of described preset value number of times, as corresponding gear load fiducial value; If the analog-to-digital conversion number of times is greater than preset value, with analog-to-digital conversion result and described load fiducial value relatively, when determining to carry out light modulation, refresh duty ratio and to described counter O reset according to described analog-to-digital conversion result, when determining not need 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 determined the load fiducial value of LED street lamp by the voltage of real-time sampling LED street lamp, so can control the LED street lamp exactly according to the actual operating position of LED street lamp.
Description of drawings
Fig. 1 is the control method first embodiment flow chart of LED street lamp in the embodiment of the invention;
Fig. 2 is the control method second embodiment flow chart of LED street lamp in the embodiment of the invention;
Fig. 3 is the control device example structure figure of LED street lamp in the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of control method and device of LED street lamp, determines the load fiducial value of LED street lamp by the voltage of real-time sampling LED street lamp, can control the LED street lamp exactly according to the actual conditions of LED street lamp.
See also Fig. 1, the control method of LED street lamp comprises in the embodiment of the invention:
101, system is carried out initialization;
Before the LED street lamp is controlled, can carry out initialization operation to system.
102, load the unloaded fiducial value of each default gear;
System is carried out after the initialization, can load the unloaded fiducial value of each default gear, the unloaded fiducial value of above-mentioned each gear is set after can calculating according to the parameters of the LED street lamp science of carrying out.
103, unlatching is to the analog-to-digital conversion of voltage signal;
Load after the unloaded fiducial value of each default 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 the analog-to-digital conversion result, and the analog-to-digital conversion result is compared with the unloaded fiducial value of each gear, obtain comparative result;
Open and finish after the analog-to-digital conversion to voltage signal, can obtain the analog-to-digital conversion result, with the analog-to-digital conversion result with the unloaded fiducial value of each gear relatively, can obtain comparative result, above-mentioned comparative result can be the light modulation gear of LED street lamp.
105, comparative result is stored in the PWM module and according to comparative result refreshes duty ratio;
Obtain after the comparative result, comparative result can be stored in the PWM module, and refresh duty ratio according to comparative result, the above-mentioned duty ratio that refreshes can be regulated the LED street lamp.
106, open next time analog-to-digital conversion to voltage signal;
After the completing steps 105, can open next time the analog-to-digital conversion to voltage signal.
107, the analog-to-digital number of times of counter records;
Open and finish after the analog-to-digital conversion to voltage signal, counter can record finishes analog-to-digital number of times.
108, if the analog-to-digital conversion number of times equals preset value, then read the analog-to-digital conversion result of preset value number of times and to the analog-to-digital conversion results averaged of preset value number of times, as corresponding gear load fiducial value;
When finishing analog-to-digital number of times and equaling preset value, for example preset value is 3, when finishing analog-to-digital number of times and be 3, reads the result of these three analog-to-digital conversion, and to these three analog-to-digital conversion averaged as a result, as the load fiducial value of corresponding gear.
109, if the analog-to-digital conversion number of times greater than preset value, with analog-to-digital conversion result and load fiducial value relatively, when determining to carry out light modulation, refresh duty ratio and to counter O reset according to the analog-to-digital conversion result, when determining not need to carry out light modulation, open analog-to-digital conversion next time.
When finishing analog-to-digital number of times greater than preset value, read analog-to-digital result this time, and with above-mentioned analog-to-digital conversion result and the comparison of load fiducial value, when determining to carry out light modulation, that is the analog-to-digital conversion result is when having exceeded the voltage range of this gear, explanation need be carried out light modulation to the LED street lamp, can refresh duty ratio and to counter O reset according to the analog-to-digital conversion result, when determining not need to carry out light modulation, that is the analog-to-digital conversion result can open analog-to-digital conversion next time when the voltage range of this gear.
In the embodiment of the invention, at first system is carried out initialization; Then load the unloaded fiducial value of each default gear; Open the analog-to-digital conversion to voltage signal then; Then read the analog-to-digital conversion result, and described analog-to-digital conversion result is compared with the unloaded fiducial value of described each gear, obtain comparative result; Then described comparative result is stored in the PWM module and according to described comparative result and refreshes duty ratio; Then open next time the analog-to-digital conversion to voltage signal; The analog-to-digital number of times of counter records; If the analog-to-digital conversion number of times equals preset value, then read the analog-to-digital conversion result of preset value number of times and to the analog-to-digital conversion results averaged of described preset value number of times, as corresponding gear load fiducial value; If the analog-to-digital conversion number of times is greater than preset value, with analog-to-digital conversion result and described load fiducial value relatively, when determining to carry out light modulation, refresh duty ratio and to described counter O reset according to described analog-to-digital conversion result, when determining not need 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 determined the load fiducial value of LED street lamp by the voltage of real-time sampling LED street lamp, so can control the LED street lamp exactly according to the actual operating position of LED street lamp.
Simply introduced control method first embodiment of LED street lamp in the embodiment of the invention above, control method second embodiment to LED street lamp of the present invention is described in detail below, see also Fig. 2, control method second embodiment of LED street lamp comprises in the embodiment of the invention:
201, system is carried out initialization;
Before the LED street lamp is controlled, can carry out initialization operation to system.Above-mentionedly system is carried out initialization can comprise: single-chip microcomputer, analog-to-digital conversion module and PWM module are carried out initialization.
Wherein single-chip microcomputer being carried out initialization can comprise: the register in the single-chip microcomputer, timer and input/output port are carried out initialization.Need to prove, to what the initialization operation of single-chip microcomputer was not limited to foregoing description the register in the single-chip microcomputer, timer and input/output port are carried out initialization, can also comprise the initialization operation that other linkage function need be carried out, do not do restriction herein.
202, load the unloaded fiducial value of each default gear;
System is carried out after the initialization, can load the unloaded fiducial value of each default gear, the unloaded fiducial value of above-mentioned each gear is set after can calculating according to the parameters of the LED street lamp science of carrying out.For example when the magnitude of voltage excursion of LED street lamp during in zero load be 200VDC-300VDC, the light modulation gear can be divided into 5 grades, 5 grades of concrete unloaded fiducial values can be 200VDC-220VDC, 220VDC-240VDC, 240VDC-260VDC, 260VDC-280VDC and 280VDC-300VDC.
203, postpone the default time;
Load after the unloaded fiducial value of each default gear the time that can postpone to preset.The default time of above-mentioned delay is stable for the voltage of waiting for the LED street lamp, and the above-mentioned default time can be 3S, also can be 4S, and concrete can set according to the actual state of LED street lamp, does not do restriction herein.
204, unlatching is to the analog-to-digital conversion of voltage signal;
Postpone can open the analog-to-digital conversion to voltage signal after the Preset Time, above-mentioned analog-to-digital conversion can obtain the level value of voltage signal.
205, read the analog-to-digital conversion result, and the analog-to-digital conversion result is compared with the unloaded fiducial value of each gear, obtain comparative result;
Open and finish after the analog-to-digital conversion to voltage signal, can obtain the analog-to-digital conversion result, with the analog-to-digital conversion result with the unloaded fiducial value of each gear relatively, can obtain comparative result, above-mentioned comparative result can be the light modulation gear of LED street lamp, for example working as the light modulation gear is 5 grades, when 5 grades of concrete unloaded fiducial values are five grades of 200VDC-220VDC, 220VDC-240VDC, 240VDC-260VDC, 260VDC-280VDC and 280VDC-300VDC, if the analog-to-digital conversion result is 245VDC, then by relatively obtaining being in the comparative result of the 3rd light modulation gear.
206, comparative result is stored in the PWM module and according to comparative result refreshes duty ratio;
Obtain after the comparative result, comparative result can be stored in the PWM module, and refresh duty ratio according to comparative result, the above-mentioned duty ratio that refreshes can be regulated the LED street lamp, for example working as the light modulation gear is 5 grades, 5 grades of concrete unloaded fiducial values are 200VDC-220VDC, 220VDC-240VDC, 240VDC-260VDC, when five grades of 260VDC-280VDC and 280VDC-300VDC, if the analog-to-digital conversion result is 245VDC, then by relatively obtaining being in the comparative result of the 3rd light modulation gear, and the current value of supposing the 3rd light modulation gear correspondence is when being 1.5A, method that can be by refreshing duty ratio with the current value adjustment of LED street lamp to 1.5A.
207, open next time analog-to-digital conversion to voltage signal;
After the completing steps 206, can open next time the analog-to-digital conversion to voltage signal.
208, counter records is finished analog-to-digital number of times;
Open and finish after the analog-to-digital conversion to voltage signal, counter can record finishes analog-to-digital number of times.
209, if the analog-to-digital conversion number of times equals preset value, then execution in step 210, otherwise execution in step 211;
When the analog-to-digital conversion number of times that records in the counter equaled preset value, execution in step 210 denied person's execution in step 211, and the preset value of above-mentioned analog-to-digital conversion number of times can be 3, also can be 4, and concrete can set according to actual conditions, does not do restriction herein.
210, read the analog-to-digital conversion result of preset value number of times and to the analog-to-digital conversion results averaged of preset value number of times, as corresponding gear load fiducial value;
When finishing analog-to-digital number of times and equaling preset value, for example preset value is 3, when finishing analog-to-digital number of times and be 3, reads the result of these three analog-to-digital conversion, and to these three analog-to-digital conversion averaged as a result, as the load fiducial value of corresponding gear.
211, whether judge the analog-to-digital conversion number of times greater than preset value, if execution in step 212, otherwise execution in step 214;
When finishing analog-to-digital number of times greater than preset value, can execution in step 212; When finishing analog-to-digital number of times less than preset value, can execution in step 214.
212, judge whether to carry out light modulation, if execution in step 213, otherwise execution in step 214;
When finishing analog-to-digital number of times greater than preset value, read analog-to-digital result this time, and with above-mentioned analog-to-digital conversion result and the comparison of load fiducial value, when determining to carry out light modulation, that is the analog-to-digital conversion result has been when having exceeded the voltage range of this gear, and explanation need be carried out light modulation to the LED street lamp, but execution in step 213, when determining not need to carry out light modulation, that is the analog-to-digital conversion result is when the voltage range of this gear, execution in step 214.
213, refresh duty ratio according to the analog-to-digital conversion result and to counter O reset;
When definite needs carry out light modulation, that is the analog-to-digital conversion result has been when having exceeded the voltage range of this gear, and explanation need be carried out light modulation to the LED street lamp, can refresh duty ratio and to counter O reset according to the analog-to-digital conversion result.
214, open analog-to-digital conversion next time.
When determining not need to carry out light modulation, open analog-to-digital conversion next time.
In this embodiment of the invention, at first system is carried out initialization; Then load the unloaded fiducial value of each default gear; Open the analog-to-digital conversion to voltage signal then; Then read the analog-to-digital conversion result, and described analog-to-digital conversion result is compared with the unloaded fiducial value of described each gear, obtain comparative result; Then described comparative result is stored in the PWM module and according to described comparative result and refreshes duty ratio; Then open next time the analog-to-digital conversion to voltage signal; The analog-to-digital number of times of counter records; If the analog-to-digital conversion number of times equals preset value, then read the analog-to-digital conversion result of preset value number of times and to the analog-to-digital conversion results averaged of described preset value number of times, as corresponding gear load fiducial value; If the analog-to-digital conversion number of times is greater than preset value, with analog-to-digital conversion result and described load fiducial value relatively, when determining to carry out light modulation, refresh duty ratio and to described counter O reset according to described analog-to-digital conversion result, when determining not need 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 determined the load fiducial value of LED street lamp by the voltage of real-time sampling LED street lamp, therefore can control the LED street lamp exactly according to the actual operating position of LED street lamp, the adding that postpones step simultaneously can further improve the accuracy of control LED street lamp.
Second embodiment to the control method of LED street lamp of the present invention has made detailed description above, the setting up procedure of each gear fiducial value and load fiducial value particularly, introduce the control device embodiment of LED street lamp of the present invention below, see also Fig. 3, the control device embodiment of LED street lamp comprises in the embodiment of the invention:
Initialization unit 301 is used for system is carried out initialization;
Load units 302 is used for loading the unloaded fiducial value of each default gear;
Open unit 303, be used for opening the analog-to-digital conversion to voltage signal;
First processing unit 304 is used for reading the analog-to-digital conversion result when the analog-to-digital conversion of voltage signal is finished, and described analog-to-digital conversion result is compared with the unloaded fiducial value of described each gear, obtains comparative result;
Storage refresh unit 305 is used for described comparative result is stored in the PWM module and refreshes duty ratio according to described comparative result;
Record cell 306 is used for the analog-to-digital number of times of record;
First judging unit 307 is used for judging whether the analog-to-digital conversion number of times equals preset value;
Second processing unit 308 is used for when the analog-to-digital conversion number of times equals preset value, reads the analog-to-digital conversion result of preset value number of times and to the analog-to-digital conversion results averaged of above-mentioned preset value number of times, as corresponding gear load fiducial value;
Second judging unit 309 is used for judging that whether the analog-to-digital conversion number of times is greater than preset value;
The 3rd judging unit 310 is used for judging whether to carry out light modulation when analog-to-digital conversion number of times during greater than preset value;
The 3rd processing unit 311 when be used for determining to carry out light modulation, refreshes duty ratio and to described counter O reset according to described analog-to-digital conversion result.
The device of the embodiment of the invention further comprises:
Delay cell 312 is used for postponing the default time after loading unloaded fiducial value.
Alternatively,
First processing unit 304 comprises:
First reads subelement 3041, is used for reading the analog-to-digital conversion result;
Relatively subelement 3042 is used for the analog-to-digital conversion result is compared with the unloaded fiducial value of each gear, obtains comparative result.
Alternatively,
Second processing unit 308 comprises:
Second reads subelement 3081, is used for reading the analog-to-digital conversion result of preset value number of times when the analog-to-digital conversion number of times equals preset value;
Average subelement 3082 is used for the analog-to-digital conversion results averaged with the preset value number of times, as corresponding gear load fiducial value.
Alternatively,
The 3rd processing unit 311 comprises:
Refresh subelement 3111, be used for when determining to carry out light modulation, the result refreshes duty ratio according to analog-to-digital conversion;
Zero clearing subelement 3112 is used for when determining to carry out light modulation, to counter O reset.
Before the LED street lamp was controlled, initialization unit 301 can be carried out initialization operation to system.301 pairs of systems of above-mentioned initialization unit carry out initialization and can comprise: single-chip microcomputer, analog-to-digital conversion module and PWM module are carried out initialization.
Wherein single-chip microcomputer being carried out initialization can comprise: the register in the single-chip microcomputer, timer and input/output port are carried out initialization.Need to prove, to what the initialization operation of single-chip microcomputer was not limited to foregoing description the register in the single-chip microcomputer, timer and input/output port are carried out initialization, can also comprise the initialization operation that other linkage function need be carried out, do not do restriction herein.
301 pairs of systems of initialization unit carry out after the initialization, and load units 302 can load the unloaded fiducial value of each default gear, and the unloaded fiducial value of above-mentioned each gear is set after can calculating according to the parameters of the LED street lamp science of carrying out.For example the magnitude of voltage excursion that in zero load is when the LED street lamp is 200VDC-300VDC, the light modulation gear can be divided into 5 grades, 5 grades of concrete unloaded fiducial values can be 200VDC-220VDC, 220VDC-240VDC, 240VDC-260VDC, 260VDC-280VDC and 280VDC-300VDC.
Load units 302 loads after the unloaded fiducial value of each default gear, the time that delay cell 312 can postpone to preset.It is stable for the voltage of waiting for the LED street lamp that above-mentioned delay cell 312 postpones the default time, and above-mentioned Preset Time can be 3S, also can be 4S, and concrete can set according to the actual state of LED street lamp, does not do restriction herein.
Delay cell 312 postponed after the default time, and the analog-to-digital conversion to voltage signal can be opened in unlatching unit 303, and above-mentioned analog-to-digital conversion can obtain the level value of voltage signal.
Open the analog-to-digital conversion that unit 303 is opened voltage signal, when definite above-mentioned analog-to-digital conversion is finished, first reads subelement 3041 can obtain the analog-to-digital conversion result, relatively subelement 3042 with the analog-to-digital conversion result with the unloaded fiducial value of each gear relatively, can obtain comparative result, above-mentioned comparative result can be the light modulation gear of LED street lamp, for example working as the light modulation gear is 5 grades, 5 grades of concrete unloaded fiducial values are 200VDC-220VDC, 220VDC-240VDC, 240VDC-260VDC, when five grades of 260VDC-280VDC and 280VDC-300VDC, if the analog-to-digital conversion result is 245VDC, then by relatively obtaining being in the comparative result of the 3rd light modulation gear.Obtain after the comparative result, comparative result can be stored in the PWM module, and refresh duty ratio according to comparative result, the above-mentioned duty ratio that refreshes can be regulated the LED street lamp, for example working as the light modulation gear is 5 grades, be specially 200VDC-220VDC, 220VDC-240VDC, 240VDC-260VDC, when five grades of 260VDC-280VDC and 280VDC-300VDC, if the analog-to-digital conversion result is 245VDC, then by relatively obtaining being in the comparative result of the 3rd light modulation gear, and the current value of supposing the 3rd light modulation gear correspondence is when being 1.5A, method that can be by refreshing duty ratio with the current value adjustment of LED street lamp to 1.5A; Then open unit 303 and open next time analog-to-digital conversion to voltage signal.
When determining the analog-to-digital conversion of voltage signal finished, counter can record finishes analog-to-digital number of times.
First judging unit 307 judges that the analog-to-digital conversion number of times equals preset value, then second read subelement 3081 and read the analog-to-digital conversion result of preset value number of times and the analog-to-digital conversion results averaged of 3082 pairs of preset value number of times of average subelement, as corresponding gear load fiducial value, for example preset value is 3, when finishing analog-to-digital number of times and be 3, read the result of these three analog-to-digital conversion, and to these three analog-to-digital conversion averaged as a result, as the load fiducial value of corresponding gear.
Second judging unit 309 judges that whether the analog-to-digital conversion number of times is greater than preset value, if the analog-to-digital conversion number of times is greater than preset value, the 3rd judging unit 310 judges whether to carry out light modulation, when determining to carry out light modulation, that is the analog-to-digital conversion result is when having exceeded the voltage range of this gear, explanation need be carried out light modulation to the LED street lamp, refreshes subelement 3111 and can refresh duty ratio and 3112 pairs of counter O resets of zero clearing subelement according to the analog-to-digital conversion result; When determining not need to carry out light modulation, that is the analog-to-digital conversion result opens analog-to-digital conversion next time when the voltage range of this gear.
In the embodiment of the invention, at first 301 pairs of systems of initialization unit carry out initialization; Then load units 302 loads the unloaded fiducial value of each default gear; Delay cell 312 postpones the default time then; Then open the analog-to-digital conversion that unit 303 is opened voltage signal; After the analog-to-digital conversion of determining voltage signal was finished, first processing unit 304 read the analog-to-digital conversion result, and the analog-to-digital conversion result is compared with the unloaded fiducial value of each gear, obtained comparative result; Storing refresh unit 305 then is stored in comparative result in the PWM module and according to comparative result and refreshes duty ratio; Then open unit 303 and open next time analog-to-digital conversion to voltage signal; When determining the analog-to-digital conversion of voltage signal finished, the analog-to-digital number of times of record cell 306 records; First judging unit 307 judges whether the analog-to-digital conversion number of times equals preset value, if second processing unit 308 reads the analog-to-digital conversion result of preset value number of times and to the analog-to-digital conversion results averaged of preset value number of times, as corresponding gear load fiducial value; Otherwise second judging unit 309 judges that whether the analog-to-digital conversion number of times is greater than preset value, when analog-to-digital conversion number of times during greater than preset value, the 3rd judging unit 310 judges whether to carry out light modulation, when determining to carry out light modulation, the 3rd processing unit 311 refreshes duty ratio according to the analog-to-digital conversion result and to counter O reset, when determining not need to carry out light modulation, open unit 303 and open analog-to-digital conversion next time.Because the control method of LED street lamp of the present invention and device are determined the load fiducial value of LED street lamp by the voltage of real-time sampling LED street lamp, therefore can control the LED street lamp exactly according to the actual conditions of LED street lamp, the adding of delay cell 312 simultaneously can further improve the accuracy of control LED street lamp.
The those skilled in the art can be well understood to, and is the convenience described and succinct, the system of foregoing description, and the concrete course of work of device and unit can not repeat them here with reference to the corresponding process among the preceding method embodiment.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (9)

1. the control method of a LED street lamp is characterized in that, comprising:
System is carried out initialization;
Load the unloaded fiducial value of each default gear;
Unlatching is to the analog-to-digital conversion of voltage signal;
Read the analog-to-digital conversion result, and described analog-to-digital conversion result is compared with the unloaded fiducial value of described each gear, obtain comparative result;
Described comparative result is stored in the PWM module and according to described comparative result refreshes duty ratio;
Open next time the analog-to-digital conversion to voltage signal;
The analog-to-digital number of times of counter records;
If the analog-to-digital conversion number of times equals preset value, then read the analog-to-digital conversion result of preset value number of times and to the analog-to-digital conversion results averaged of described preset value number of times, as corresponding gear load fiducial value;
If the analog-to-digital conversion number of times is greater than preset value, with analog-to-digital conversion result and described load fiducial value relatively, when determining to carry out light modulation, refresh duty ratio and to described counter O reset according to described analog-to-digital conversion result, when determining not need to carry out light modulation, open analog-to-digital conversion next time.
2. the control method of LED street lamp according to claim 1 is characterized in that, describedly system is carried out initialization comprises:
Single-chip microcomputer, analog-to-digital conversion module and PWM module are carried out initialization;
Single-chip microcomputer is carried out initialization to be comprised: the register in the single-chip microcomputer, timer and input/output port are carried out initialization.
3. the control method of LED street lamp according to claim 1 is characterized in that, also comprises after step is loaded the unloaded fiducial value of each default gear and before the analog-to-digital conversion of step unlatching to voltage signal:
Postpone the default time.
4. the control method of LED street lamp according to claim 3 is characterized in that, the described default time is 3 seconds.
5. the control device of a LED street lamp is characterized in that, comprising:
Initialization unit is used for system is carried out initialization;
Load units is used for loading the unloaded fiducial value of each default gear;
Open the unit, be used for opening the analog-to-digital conversion to voltage signal;
First processing unit is used for reading the analog-to-digital conversion result, and described analog-to-digital conversion result is compared with the unloaded fiducial value of described each gear, obtains comparative result;
The storage refresh unit is used for described comparative result is stored in the PWM module and refreshes duty ratio according to described comparative result;
Record cell is used for the analog-to-digital number of times of record;
First judging unit is used for judging whether the analog-to-digital conversion number of times equals preset value;
Second processing unit is used for when the analog-to-digital conversion number of times equals preset value, reads the analog-to-digital conversion result of preset value number of times and to the analog-to-digital conversion results averaged of described preset value number of times, as corresponding gear load fiducial value;
Second judging unit is used for judging that whether the analog-to-digital conversion number of times is greater than preset value;
The 3rd judging unit is used for judging whether to carry out light modulation when analog-to-digital conversion number of times during greater than preset value;
The 3rd processing unit is used for when definite need carry out light modulation the time, refreshes duty ratio and to described counter O reset according to described analog-to-digital conversion result.
6. the control device of LED street lamp according to claim 5 is characterized in that, described device also comprises delay cell, is used for postponing the default time after loading unloaded fiducial value.
7. according to the control device of claim 5 or 6 described LED street lamps, it is characterized in that described first processing unit comprises:
First reads subelement, is used for reading the analog-to-digital conversion result;
Relatively subelement is used for described analog-to-digital conversion result is compared with the unloaded fiducial value of described each gear, obtains comparative result.
8. according to the control device of claim 5 or 6 described LED street lamps, it is characterized in that described second processing unit comprises:
Second reads subelement, is used for reading the analog-to-digital conversion result of preset value number of times when the analog-to-digital conversion number of times equals preset value;
The average subelement is used for the analog-to-digital conversion results averaged with described preset value number of times, as corresponding gear load fiducial value.
9. according to the control device of claim 5 or 6 described LED street lamps, it is characterized in that described the 3rd processing unit comprises:
Refresh subelement, be used for when determining to carry out light modulation, refreshing duty ratio according to described analog-to-digital conversion result;
The zero clearing subelement is used for when determining not need to carry out light modulation, to described counter O reset.
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 true CN103281848A (en) 2013-09-04
CN103281848B 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
CN103118469A (en) * 2013-02-19 2013-05-22 广州从兴电子开发有限公司 Method and device for controlling LED streetlamp
CN103118468A (en) * 2013-02-19 2013-05-22 广州从兴电子开发有限公司 Method and device for remotely 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
CN103118469A (en) * 2013-02-19 2013-05-22 广州从兴电子开发有限公司 Method and device for controlling LED streetlamp
CN103118468A (en) * 2013-02-19 2013-05-22 广州从兴电子开发有限公司 Method and device for remotely controlling LED streetlamp

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙政: "《基于单片机的数字化调光装置的设计与实现》", 《光学技术》 *

Also Published As

Publication number Publication date
CN103281848B (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN102047225B (en) Priority controller and priority control method
CN103036622B (en) Based on cognitive radio frequency spectrum detection method and the device of self adaptation double threshold
CN1805313A (en) Quick parallel radio frequency test system and test method for mobile terminals
CN107656776A (en) A kind of firmware update, device and the medium of FPGA accelerator cards
CN1949197A (en) Portable equipment based on non-volatile memory and method of realizing power failure protection
CN103050097B (en) Method and device for regulating brightness of backlight lamp
US20110271032A1 (en) Access device and memory controller
CN203884058U (en) LED constant-current driving circuit capable of increasing demagnetizing detection precision
CN104297692A (en) Method for detecting service life of battery
CN104281513A (en) Application power consumption detection method and system
CN103902357A (en) Application program management system and method
CN105183397A (en) EMMC read-write control method and system
CN103782269A (en) Efficient frequency boost operation
CN107290654A (en) A kind of fpga logic test structure and method
CN102789407B (en) Validity detection method of memory block
CN106445113A (en) Control method and system for mobile terminal, and mobile terminal
CN103391362B (en) A kind of application class method based on power consumption and mobile terminal
CN105303867A (en) Method and system for determining parking position through employing intelligent mobile equipment
CN103281848A (en) Control method and control device of LED street lamp
CN105050270A (en) Wireless communication based underground passage lighting method
CN103118469B (en) A kind of LED method for controlling street lamps and device
CN105512003A (en) Disk positioning method and device
CN102466784A (en) Standby power supply capacity real-time detection device
CN104577228A (en) System for detecting and trimming voltage deviation of battery equalization modules
CN106200866A (en) A kind of application freezing method and mobile terminal

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