Summary of the invention
The technical problems to be solved by the present invention are: providing a kind of street lamp buffer control system, external environment can be reduced
Interference improves the accuracy of switch lamp time.
In order to solve the above technical problems, the present invention adopts the following technical scheme:
A kind of street lamp buffer control system, the control system include: master controller, timer, counter, at least a light
Sensor, power controller, level-conversion circuit;
The master controller is separately connected timer, counter, optical sensor, power controller, each optical sensor distribution
Setting;Master controller connects level-conversion circuit;
The optical sensor detects primary extraneous brightness every 0.1s;
If street lamp current state is to open, only when optical sensor continuously detects setting frequency n time, parameter is to need to close
When lamp, master controller can just control power controller and execute movement of turning off the light, and not hold as long as occurring primary parameter therebetween and not meeting
Capable operation of turning off the light;
If street lamp current state is to close, only when controller continuously detects setting frequency n time, parameter is that needs are turned on light
When, master controller can just control power controller and execute movement of turning on light, and not execute as long as occurring primary parameter therebetween and not meeting
It turns on light operation;
For reduce external environment interference, closing process are as follows: power controller first by illuminance it is soft drop it is bright arrive lowest power,
It turns off;The algorithm of street light modulating includes: that power is divided into 0-255 grades by DALI agreement default, 256 shelves altogether;In program
As soon as every 0.1s detects time brightness, one grade is reduced when than preceding primary bright, vice versa.
The level-conversion circuit is the level-conversion circuit of digital addressable lighting interface DALI, the level translation electricity
Road includes: sending module, receiving module, rectification circuit;
The sending module include: the first optocoupler U5, the first triode Q206, first resistor R220, second resistance R221,
3rd resistor R218, the 4th resistance R222, first capacitor C11, first diode D13;
The receiving module includes: the second optocoupler U4, the 5th resistance R233, the 6th resistance R234, zener diode D17;
The rectification circuit includes rectifier bridge;
The first port of the first optocoupler U5 connects supply voltage VCC_MCU, and second port passes through 3rd resistor R218
Incoming level DALI_TX is connected, third port connects the first end of first resistor R220, and the 4th port is separately connected first capacitor
The cathode of the anode of C11, first diode D13;
The second end of the first resistor R220 is separately connected the first end of second resistance R221, the first triode Q206
The second end of base stage, second resistance R221 connects the cathode of first capacitor C11, the emitter of the first triode Q206, pressure stabilizing two
The anode of pole pipe D17;The collector of first triode Q206 connects the first end of the 4th resistance R222;The of 4th resistance R222
Two sections are separately connected the anode of first diode D13, the second end of the 5th resistance R233, the third port of rectifier bridge D9;
The first port of the second optocoupler U4 connects the first end of the 5th resistance R233, and second port connects two pole of pressure stabilizing
The cathode of pipe D17, third port connect the first end of the 6th resistance R234, while meeting DALI_RX, and the 4th port meets VCC_MCU;The
The second port of six resistance R234 is grounded;Level translation process includes: the level change range 0- of incoming level DALI_TX
3.3V, when DALI_TX is low level, the sending module of the first light idol U5 of cooperation accesses DALI bus, makes DALI bus
Output transform is 0V, meets DALI electrical standard to low level -4.5V~4.5V requirement;When DALI_TX high level, match
The sending module access DALI bus for closing the first light idol U5, makes the output transform 16.8V of DALI bus, meets DALI and electrically mark
Requirement of the standard to high level 9.5V~22.5V, first resistor R220 and the first triode Q206 ensure the function in DALI bus
Power consumption stream is no more than 250MA, while the parameter selection of the first triode Q206 requires DC gain to be greater than 100db, while by dissipating
Hot cell is the first triode Q206 heat dissipation;
The receiving module triggers DALI_RX low level in bus low level, and when bus high level triggers DALI_RX high
Level, zener diode D17 guarantee that bus guarantees the second optocoupler U4 in the minimum high level voltage of not up to standard requirements not
It is driven;
The master controller includes dropping bright module, the bright module of liter of middle night, correction module middle night;
The middle night drops bright module and is being set in the first moment reduction street lamp function to control street lamp by power controller
Rate adds previous cycle to turn on light the 50% of duration at the time of reducing lamp power for this period street lamp start-up time;
The middle night rises bright module and is being set in the second moment increase street lamp function to control street lamp by power controller
Rate adds previous cycle to turn on light the 30%~40% of duration at the time of increasing lamp power for the first moment of this period;
The correction module reaches setting to the mobile object quantity sensed within the set time in position sensor
When value, the power that the power controller improves street lamp in the set time period is controlled.
A kind of street lamp buffer control system, the street lamp buffer control system include: master controller, timer, counter,
At least an optical sensor, power controller, level-conversion circuit;
The master controller is separately connected timer, counter, optical sensor, power controller, each optical sensor distribution
Setting;
The optical sensor detects primary extraneous brightness every setting time;
If street lamp current state is to open, only when optical sensor continuously detects setting frequency n time, parameter is to need to close
When lamp, master controller can just control power controller and execute movement of turning off the light, and not hold as long as occurring primary parameter therebetween and not meeting
Capable operation of turning off the light;
If street lamp current state is to close, only when controller continuously detects setting frequency n time, parameter is that needs are turned on light
When, master controller can just control power controller and execute movement of turning on light, and not execute as long as occurring primary parameter therebetween and not meeting
It turns on light operation.
As a preferred solution of the present invention, it is interfered to reduce external environment, closing process are as follows: power controller first will
The soft drop of illuminance is bright to arrive lowest power, turns off.The algorithm of street light modulating include: DALI agreement default power is divided into 0-
255 grades, 256 shelves altogether;As soon as every 0.1s detects time brightness in program, one grade is reduced when than preceding primary bright, otherwise also
So.
As a preferred solution of the present invention, the master controller includes dropping bright module middle night, the bright module of liter of middle night, repairing
Positive module;
The middle night drops bright module and is being set in the first moment reduction street lamp function to control street lamp by power controller
Rate adds previous cycle to turn on light the 45%~55% of duration at the time of reducing lamp power for this period street lamp start-up time;
The middle night rises bright module and is being set in the second moment increase street lamp function to control street lamp by power controller
Rate adds previous cycle to turn on light the 30%~40% of duration at the time of increasing lamp power for the first moment of this period;
The correction module reaches setting to the mobile object quantity sensed within the set time in position sensor
When value, the power that the power controller improves street lamp in the set time period is controlled.
As a preferred solution of the present invention, the level-conversion circuit is the electricity of digital addressable lighting interface DALI
Flat translation circuit, the level-conversion circuit include: sending module, receiving module, rectification circuit;
The sending module include: the first optocoupler U5, the first triode Q206, first resistor R220, second resistance R221,
3rd resistor R218, the 4th resistance R222, first capacitor C11, first diode D13;
The receiving module includes: the second optocoupler U4, the 5th resistance R233, the 6th resistance R234, zener diode D17;
The rectification circuit includes rectifier bridge;
The first port of the first optocoupler U5 connects supply voltage VCC_MCU, and second port passes through 3rd resistor R218
Incoming level DALI_TX is connected, third port connects the first end of first resistor R220, and the 4th port is separately connected first capacitor
The cathode of the anode of C11, first diode D13;
The second end of the first resistor R220 is separately connected the first end of second resistance R221, the first triode Q206
The second end of base stage, second resistance R221 connects the cathode of first capacitor C11, the emitter of the first triode Q206, pressure stabilizing two
The anode of pole pipe D17;The collector of first triode Q206 connects the first end of the 4th resistance R222;The of 4th resistance R222
Two sections are separately connected the anode of first diode D13, the second end of the 5th resistance R233, the third port of rectifier bridge D9;
The first port of the second optocoupler U4 connects the first end of the 5th resistance R233, and second port connects two pole of pressure stabilizing
The cathode of pipe D17, third port connect the first end of the 6th resistance R234, while meeting DALI_RX, and the 4th port meets VCC_MCU;The
The second port of six resistance R234 is grounded;Level translation process includes: when DALI_TX is low level, and the first light of cooperation is even
The sending module of U5 accesses DALI bus, meets DALI electrical standard to low level requirement;When DALI_TX high level,
Cooperate the sending module of the first light idol U5 to access DALI bus, meets requirement of the DALI electrical standard to high level, first resistor
R220 and the first triode Q206 ensures that the static current of lcd in DALI bus is no more than 250MA, while the first triode Q206
Parameter selection require DC gain be greater than 100db, while by heat-sink unit be the first triode Q206 radiate;
The receiving module triggers DALI_RX low level in bus low level, and when bus high level triggers DALI_RX high
Level, zener diode D17 guarantee that bus guarantees the second optocoupler U4 in the minimum high level voltage of not up to standard requirements not
It is driven.
The beneficial effects of the present invention are: street lamp buffer control system proposed by the present invention can reduce the dry of external environment
It disturbs, improves the accuracy of switch lamp time.
Embodiment one
Referring to Fig. 1, present invention discloses a kind of street lamp buffer control system, the control system includes: master controller
1, timer 2, counter 3, at least an optical sensor 4, power controller 5, level-conversion circuit 6.
The master controller 1 is separately connected timer 2, counter 3, optical sensor 4, power controller 5, level translation electricity
Road 6, each distribution of optical sensor 4 setting.
The optical sensor detects primary extraneous brightness every 0.1s.If street lamp current state is to open, only work as light
Sensor continuously detects setting frequency n time, and parameter is when needing to turn off the light, and master controller can just control power controller and execute pass
Lamp movement, does not execute operation of turning off the light as long as occurring primary parameter therebetween and not meeting.
If street lamp current state is to close, only when controller continuously detects setting frequency n time, parameter is that needs are turned on light
When, master controller can just control power controller and execute movement of turning on light, and not execute as long as occurring primary parameter therebetween and not meeting
It turns on light operation.
For reduce external environment interference, closing process are as follows: power controller first by illuminance it is soft drop it is bright arrive lowest power,
It turns off.The algorithm of street light modulating includes: that power is divided into 0-255 grades by DALI agreement default, 256 shelves altogether;In program
As soon as every 0.1s detects time brightness, one grade is reduced when than preceding primary bright, vice versa.
The level-conversion circuit 6 is the level-conversion circuit of digital addressable lighting interface DALI, the level translation
Circuit includes: sending module 61, receiving module 62, rectification circuit.
The sending module include: the first optocoupler U5, the first triode Q206, first resistor R220, second resistance R221,
3rd resistor R218, the 4th resistance R222, first capacitor C11, first diode D13.The receiving module includes: the second optocoupler
U4, the 5th resistance R233, the 6th resistance R234, zener diode D17.The rectification circuit includes rectifier bridge;
The first port of the first optocoupler U5 connects supply voltage VCC_MCU, and second port passes through 3rd resistor R218
Incoming level DALI_TX is connected, third port connects the first end of first resistor R220, and the 4th port is separately connected first capacitor
The cathode of the anode of C11, first diode D13.
The second end of the first resistor R220 is separately connected the first end of second resistance R221, the first triode Q206
The second end of base stage, second resistance R221 connects the cathode of first capacitor C11, the emitter of the first triode Q206, pressure stabilizing two
The anode of pole pipe D17;The collector of first triode Q206 connects the first end of the 4th resistance R222;The of 4th resistance R222
Two sections are separately connected the anode of first diode D13, the second end of the 5th resistance R233, the third port of rectifier bridge D9.
The first port of the second optocoupler U4 connects the first end of the 5th resistance R233, and second port connects two pole of pressure stabilizing
The cathode of pipe D17, third port connect the first end of the 6th resistance R234, while meeting DALI_RX, and the 4th port meets VCC_MCU;The
The second port of six resistance R234 is grounded.
Level translation process includes: that the level change range 0-3.3V of incoming level DALI_TX (is also possible to other models
Enclose), when DALI_TX is low level, the sending module of the first light idol U5 of cooperation accesses DALI bus, makes the defeated of DALI bus
It is transformed to 0V or so out, meets requirement of the DALI electrical standard to low level -4.5V~4.5V (being also possible to other ranges);When
DALI_TX high level when, cooperation the first light idol U5 sending module access DALI bus, make the output transform of DALI bus
(such as 16.8V meets DALI electrical standard and (is also possible to high level 9.5V~22.5V 16V or so close to supply voltage 17V)
Other ranges) requirement, first resistor R220 and the first triode Q206 ensure that the static current of lcd in DALI bus is no more than
250MA, while the parameter selection of the first triode Q206 requires DC gain to be greater than 100db, while being first by heat-sink unit
Triode Q206 heat dissipation.
The receiving module triggers DALI_RX low level in bus low level, and when bus high level triggers DALI_RX high
Level, zener diode D17 guarantee that bus guarantees the second optocoupler U4 in the minimum high level voltage of not up to standard requirements not
It is driven.
The setting of level-conversion circuit can reduce system cost, improve system stability, power consumption can be effectively reduced, and reduce
EMI。
In addition, the master controller includes dropping bright module, the bright module of liter of middle night, correction module middle night.
The middle night drops bright module and is being set in the first moment reduction street lamp function to control street lamp by power controller
Rate, at the time of reducing lamp power for this period street lamp start-up time add previous cycle turn on light duration 45%~55% (such as
50%, 40%, 45% etc.;If the value is determining value after being selected, do not change within the set time).
The middle night rises bright module and is being set in the second moment increase street lamp function to control street lamp by power controller
Rate, increase lamp power at the time of for the first moment of this period add previous cycle turn on light duration 30%~40% (such as 30%,
40%, 35% etc.).
The correction module reaches setting to the mobile object quantity sensed within the set time in position sensor
When value, the power that the power controller improves street lamp in the set time period is controlled.
Embodiment two
A kind of street lamp buffer control system, the street lamp buffer control system include: master controller, timer, counter,
At least an optical sensor, power controller, level-conversion circuit.
The master controller is separately connected timer, counter, optical sensor, power controller, each optical sensor distribution
Setting.
The optical sensor detects primary extraneous brightness every setting time.
If street lamp current state is to open, only when optical sensor continuously detects setting frequency n time, parameter is to need to close
When lamp, master controller can just control power controller and execute movement of turning off the light, and not hold as long as occurring primary parameter therebetween and not meeting
Capable operation of turning off the light.
If street lamp current state is to close, only when controller continuously detects setting frequency n time, parameter is that needs are turned on light
When, master controller can just control power controller and execute movement of turning on light, and not execute as long as occurring primary parameter therebetween and not meeting
It turns on light operation.
For reduce external environment interference, closing process are as follows: power controller first by illuminance it is soft drop it is bright arrive lowest power,
It turns off.
In conclusion street lamp buffer control system proposed by the present invention, can reduce the interference of external environment, switch lamp is improved
The accuracy of time.
Description and application of the invention herein are illustrative, is not wishing to limit the scope of the invention to above-described embodiment
In.The deformation and change of embodiments disclosed herein are possible, the realities for those skilled in the art
The replacement and equivalent various parts for applying example are well known.It should be appreciated by the person skilled in the art that not departing from the present invention
Spirit or essential characteristics in the case where, the present invention can in other forms, structure, arrangement, ratio, and with other components,
Material and component are realized.Without departing from the scope and spirit of the present invention, can to embodiments disclosed herein into
The other deformations of row and change.