Summary of the invention
In order to overcome the deficiencies in the prior art, the invention provides a kind of lamp control device with communication function and control method thereof of simple and reasonable, environmental protection and energy saving.
The technical solution adopted for the present invention to solve the technical problems is:
Have a lamp control device for communication function, comprise the LED light fixture LAN being made up of some nodes, described each node comprises LED light fixture, LED power supply and enters highlighted illumination work pattern or enter the CPU of energy conservation pattern for controlling LED light fixture; Described CPU is connected with motion detector and lan interface module; Described CPU is connected between described LED light fixture and LED power supply; Whether described motion detector is used for surveying LED light fixture region object of which movement, sends object of which movement information in the time having detected object of which movement; Between the CPU of described lan interface module for each node in LED light fixture LAN, communicate by letter.
Further, in described LED light fixture LAN, also comprise central controller, between described central controller and described each node, communicate by letter by lan interface module.
Further, described central controller is connected with control terminal, and described central controller is provided with the internet interface module for communicating by letter with described control terminal.
Further, between described each node and between each node and central controller, adopt optical fiber, wired and/or wireless communication means communication connection.
Further, in the CPU of described each node, store node address code.
Further, the node address code that comprises this node in the information that the CPU of arbitrary node sends to other node in LED light fixture LAN and central controller; The control instruction that described central controller sends also includes node address code.
Further, arbitrary node is received the object of which movement information that 1-20 node being adjacent sends or is received after the highlighted illumination control instruction that central controller sends, the CPU of this node exports highlighted illumination control signal, control the LED light fixture being connected with this CUP and enter highlighted illumination work pattern, CPU carries out default acquiescence delay time simultaneously, and acquiescence delay time is 10-120 second, after acquiescence delay time finishes, CPU exports the control signal of turning on light, and controls LED light fixture and enters energy conservation pattern.
Further, the 20-70% of described LED light fixture power output when power output is highlighted illumination work pattern in the time of energy conservation pattern.
Further, described motion detector is one or more in infrared induction detector, microwave detector or image control detector.
The control method of the above-mentioned lamp control device with communication function comprises the following steps:
Step 1, clock operation.
Step 2, CPU has judged whether lighting time, does not arrive lighting time, returns to step 1, has arrived lighting time, enters step 3.
Step 3, time control switch, time and light-operated switch or manually open general supply, CPU exports highlighted illumination control signal, controls LED light fixture and enters highlighted illumination work pattern, enters step 4.
Step 4, CPU judges whether user has set and enters the energy conservation work pattern time, as set the time that enters energy conservation pattern, enters step 5, otherwise enters step 8.
Step 5, CPU checks clock, before entering energy conservation pattern, CPU exports highlighted illumination control signal, controls LED light fixture in highlighted illumination work pattern, enters step 6.
Step 6, CPU judges whether to receive that central controller sends enters energy conservation mode instruction, enters energy conservation mode instruction as received, enters step 8; Otherwise enter step 7.
Step 7, CPU has judged whether to enter energy conservation mode time, if to entering time of energy conservation pattern, enter step 8; Otherwise return to step 5.
Step 8, CPU closes highlighted illumination control signal, exports the control signal of turning on light, and controls LED light fixture and enters energy conservation pattern, enters step 9.
Step 9, CPU judges whether to receive highlighted control instruction, as received, highlighted control instruction enters step 10, otherwise enters step 13.
Step 10, CPU exports highlighted illumination control signal, controls LED light fixture and enters highlighted illumination work pattern, and CPU carries out acquiescence delay time, and before acquiescence delay time finishes, LED light fixture, in highlighted illumination work pattern, enters step 11.
Step 11, CPU checks clock, enters step 12.
Step 12, CPU has judged whether the time of turning off the light, and as to turning off the light the time, enters step 10 eight, otherwise returns to step 8.
Step 13, CPU judges whether to receive the object of which movement information that 1-20 node being adjacent in LED light fixture LAN sends, as received, object of which movement information returns to step 10, otherwise enters step 14.
Step 14, CPU judges whether motion detector has detected object of which movement in its investigative range, as has detected object of which movement, enters step 10 seven; Otherwise enter step 15.
Step 15, CPU checks clock, enters step 10 six.
Step 10 six, CPU has judged whether the time of turning off the light, and to the time of turning off the light, returns to step 8 as not; Otherwise enter step 10 eight.
Step 10 seven, motion detector detects object of which movement in its search coverage, and CPU sends object operation information to other node and central controller in LED light fixture LAN, returns to step 10.
Step 10 eight, CPU closes turn on light control signal and/or highlighted illumination control signal, turns off the light or time control switch, time and light-operated switch or manually close general supply, turns off the light.
The invention has the beneficial effects as follows: Yi Yiduan highway of the present invention or a street etc. are unit, be a node composition LED light fixture LAN by a LED light fixture in unit, each LED light fixture all includes motion detector and CPU, between each node, can intercom mutually, each node can be communicated by letter with central controller, central controller can be communicated by letter with control terminal, each node in LED light fixture LAN can be realized from main control according to the signal of motion detector, realize centralized Control and realize Long-distance Control according to the signal of control terminal according to the signal of central controller, make LED light fixture realize intelligent opening, close, enter highlighted illumination work pattern or enter energy conservation pattern etc., not only can ensure to go out people and/the illumination needs of high-speed moving object, and can greatly reduce energy consumption, have simple and reasonable, the advantages such as environmental protection and energy saving.
Detailed description of the invention
Referring to figs. 1 through Fig. 6, a kind of lamp control device with communication function, comprise the LED light fixture LAN being made up of some nodes, described each node comprises LED light fixture, LED power supply and enters highlighted illumination work pattern or enter the CPU of energy conservation pattern for controlling LED light fixture; Described CPU is connected with motion detector and lan interface module; Described CPU is connected between described LED light fixture and LED power supply; Whether described motion detector is used for surveying LED light fixture region object of which movement, sends object of which movement information in the time having detected object of which movement; Between the CPU of described lan interface module for each node in LED light fixture LAN, communicate by letter.
Further, in described LED light fixture LAN, also comprise central controller, between described central controller and described each node, communicate by letter by lan interface module. Described central controller is for sending control instruction to part or all of node and receiving the running state information, fault warning information of each node and the feedback information that instruction is carried out.
Further, described central controller is connected with control terminal, and described central controller is provided with the internet interface module for communicating by letter with described control terminal. Described control terminal is used for sending remote control commands.
Further, between described each node and between each node and central controller, adopt optical fiber, wired and/or wireless communication means communication connection.
Further, in the CPU of described each node, store node address code, the node address code that comprises this node in the information that the CPU of described arbitrary node sends to other node in LED light fixture LAN and central controller; The control instruction that described central controller sends also includes node address code.
Further, described arbitrary node is received the object of which movement information that its adjacent 1-20 node sends or is received the highlighted illumination control instruction that central controller sends, the CPU of this node exports highlighted illumination control signal, control the LED light fixture being connected with this CPU and enter highlighted illumination work pattern, CPU carries out default acquiescence delay time simultaneously, acquiescence delay time is 10-120 second, delay function is realized software delay function by the setting of the delay procedure in CPU, and software delay is CPU operation delay procedure. The term of execution of the delay time of acquiescence, LED light fixture is with highlighted illumination work mode operation, highlight illumination; After acquiescence delay time finishes, CPU exports the control signal of turning on light, and controls LED light fixture low power run, low-light level illumination, again enter energy conservation pattern, the 20-70% of described LED light fixture power output when power output is highlighted illumination work pattern in the time of energy conservation pattern. Above-mentioned LED light fixture region refers to the region that this LED light fixture can effectively illuminate. The delay time of default acquiescence is the needs in order to meet snail or object walking LED light fixture highlight illumination when this LED light fixture region.
Further, described motion detector is one or more in infrared induction detector, microwave detector or image control detector. In the time of the need for environment of LED light fixture region, motion detector can be set to one to three, so, the movement detection signal being collected by corresponding motion detector also has one to three, as the movement detection signal 1 in Fig. 3 to Fig. 6, movement detection signal 2, movement detection signal 3, as long as when one of them motion detector has detected object of which movement in its investigative range, CPU sends the object operation information with node address code to other node adjacent in LED light fixture LAN and central controller, and corresponding CPU exports highlighted illumination control signal.
User sets lighting time and turns off the light the time according to season, light fixture environment for use; Open and close general supply can adopt time control switch, light-operated switch or manual control switch etc. When time control switch, light-operated switch or manually open general supply, turn on light control signal and/or highlighted illumination control signal control LED light fixture of CPU output turned on light and/or high power operation.
When having arrived lighting time, open general supply, CPU exports highlighted illumination control signal, controls LED light fixture and turns on light and high power operation, highlight illumination; Meanwhile, CPU checks clock; To time that enters energy conservation pattern of setting or receive entering before energy conservation mode instruction that the central controller of LED light fixture LAN sends, CPU exports highlighted illumination control signal, LED light fixture high power operation, highlighted illumination; Entering after energy conservation pattern, CPU closes highlighted illumination control signal, exports the control signal of turning on light, LED light fixture low power run, low-light level illumination; The time range that user's setting enters energy conservation pattern is generally 1-6 hours.
When entering after energy conservation pattern, when highlighted illumination control instruction that the object of which movement information with node address coding that 1-20 nodes that object of which movement or receive is adjacent in LED light fixture LAN in motion detector detects region send or the central controller of receiving LED light fixture LAN send, CPU exports highlighted illumination control signal, LED light fixture is with highlighted illumination work mode operation, high power operation, LED light fixture highlight illumination, not yet in its search coverage, detected object of which movement at motion detector, as long as but receive the highlighted illumination control instruction that the object operation information with node address coding that 1-20 nodes being adjacent in LED light fixture LAN send or the central controller of receiving LED light fixture LAN are sent, CPU exports highlighted illumination control signal, control LED light fixture and proceed to highlighted illumination work pattern by energy conservation pattern.
When the moving object that motion detector detects region leave or LED light fixture region in object remain static or do not receive the highlighted illumination control instruction that the object of which movement information with node address coding that 1-20 nodes that LED lamp LAN is adjacent send or the central controller of not receiving LED light fixture LAN are sent, CPU carries out the time of acquiescence countdown time delay, before the time of the countdown time delay of giving tacit consent to finishes, CPU exports highlighted illumination control signal, LED light fixture is with highlighted illumination work mode operation, highlight illumination; After the time of the countdown time delay of giving tacit consent to finishes, CPU closes highlighted illumination control signal, exports the control signal of turning on light, and LED light fixture enters energy conservation pattern again, low-light level illumination.
The control step of lamp control device that the present invention has communication function is as follows:
Step 1, clock operation.
Step 2, CPU has judged whether lighting time, does not arrive lighting time, returns to step 1, has arrived lighting time, enters step 3.
Step 3, time control switch, time and light-operated switch or manually open general supply, CPU exports highlighted illumination control signal, controls LED light fixture and enters highlighted illumination work pattern, enters step 4.
Step 4, CPU judges whether user has set and enters the energy conservation work pattern time, as set the time that enters energy conservation pattern, enters step 5, otherwise enters step 8.
Step 5, CPU checks clock, before entering energy conservation pattern, CPU exports highlighted illumination control signal, controls LED light fixture in highlighted illumination work pattern, enters step 6.
Step 6, CPU judges whether to receive that central controller sends enters energy conservation mode instruction, enters energy conservation mode instruction as received, enters step 8; Otherwise enter step 7.
Step 7, CPU has judged whether to enter energy conservation mode time, if to entering time of energy conservation pattern, enter step 8; Otherwise return to step 5.
Step 8, CPU closes highlighted illumination control signal, exports the control signal of turning on light, and controls LED light fixture and enters energy conservation pattern, enters step 9.
Step 9, CPU judges whether to receive highlighted control instruction, as received, highlighted control instruction enters step 10, otherwise enters step 13.
Step 10, CPU exports highlighted illumination control signal, controls LED light fixture and enters highlighted illumination work pattern, and CPU carries out acquiescence delay time, and before acquiescence delay time finishes, LED light fixture, in highlighted illumination work pattern, enters step 11.
Step 11, CPU checks clock, enters step 12.
Step 12, CPU has judged whether the time of turning off the light, and as to turning off the light the time, enters step 10 eight, otherwise returns to step 8.
Step 13, CPU judges whether to receive the object of which movement information that 1-20 node being adjacent in LED light fixture LAN sends, as received, object of which movement information returns to step 10, otherwise enters step 14.
Step 14, CPU judges whether motion detector has detected object of which movement in its investigative range, as has detected object of which movement, enters step 10 seven; Otherwise enter step 15.
Step 15, CPU checks clock, enters step 10 six.
Step 10 six, CPU has judged whether the time of turning off the light, and to the time of turning off the light, returns to step 8 as not; Otherwise enter step 10 eight.
Step 10 seven, motion detector detects object of which movement in its search coverage, and CPU sends object operation information to other node and central controller in LED light fixture LAN, returns to step 10.
Step 10 eight, CPU closes turn on light control signal and/or highlighted illumination control signal, turns off the light or time control switch, time and light-operated switch or manually close general supply, turns off the light.
Referring to Fig. 3 to Fig. 4, toggle switch SW, resistance R 30 and resistance R 31 form timing setting peripheral circuit, and toggle switch SW, resistance R 30, resistance R 31 can be set 4 groups of different timings. Such as: 00,01,10,11 four groups, corresponding 1 hour, 2 hours, 3 hours and 4 hours respectively.
The PA0 pin of CPU, PA1 pin, PA2 pin receive respectively the movement detection signal that motion detector sends: movement detection signal 1, movement detection signal 2, movement detection signal 3.
The PA3 of CPU, PB0 pin send the object operation information with node address coding by LED light fixture LAN interface module to other node in LAN, receive the object operation information with node address code that in LED light fixture LAN, other node sends and receive the instruction that the central control system of LED light fixture LAN sends.
The difference of Fig. 3 and Fig. 4 is: in Fig. 3, the PB6 pin output pulse width modulation signal of CPU is as the control signal of turning on light, highlighted illumination control signal, the control signal of turning on light is low duty ratio pulse-width signal, highlighted illumination control signal is high duty ratio pulse-width signal, the dutycycle of the control signal of turning on light is 20-70%, and the dutycycle of highlighted illumination control signal is more than 90%; In Fig. 4, the PB7 pin of CPU is exported the control signal of turning on light, and the PB6 pin of CPU is exported highlighted illumination control signal。
Referring to Fig. 5, toggle switch SW, resistance R 30 and resistance R 31 form timing setting peripheral circuit, and toggle switch SW, resistance R 30, resistance R 31 can be set four groups of different timings.
The PC0 pin of CPU, PB5 pin, PB4 pin receive respectively the movement detection signal that motion detector sends: movement detection signal 1, movement detection signal 2, movement detection signal 3. The PA4 pin of CPU, the communication module of PA5 pin electrical connection A1 light fixture; The PA2 pin of CPU, the communication module of PA3 pin electrical connection A2 light fixture; The PA0 pin of CPU, the communication module of PA1 pin electrical connection A3 light fixture; The PC1 pin of CPU, the communication module of PC2 pin electrical connection B1 light fixture; The PC3 pin of CPU, the communication module of PC4 pin electrical connection B2 light fixture; The PC5 pin of CPU, the communication module of PD0 pin electrical connection B3 light fixture. The PB2 pin of CPU is electrically connected with LED power supply, exports highlighted illumination control signal。The PB3 pin of CPU is electrically connected with LED power supply, exports the control signal of turning on light。
CPU connects 1-3 motion detection modules, as long as when one of them motion detector has detected object of which movement in its investigative range, CPU exports highlighted illumination control signal, LED light fixture high power operation, highlighted illumination, upstream light fixture A1 to A3 and downstream light fixture B1 to B3 send object operation information to CPU simultaneously, upstream LED light fixture A1 to A3 and downstream LED light fixture B1 to B3 receive object of which movement information, upstream light fixture A1 to A3 and downstream light fixture B1 to B3 are in the time that moving object not yet arrives its search coverage, CPU controls LED light fixture and transfers highlighted illumination work pattern to by energy conservation pattern in advance, by that analogy, in LED light fixture LAN, the motion detector of arbitrary light fixture detects object of which movement in its search coverage, CPU exports highlighted illumination control signal, LED light fixture high power operation, highlighted illumination, simultaneously CPU upstream three light fixtures adjacent with downstream send object of which movement information, upstream and downstream light fixture is received object of which movement information, CPU controls light fixture and transfers highlighted mode of operation to by energy conservation pattern. in this application scheme, send object operation information except swimming up and down each adjacent three LED light fixtures, can also select to swim up and down each one to two or more than three adjacent light fixture transmission object operation information according to the travel speed of the situation of road and motor vehicle.
Referring to Fig. 6, toggle switch SW, resistance R 30 and resistance R 31 form timing setting peripheral circuit, and toggle switch SW, resistance R 30, resistance R 31 can be set 4 groups of different timings.
The PC0 pin of CPU, PB5 pin, PB4 pin receive respectively the movement detection signal that motion detector sends: movement detection signal 1, movement detection signal 2, movement detection signal 3. The PA4 pin of CPU, the communication module of PA5 pin electrical connection A1 light fixture; The PA2 pin of CPU, the communication module of PA3 pin electrical connection A2 light fixture; The PA0 pin of CPU, the communication module of PA1 pin electrical connection A3 light fixture; The PC1 pin of CPU, the communication module of PC2 pin electrical connection B1 light fixture; The PC3 pin of CPU, the communication module of PC4 pin electrical connection B2 light fixture; The PC5 pin of CPU, the communication module of PD0 pin electrical connection B3 light fixture. The PB2 pin of CPU is electrically connected with LED power supply, exports turn on light control signal or highlighted illumination control signal。
CPU connects 1-3 motion detection modules, as long as when one of them motion detector has detected object of which movement in its investigative range, CPU exports highlighted illumination control signal, LED light fixture high power operation, highlighted illumination, upstream light fixture A1 to A3 and downstream light fixture B1 to B3 send object operation information to CPU simultaneously, upstream LED light fixture A1 to A3 and downstream LED light fixture B1 to B3 receive object of which movement information, upstream light fixture A1 to A3 and downstream light fixture B1 to B3 are in the time that moving object not yet arrives its search coverage, CPU controls LED light fixture and transfers highlighted illumination work pattern to by energy conservation pattern in advance, by that analogy, in LED light fixture LAN, the motion detector of arbitrary light fixture detects object of which movement in its search coverage, CPU exports highlighted control signal, LED light fixture high power operation, highlighted illumination, simultaneously CPU upstream three light fixtures adjacent with downstream send object of which movement information, upstream and downstream light fixture is received object of which movement information, CPU controls light fixture and transfers highlighted mode of operation to by energy conservation pattern. in this application scheme, send object operation information except swimming up and down each adjacent three LED light fixtures, can also select to swim up and down each one to two or more than three adjacent light fixture transmission object operation information according to the travel speed of the situation of road and motor vehicle.
The difference of Fig. 5 and Fig. 6 is: in Fig. 5, the PB3 pin of CPU is exported the control signal of turning on light, and the PB2 pin of CPU is exported highlighted illumination control signal; In Fig. 6, the PB2 pin output pulse width modulation signal of CPU is as control signal and the highlighted illumination control signal of turning on light, the control signal of turning on light is low duty ratio pulse-width signal, highlighted illumination control signal is high duty ratio pulse-width signal, the dutycycle of the control signal of turning on light is 20-70%, and the dutycycle of highlighted illumination control signal is more than 90%。
The present invention has realized a kind of with low cost, the intelligent lighting that reliability is high, save electric energy scheme, LED light fixture is formed to LED light fixture LAN on main trunk road and highway, a LED light fixture in LED light fixture LAN is a node, a light fixture can have more than one motion detector, when the motion detector of the LED light fixture in LAN detects moving object in its search coverage, LED light fixture sends the object of which movement information with node address coding in LAN, even if the motion detector of LED light fixture does not also detect object of which movement in its search coverage, as long as LED light fixture is received when 1-20 nodes that are adjacent send the object of which movement information of encoding with node address, when LED light fixture does not also sail its field of illumination in moving object, in advance transfer highlighted illumination work pattern to by energy conservation pattern, in the highway or section, street covering at LED light fixture LAN, even the motor vehicle in advancing at a high speed, can not proceed to energy conservation mode operation the late into the night because of LED light fixture, the middle vehicle of running at high speed can not obtain highlight illumination. when motor-driven vehicle going, because front LED light fixture is before motor vehicle sails its field of illumination into, LED light fixture just proceeds to highlighted illumination work pattern from energy conservation pattern, when the light that LED light fixture sends changes from weak to strong because distant, can not produce and dazzle the eyes stimulation driver, ensure driving safety, both saved electric energy, can ensure again people's safety trip.
Above embodiment has described general principle of the present invention; the personnel of professional skill field should understand; the present invention is not restricted to the described embodiments; description in above-described embodiment and description just illustrates principle of the present invention; without departing from the spirit and scope of the present invention; the present invention also has various changes and modifications, within these changes and improvements all fall into the scope of claim protection of the present invention.