The content of the invention
For overcome the deficiencies in the prior art, the present invention provides a kind of simple and reasonable, environmental protection and energy saving with communication
The lamp control device and its control method of function.
The technical solution adopted by the present invention to solve the technical problems is:
A kind of lamp control device with communication function, it is described including the LED lamp LAN being made of several nodes
Each node includes LED lamp, LED power and for LED lamp to be controlled to enter illumination highlights operating mode or enters energy saving work
The CPU of operation mode;The CPU is connected with motion detector and lan interface module;The CPU is connected to the LED lamp
Between LED power;The motion detector is being detected with for detecting whether LED lamp region has object of which movement
Object of which movement information is sent during object of which movement;The lan interface module for each node in LED lamp LAN CPU it
Between communicate.
Further, central controller, the central controller and each node are further included in the LED lamp LAN
Between communicated by lan interface module.
Further, the central controller is connected with control terminal, the central controller be provided with for the control
The internet interface module of terminal communication processed.
Further, between each node and between each node and central controller using optical fiber, wiredly and/or wirelessly
Means of communication communicates to connect.
Further, the CPU memories of each node contain node address code.
Further, the information that other nodes and central controller of the CPU of any node into LED lamp LAN are sent
In include the node address code of the node;The control instruction that the central controller is sent also includes node address code.
Further, any node receives the object of which movement information or receive central control that 1-20 node adjacent thereto send
After the illumination highlights control instruction that device processed is sent, the CPU output illumination highlights control signals of the node, control is connected with the CUP
LED lamp enter illumination highlights operating mode, while CPU performs default acquiescence delay time, and acquiescence delay time is 10-
120 seconds, after giving tacit consent to delay time, CPU exported control signal of turning on light, and control LED lamp enters saving operation mode.
Further, the LED lamp in saving operation mode output power be illumination highlights operating mode when output work
The 20-70% of rate.
Further, the motion detector is in infrared induction detector, microwave detector or image control detector
It is one or more.
The control method of the above-mentioned lamp control device with communication function comprises the following steps:
Step 1, clock operation.
Step 2, CPU judge whether to lighting time, not to lighting time, then return to step one, to when turning on light
Between, then enter step three.
Step 3, time control switch, time and light-operated switch or manually opens general supply, CPU output illumination highlights controls
Signal processed, control LED lamp enter illumination highlights operating mode, enter step four.
Step 4, CPU judge whether user was set into the saving operation mode working time, such as set into energy saving
The time of operating mode then enters step five, otherwise enters step eight.
Step 5, CPU check clock, before saving operation mode is entered, CPU output illumination highlights control signals, and control
LED lamp processed is in illumination highlights operating mode, enters step six.
Step 6, CPU judge whether that receiving the saving operation mode that enters that central controller is sent instructs, and such as receives entrance
Saving operation mode instructs, then enters step eight;Otherwise seven are entered step.
Step 7, CPU judge whether to the saving operation mode time is entered, if arrived into saving operation mode
Time then enters step eight;Otherwise return to step five.
Step 8, CPU close illumination highlights control signal, export control signal of turning on light, and control LED lamp enters energy saving work
Operation mode enters step nine.
Step 9, CPU judge whether to receive highlighted control instruction, enters step ten if receiving highlighted control instruction, no
Then enter step 13.
Step 10, CPU output illumination highlights control signals, control LED lamp enter illumination highlights operating mode, and CPU is held
Row acquiescence delay time, before acquiescence delay time terminates, LED lamp is in illumination highlights operating mode, enters step ten
One.
Step 11, CPU check clock, enter step 12.
Step 12, CPU judges whether to turning off the light the time, has such as arrived the time of turning off the light, has then entered step 18, otherwise return
Return step 8.
Step 13, CPU judge whether to receive the object that 1-20 node adjacent thereto in LED lamp LAN is sent
Movable information, return to step ten, otherwise enters step 14 if receiving object of which movement information.
Step 14, CPU judge whether motion detector is detected with object of which movement in its investigative range, such as detect
There is object of which movement, then enter step 17;Otherwise 15 are entered step.
Step 15, CPU check clock, enter step 16.
Step 10 six, CPU judge whether to turning off the light the time, does not have such as to the time of turning off the light, then return to step eight;Otherwise into
Enter step 10 eight.
Step 10 seven, motion detector detect object of which movement in its search coverage, and CPU is into LED lamp LAN
Other nodes and central controller send object operation information, return to step ten.
Step 10 eight, CPU closings are turned on light control signal and/or illumination highlights control signal, turn off the light or time control switch,
Time and light-operated switch manually close general supply, turn off the light.
The beneficial effects of the invention are as follows:The present invention is in units of one section of highway or a street etc., by one in unit
LED lamp forms LED lamp LAN for a node, and each LED lamp includes motion detector and CPU, each node
Between can be in communication with each other, each node can communicate with central controller, and central controller can communicate with control terminal, LED
Each node in lamps and lanterns LAN can realize autonomous control according to the signal of motion detector, according to the signal of central controller
Realize centralized Control and according to the signal of control terminal realize remote control, make LED lamp realize intelligent opening, closing, into
Enter illumination highlights operating mode or enter saving operation mode etc., be not only able to ensure the photograph of outgoing people and/high-speed moving object
Bright needs, and energy consumption can greatly be reduced, there are simple and reasonable, environmental protection and energy saving.
Specific embodiment
Referring to figs. 1 to Fig. 6, a kind of lamp control device with communication function, including the LED light being made of several nodes
Has LAN, each node includes LED lamp, LED power and for LED lamp to be controlled to enter illumination highlights operating mode
Or the CPU into saving operation mode;The CPU is connected with motion detector and lan interface module;The CPU is connected to
Between the LED lamp and LED power;The motion detector is used to detect whether LED lamp region has object of which movement,
Object of which movement information is sent when being detected with object of which movement;The lan interface module is for each in LED lamp LAN
It communicates between the CPU of node.
Further, central controller, the central controller and each node are further included in the LED lamp LAN
Between communicated by lan interface module.The central controller is used to send control instruction to part or all of node and connect
Receive the feedback information that the running state information, fault warning information and instruction of each node perform.
Further, the central controller is connected with control terminal, the central controller be provided with for the control
The internet interface module of terminal communication processed.The control terminal is used to send remote control commands.
Further, between each node and between each node and central controller using optical fiber, wiredly and/or wirelessly
Means of communication communicates to connect.
Further, the CPU memories of each node contain node address code, and the CPU of any node is to LED lamp office
The node address code for including the node in the information that other nodes and central controller in the net of domain are sent;The central controller
The control instruction sent also includes node address code.
Further, any node receives the object of which movement information or receive center that its 1-20 adjacent node sends
The illumination highlights control instruction that controller is sent, the CPU output illumination highlights control signals of the node, control are connected with the CPU
LED lamp enter illumination highlights operating mode, while CPU performs default acquiescence delay time, and acquiescence delay time is 10-
120 seconds, delay function realized software delay function by the setting of the delay procedure in CPU, and software delay prolongs for CPU operations
Shi Chengxu.During the delay time of acquiescence performs, LED lamp is run with illumination highlights operating mode, highlight illumination;Acquiescence
After delay time, CPU exports control signal of turning on light, and controls LED lamp low power run, and low-light level illumination is again introduced into
Saving operation mode, the LED lamp in saving operation mode output power be illumination highlights operating mode when output power
20-70%.Above-mentioned LED lamp region refers to the region that the LED lamp can effectively illuminate.The delay of default acquiescence
Time is to meet snail or object walking the LED lamp highlight illumination at the LED lamp region
It needs.
Further, the motion detector is in infrared induction detector, microwave detector or image control detector
It is one or more.When the environment of LED lamp region needs, motion detector could be provided as one to three, then, by
The movement detection signal that corresponding motion detector collects also has one to three, as in Fig. 3 to Fig. 6 movement detection signal 1,
Movement detection signal 2, movement detection signal 3, as long as one of motion detector is detected with object in its investigative range
During movement, then other nodes adjacent into LED lamp LAN CPU and central controller send the object with node address code
Running body information, corresponding CPU export illumination highlights control signal.
User is according to season, lamps and lanterns use environment setting lighting time and turns off the light the time;When open and close general supply may be employed
Between control switch, light-operated switch or manual control switch etc..General supply is opened when time control switch, light-operated switch or manually, CPU is defeated
Go out to turn on light control signal and/or illumination highlights control signal control LED lamp is turned on light and/or high power operation.
When having arrived lighting time, general supply is opened, CPU output illumination highlights control signals, control LED lamp is turned on light and height
Power operation, highlight illumination;At the same time, CPU checks clock;In time to setting into saving operation mode or
Receive that the central controller of LED lamp LAN sends into before saving operation mode instruction, CPU output illumination highlights controls
Signal, LED lamp high power operation, illumination highlights;After saving operation mode is entered, CPU closes illumination highlights control signal,
Export control signal of turning on light, LED lamp low power run, low-light level illumination;User is set into the time of saving operation mode
Scope be generally 1-6 it is small when.
After into saving operation mode, when motion detector detects object of which movement in region or receives LED light
The object of which movement information encoded with node address or receive LED that 1-20 nodes adjacent thereto are sent in tool LAN
During the illumination highlights control instruction that the central controller of lamps and lanterns LAN is sent, CPU output illumination highlights control signals, LED light
Tool is run with illumination highlights operating mode, high power operation, LED lamp highlight illumination, i.e., in motion detector not yet at it
Object of which movement is detected in search coverage, is sent but as long as receiving 1-20 nodes adjacent thereto in LED lamp LAN
With node address coding object operation information or receive the illumination highlights that the central controller of LED lamp LAN is sent
Control instruction, CPU output illumination highlights control signals, control LED lamp are transferred to illumination highlights Working mould by saving operation mode
Formula.
When motion detector detect region moving object leave or LED lamp region in object be in
Stationary state does not receive the object with node address coding that LED light LAN 1-20 nodes adjacent thereto are sent
Body movable information does not receive the illumination highlights control instruction that the central controller of LED lamp LAN is sent, then CPU is performed
Give tacit consent to the time of countdown delay, before the time of the countdown delay of acquiescence terminates, CPU output illumination highlights control signals,
LED lamp is run with illumination highlights operating mode, highlight illumination;After the time being delayed in the countdown of acquiescence, CPU is closed
Illumination highlights control signal is closed, exports control signal of turning on light, LED lamp is again introduced into saving operation mode, low-light level illumination.
The rate-determining steps of lamp control device of the present invention with communication function are as follows:
Step 1, clock operation.
Step 2, CPU judge whether to lighting time, not to lighting time, then return to step one, to when turning on light
Between, then enter step three.
Step 3, time control switch, time and light-operated switch or manually opens general supply, CPU output illumination highlights controls
Signal processed, control LED lamp enter illumination highlights operating mode, enter step four.
Step 4, CPU judge whether user was set into the saving operation mode working time, such as set into energy saving
The time of operating mode then enters step five, otherwise enters step eight.
Step 5, CPU check clock, before saving operation mode is entered, CPU output illumination highlights control signals, and control
LED lamp processed is in illumination highlights operating mode, enters step six.
Step 6, CPU judge whether that receiving the saving operation mode that enters that central controller is sent instructs, and such as receives entrance
Saving operation mode instructs, then enters step eight;Otherwise seven are entered step.
Step 7, CPU judge whether to the saving operation mode time is entered, if arrived into saving operation mode
Time then enters step eight;Otherwise return to step five.
Step 8, CPU close illumination highlights control signal, export control signal of turning on light, and control LED lamp enters energy saving work
Operation mode enters step nine.
Step 9, CPU judge whether to receive highlighted control instruction, enters step ten if receiving highlighted control instruction, no
Then enter step 13.
Step 10, CPU output illumination highlights control signals, control LED lamp enter illumination highlights operating mode, and CPU is held
Row acquiescence delay time, before acquiescence delay time terminates, LED lamp is in illumination highlights operating mode, enters step ten
One.
Step 11, CPU check clock, enter step 12.
Step 12, CPU judges whether to turning off the light the time, has such as arrived the time of turning off the light, has then entered step 18, otherwise return
Return step 8.
Step 13, CPU judge whether to receive the object that 1-20 node adjacent thereto in LED lamp LAN is sent
Movable information, return to step ten, otherwise enters step 14 if receiving object of which movement information.
Step 14, CPU judge whether motion detector is detected with object of which movement in its investigative range, such as detect
There is object of which movement, then enter step 17;Otherwise 15 are entered step.
Step 15, CPU check clock, enter step 16.
Step 10 six, CPU judge whether to turning off the light the time, does not have such as to the time of turning off the light, then return to step eight;Otherwise into
Enter step 10 eight.
Step 10 seven, motion detector detect object of which movement in its search coverage, and CPU is into LED lamp LAN
Other nodes and central controller send object operation information, return to step ten.
Step 10 eight, CPU closings are turned on light control signal and/or illumination highlights control signal, turn off the light or time control switch,
Time and light-operated switch manually close general supply, turn off the light.
Referring to Fig. 3 to Fig. 4, toggle switch SW, resistance R30 and resistance R31 composition timing setting peripheral circuits, toggle switch
SW, resistance R30, resistance R31 can set 4 groups of different timings.Such as:00,01,10,11 four group, it is small that 1 is corresponded to respectively
When, 2 it is small when, 3 it is small when and 4 it is small when.
PA0 feet, PA1 feet, the PA2 feet of CPU receives the movement detection signal of motion detector transmission respectively:Motion detection is believed
Number 1, movement detection signal 2, movement detection signal 3.
By LED lamp local area network interface module, other node transmissions into local area network carry PA3, PB0 foot of CPU
The object operation information of node address coding, receive that other nodes in LED lamp LAN send with node address code
The instruction that the central control system of object operation information and reception LED lamp LAN is sent.
Fig. 3 and Fig. 4 difference lies in:The PB6 foot output pulse widths modulated signal of CPU is as turn on light control signal, height in Fig. 3
Bright illumination control signal, control signal of turning on light are low duty ratio pulse-width signal, and illumination highlights control signal is high duty ratio
Pulse-width signal, the duty cycle for control signal of turning on light is 20-70%, and the duty cycle of illumination highlights control signal is more than 90%;
In Fig. 4, the PB7 feet of CPU export control signal of turning on light, the PB6 feet output illumination highlights control signal of CPU.
Referring to Fig. 5, toggle switch SW, resistance R30 and resistance R31 composition timing setting peripheral circuits, toggle switch SW, electricity
Resistance R30, resistance R31 can set four groups of different timings.
PC0 feet, PB5 feet, the PB4 feet of CPU receives the movement detection signal of motion detector transmission respectively:Motion detection is believed
Number 1, movement detection signal 2, movement detection signal 3.The PA4 feet of CPU, the communication module of PA5 feet electrical connection A1 lamps and lanterns;CPU's
The communication module of PA2 feet, PA3 feet electrical connection A2 lamps and lanterns;The PA0 feet of CPU, the communication module of PA1 feet electrical connection A3 lamps and lanterns;CPU
PC1 feet, PC2 feet electrical connection B1 lamps and lanterns communication module;The PC3 feet of CPU, the communication module of PC4 feet electrical connection B2 lamps and lanterns;
The PC5 feet of CPU, the communication module of PD0 feet electrical connection B3 lamps and lanterns.The PB2 feet of CPU are electrically connected with LED power, export illumination highlights
Control signal.The PB3 feet of CPU are electrically connected with LED power, export control signal of turning on light.
1-3 motion detection modules of CPU connections, as long as one of motion detector detects in its investigative range
When having object of which movement, then CPU outputs illumination highlights control signal, LED lamp high power operation, illumination highlights, CPU are upward simultaneously
It swims lamps and lanterns A1 to A3 and downstream lamps and lanterns B1 to B3 and sends object operation information, upstream LED lamp A1 to A3 and downstream LED lamp B1
Object of which movement information is received to B3, upstream lamps and lanterns A1 to A3 and downstream lamps and lanterns B1 to B3 not yet reach its detecting area in moving object
During domain, CPU control LED lamps switch to illumination highlights operating mode by saving operation mode in advance, and so on, LED lamp office
The motion detector of any lamps and lanterns detects object of which movement, CPU output illumination highlights controls in its search coverage in the net of domain
Three signal, LED lamp high power operation, illumination highlights, while CPU upstream adjacent with downstream lamps and lanterns send object of which movement
Information, upstream and downstream lamps and lanterns receive object of which movement information, and CPU controls lamps and lanterns to switch to highlighted Working mould by saving operation mode
Formula.Object operation information is sent except swimming each adjacent three LED lamps up and down in this application scheme, it can also be according to road
The travel speed selection of situation and motor vehicle swim more than each one to two or three adjacent lamps and lanterns up and down and send object and run
Information.
Referring to Fig. 6, toggle switch SW, resistance R30 and resistance R31 composition timing setting peripheral circuits, toggle switch SW, electricity
Resistance R30, resistance R31 can set 4 groups of different timings.
PC0 feet, PB5 feet, the PB4 feet of CPU receives the movement detection signal of motion detector transmission respectively:Motion detection is believed
Number 1, movement detection signal 2, movement detection signal 3.The PA4 feet of CPU, the communication module of PA5 feet electrical connection A1 lamps and lanterns;CPU's
The communication module of PA2 feet, PA3 feet electrical connection A2 lamps and lanterns;The PA0 feet of CPU, the communication module of PA1 feet electrical connection A3 lamps and lanterns;CPU
PC1 feet, PC2 feet electrical connection B1 lamps and lanterns communication module;The PC3 feet of CPU, the communication module of PC4 feet electrical connection B2 lamps and lanterns;
The PC5 feet of CPU, the communication module of PD0 feet electrical connection B3 lamps and lanterns.The PB2 feet of CPU are electrically connected with LED power, export control of turning on light
Signal or illumination highlights control signal.
1-3 motion detection modules of CPU connections, as long as one of motion detector detects in its investigative range
When having object of which movement, then CPU outputs illumination highlights control signal, LED lamp high power operation, illumination highlights, CPU are upward simultaneously
It swims lamps and lanterns A1 to A3 and downstream lamps and lanterns B1 to B3 and sends object operation information, upstream LED lamp A1 to A3 and downstream LED lamp B1
Object of which movement information is received to B3, upstream lamps and lanterns A1 to A3 and downstream lamps and lanterns B1 to B3 not yet reach its detecting area in moving object
During domain, CPU control LED lamps switch to illumination highlights operating mode by saving operation mode in advance, and so on, LED lamp office
The motion detector of any lamps and lanterns detects object of which movement in its search coverage in the net of domain, and CPU outputs highlight control signal,
Three LED lamp high power operation, illumination highlights, while CPU upstream adjacent with downstream lamps and lanterns send object of which movement information,
Upstream and downstream lamps and lanterns receive object of which movement information, and CPU controls lamps and lanterns to switch to highlighted operating mode by saving operation mode.It should
Send object operation information except swimming each adjacent three LED lamps up and down in scheme, can also according to the situation of road and
The travel speed selection of motor vehicle swims each one to two or three or more adjacent lamps and lanterns and sends object operation information up and down.
Fig. 5 and Fig. 6 difference lies in:The PB3 feet of CPU export control signal of turning on light in Fig. 5, and the PB2 feet output of CPU is highlighted
Illumination control signal;The PB2 foot output pulse widths modulated signal of CPU is as control signal and the illumination highlights control letter of turning on light in Fig. 6
Number, control signal of turning on light is low duty ratio pulse-width signal, and illumination highlights control signal is high duty ratio pulse-width signal,
The duty cycle for control signal of turning on light is 20-70%, and the duty cycle of illumination highlights control signal is more than 90%.
The present invention realizes a kind of of low cost, the high intelligent lighting of reliability, saving electric energy scheme, i.e., in main trunk road
LED lamp is formed into LED lamp LAN on highway, a LED lamp in LED lamp LAN is a node, one
Small cup lamps and lanterns can be there are one more than motion detector, and the motion detector of the LED lamp in LAN is visited in its search coverage
When measuring moving object, LED lamp sends the object of which movement information with node address coding in LAN, even if LED light
The motion detector of tool detects object of which movement not yet in its search coverage, if LED lamp receive adjacent thereto 1-
When 20 nodes send the object of which movement information with node address coding, LED lamp drives into its photograph not yet in moving object
During the domain of area pellucida, illumination highlights operating mode is switched to by saving operation mode in advance, highway or street in the covering of LED lamp LAN
In road segment segment, even the motor vehicle in advancing at a high speed, saving operation mode operation will not be all transferred to because of the LED lamp late into the night,
Middle vehicle of running at high speed cannot obtain highlight illumination.During motor-driven vehicle going, since front LED lamp in motor vehicle drives into its photograph
Before the domain of area pellucida, LED lamp has just been transferred to illumination highlights operating mode from saving operation mode, the light that LED lamp is sent by
It is weak when becoming strong because distant, driver will not be generated and dazzle the eyes stimulations, guarantee driving safety is not only saved electric energy, but also can be protected
Hinder the safety trip of people.
Above embodiment describes the basic principle of the present invention, and the personnel of professional skill field should understand, this hair
Bright to be not restricted to the described embodiments, the description in above embodiments and description merely illustrates the principles of the invention, and is not taking off
On the premise of from spirit and scope of the invention, various changes and modifications of the present invention are possible, these changes and improvements both fall within this
Within the protective scope of the claims of invention.