A kind of dimming LED (Light Emitting Diode) illuminating lamp and light modulation implementation method thereof
Technical field
The present invention relates to a kind of dimming LED (Light Emitting Diode) illuminating lamp and light modulation implementation method thereof.
Background technology
Publication number is that the Chinese utility model patent of CN 200952693Y (patent No. is ZL 200620107961.3) discloses a kind of " compact remote control light modulating energy-saving lamp ", it is assembled into one remote control circuit plate and electricity-saving lamp, by the needs of manual remote controller according to oneself, the brightness of illumination of remote control control electricity-saving lamp, its technical scheme is: it comprises energy-conservation lamp housing, remote control circuit plate, power saving fluorescent lamps and remote controller, and the remote control circuit plate is positioned at the signal input part of energy-conservation lamp housing and remote control circuit partitioned signal output termination power saving fluorescent lamps.The electricity-saving lamp of the above-mentioned type, its light-modulating mode is to adopt the remote controller light modulation, transmitter module is relative in twos with receiver module, when have no occluder, the remote control receiver module has the signal of characteristic frequency to export to control circuit always, its specific frequency is exactly the tranmitting frequency of remote-control transmitting module, when in case shelter is arranged, the remote control receiver module does not just have signal output, and at this moment, remote control circuit picks up counting, when also not having the signal of reception above the regular hour, remote control circuit carries out light modulation with certain speed, knows that shelter leaves, the fixing current brightness of remote controller control electricity-saving lamp; It needs additionally to increase a remote controller, and the remote control receiver module needs in running order just can detecting whether the remote-control transmitting signal is arranged all the time, and in addition, the interference free performance of this class remote control light modulating is very poor.
Summary of the invention
First technical problem to be solved by this invention be at above-mentioned prior art provide a kind of light-modulating mode to be different from prior art, can effectively reduce the power consumption of remote-control transmitting module, a kind of dimming LED (Light Emitting Diode) illuminating lamp that prolongs its useful life.
Second technical problem to be solved by this invention provides a kind of light modulation implementation method of dimming LED (Light Emitting Diode) illuminating lamp.
The present invention solves the technical scheme that above-mentioned first technical problem adopts: this dimming LED (Light Emitting Diode) illuminating lamp, comprise housing, be provided with led module in the housing, be used to drive the LED driver module and the power module of described led module, it is characterized in that: the wireless signal receiver module that also comprises wireless signal transmitting module in the described housing and match and use with described wireless signal transmitting module, the control module that links to each other with the wireless signal receiver module with described wireless signal transmitting module, described power module links to each other with described control module, and described control module links to each other with described LED driver module.
Described wireless signal transmitting module is an infrared transmission module, described wireless signal receiver module is an infrared receiving module, described control module is a singlechip controller, the VSS pin of this singlechip controller links to each other with the cathode output end of described power module, the VDD pin of singlechip controller links to each other and links to each other with the cathode output end of described power module, and an I/O pin of singlechip controller links to each other with described LED driver module after connecting a resistance; Described infrared transmission module comprises infrared transmitting tube, first triode, first resistance, second resistance, the 3rd resistance, first end of described first resistance links to each other with the 2nd I/O pin of described singlechip controller, second end of described first resistance links to each other with the base stage of described first triode, the emitter of described first triode links to each other with the cathode output end of described power module, the collector electrode of described first triode links to each other with first end of described second resistance, second end of described second resistance links to each other with the anode of described infrared transmitting tube, the negative electrode of described infrared transmitting tube links to each other with the cathode output end of described power module, and the two ends of described the 3rd resistance are connected to the two ends of described second resistance; Described infrared receiving module comprises infrared receiving tube, second triode, first electric capacity, second electric capacity, the 3rd electric capacity, the 4th resistance, the 5th resistance, the 6th resistance, the 7th resistance, the 8th resistance, first end of described the 4th resistance links to each other with the 3rd I/O pin of singlechip controller, second end of described the 4th resistance links to each other with the collector electrode of described second triode, the emitter of described second triode links to each other with the cathode output end of described power module, the base stage of described second triode links to each other with first end of second electric capacity, second end of second electric capacity links to each other with first end of described infrared receiving tube, second end of described infrared receiving tube links to each other with the cathode output end of described power module, the two ends of described the 5th resistance are connected between the base stage and emitter of described second triode, the two ends of described the 6th resistance are connected between the base stage and collector electrode of described second triode, first end of described the 7th resistance links to each other with the collector electrode of described second triode, second end of described the 7th resistance links to each other with the cathode output end of described power module, the two ends of described first electric capacity are connected between the cathode output end of first end of the 4th resistance and described power module, the two ends of described the 3rd electric capacity are connected to the two ends of described infrared receiving tube, first end of described the 8th resistance links to each other with the cathode output end of described power module, and second end of described the 8th resistance links to each other with first end of described infrared receiving tube.
The present invention solves above-mentioned second technical scheme that technical problem adopted: the light modulation implementation method of this dimming LED (Light Emitting Diode) illuminating lamp is characterized in that: described singlechip controller is realized light modulation to led module by following steps:
Step 1, output control signal are given infrared transmission module, open infrared transmitting tube;
Whether step 2, detection infrared receiving module have infrared received signal;
Step 3, output control signal are given infrared transmission module, close infrared transmitting tube;
Step 4, repeat above-mentioned steps one,, judge that then this infrared received signal is effective, otherwise be judged as invalid signals if N continuous time detects infrared receiving module infrared received signal is arranged to step 3 N time; If be invalid signals, return step 1 behind the Preset Time of delaying time; If be useful signal, change next step over to;
Step 5, judge whether be used to control the control switch whether the LED driver module open or turn-off opens, if, change step 6 over to for opening; If, change step 7 over to for closing;
Step 6, judge that whether the time of current infrared received signal surpass the default stipulated time, if surpass this default stipulated time, repeat above-mentioned steps one once to step 3, detect infrared receiving module whether infrared received signal is arranged, if infrared receiving module has received infrared received signal, described singlechip controller begins light modulation for described LED driver module by output control pin output pwm signal, make led module increase the brightness of preset ratio or the brightness of minimizing preset ratio under current brightness, execution is returned step 6 after finishing; If infrared receiving module does not receive infrared received signal, after the time-delay set time, return step 1; If there is not to surpass this default stipulated time, repeat above-mentioned steps one once to step 3, detect infrared receiving module whether infrared received signal is arranged, if infrared receiving module has received infrared received signal, return step 6, if infrared receiving module does not receive infrared received signal, after the time-delay set time, return step 1;
Step 7, described singlechip controller are given described LED driver module by output control pin output pwm signal, make led module be shown as brightness before the last time closes, continue execution in step eight then;
Step 8, repeat above-mentioned steps one once to step 3, detect infrared receiving module whether infrared received signal is arranged, if infrared receiving module has received infrared received signal, whether the time of judging current infrared received signal surpasses the default stipulated time, if surpass this default stipulated time, described singlechip controller begins light modulation for described LED driver module by output control pin output pwm signal, make led module under current brightness, increase the brightness of preset ratio or the brightness of minimizing preset ratio, return step 8 after carrying out end, if do not have to surpass this default stipulated time, return step 8; If infrared receiving module does not have infrared received signal, after the time-delay set time, return step 1.
Compared with prior art, the invention has the advantages that: light-modulating mode is different from prior art, wireless signal transmitting module and wireless signal receiver module all are in the lamp housing, be in the same side, when have no occluder, the wireless signal receiver module does not have signal output, when in case shelter is arranged, receiver module just with a characteristic frequency to the control module output signal, its specific frequency is exactly the tranmitting frequency of wireless signal transmitting module, control module just begins led module is carried out light modulation then; This pattern can reduce the power consumption of wireless signal transmitting module, prolongs its useful life, can also improve antijamming capability simultaneously.
Description of drawings
Fig. 1 is infrared transmitting tube and an infrared receiving tube scheme of installation in the embodiment of the invention;
Fig. 2 is the module frame chart of dimming LED (Light Emitting Diode) illuminating lamp in the embodiment of the invention;
Fig. 3 is the circuit diagram of control module, infrared transmission module, infrared receiving module in the embodiment of the invention;
Fig. 4 is a light modulation flow chart in the embodiment of the invention.
Embodiment
Embodiment describes in further detail the present invention below in conjunction with accompanying drawing.
The present invention at first provides a kind of dimming LED (Light Emitting Diode) illuminating lamp, it comprises housing 7, be provided with led module 1 in the housing, be used to drive LED driver module 2, the power module 3 of described led module, infrared transmission module 4, infrared receiving module 5, the control module 6 that links to each other with infrared receiving module 5 with infrared transmission module 4, described power module 3 links to each other with described control module 6, and described control module 6 links to each other with described LED driver module 2.
Described control module is a singlechip controller, it is the singlechip controller U1 of PIC12F684 that singlechip controller described in the present embodiment adopts model, the VSS pin of this singlechip controller U1 (i.e. the 14th pin) links to each other with the cathode output end of described power module, the VDD pin of singlechip controller U1 (i.e. the 1st pin) links to each other and links to each other with the cathode output end of described power module, and the I/O pin (the 5th pin) of singlechip controller U1 connects a resistance R 10 backs and links to each other with described LED driver module 2; Described infrared transmission module 4 comprises infrared transmitting tube N3A, the first triode Q1, first resistance R 1, second resistance R 2, the 3rd resistance R 3, first end of described first resistance R 1 links to each other with the 2nd I/O pin (the 8th pin) of described singlechip controller U1, second end of described first resistance R 1 links to each other with the base stage of the described first triode Q1, the emitter of the described first triode Q1 links to each other with the cathode output end of described power module, the collector electrode of the described first triode Q1 links to each other with first end of described second resistance R 2, second end of described second resistance R 2 links to each other with the anode of described infrared transmitting tube N3A, the negative electrode of described infrared transmitting tube N3A links to each other with the cathode output end of described power module, and the two ends of described the 3rd resistance R 3 are connected to the two ends of described second resistance R 2; Described infrared receiving module comprises infrared receiving tube N3B, the second triode Q2, first capacitor C 1, second capacitor C 2, the 3rd capacitor C 3, the 4th resistance R 4, the 5th resistance R 5, the 6th resistance R 6, the 7th resistance R 7, the 8th resistance R 8, first end of described the 4th resistance R 4 links to each other with the 3rd I/O pin (the 9th pin) of singlechip controller U1, second end of described the 4th resistance R 4 links to each other with the collector electrode of the described second triode Q2, the emitter of the described second triode Q2 links to each other with the cathode output end of described power module, the base stage of the described second triode Q2 links to each other with first end of second capacitor C 2, second end of second capacitor C 2 links to each other with first end of described infrared receiving tube N3B, second end of described infrared receiving tube N3B links to each other with the cathode output end of described power module, the two ends of described the 5th resistance R 5 are connected between the base stage and emitter of the described second triode Q2, the two ends of described the 6th resistance R 6 are connected between the base stage and collector electrode of the described second triode Q2, first end of described the 7th resistance R 7 links to each other with the collector electrode of the described second triode Q2, second end of described the 7th resistance R 7 links to each other with the cathode output end of described power module, the two ends of described first capacitor C 1 are connected between the cathode output end of first end of the 4th resistance and described power module, the two ends of described the 3rd capacitor C 3 are connected to the two ends of described infrared receiving tube N3B, first end of described the 8th resistance R 8 links to each other with the cathode output end of described power module, and second end of described the 8th resistance R 8 links to each other with first end of described infrared receiving tube N3B.
Infrared transmitting tube and infrared receiving tube are arranged on certain position of lamp casing, during installation, it is too far away that infrared transmitting tube and infrared receiving tube can not be placed, in the time of must guaranteeing have no occluder, infrared receiving tube can not receive the infrared signal of infrared transmitting tube emission, when stable shelter is arranged in specific range, the infrared signal that receives the infrared transmitting tube emission that can arrive.
Described singlechip controller is realized light modulation to led module by following steps behind power-up initializing, referring to Fig. 4:
Step 1, output control signal are given infrared transmission module, open infrared transmitting tube;
Whether step 2, detection infrared receiving module have infrared received signal;
Step 3, output control signal are given infrared transmission module, close infrared transmitting tube;
Step 4, repeat above-mentioned steps one,, judge that then this time infrared received signal is effective, otherwise be judged as invalid signals if detect infrared receiving module 8 times infrared received signal is arranged continuously to step 38 times; If be invalid signals, return step 1 behind the time-delay 20ms; If be useful signal, change next step over to;
Step 5, judge whether be used to control the control switch whether the LED driver module open or turn-off opens, if, change step 6 over to for opening; If, change step 7 over to for closing; Here control switch is actually built-in one of singlechip controller and is used to control the control trigger switch whether the LED driver module is opened or turn-offed, can be 1 such as open mode, off state is 0, and its state can detect by singlechip controller kernel oneself;
Step 6, judge that whether the time of current infrared received signal surpass the default stipulated time, if surpass this default stipulated time, repeat above-mentioned steps one once to step 3, detect infrared receiving module whether infrared received signal is arranged, if infrared receiving module has received infrared received signal, described singlechip controller begins light modulation for described LED driver module by the 5th pin output pwm signal, make led module under current brightness, increase by 0.5% brightness or reduce by 0.5% brightness, carry out and return step 6 after finishing; If infrared receiving module does not receive infrared received signal, behind the time-delay 20ms, return step 1; If there is not to surpass this default stipulated time, repeat above-mentioned steps one once to step 3, detect infrared receiving module whether infrared received signal is arranged, if infrared receiving module has received infrared received signal, return step 6, if infrared receiving module does not receive infrared received signal, behind the time-delay 20ms, return step 1;
Step 7, described singlechip controller are given described LED driver module by the 5th pin output pwm signal, make led module be shown as brightness before the last time closes, continue execution in step eight then;
Step 8, repeat above-mentioned steps one once to step 3, detect infrared receiving module whether infrared received signal is arranged, if infrared receiving module has received infrared received signal, whether the time of judging current infrared received signal surpasses the default stipulated time, if surpass this default stipulated time, described singlechip controller begins light modulation for described LED driver module by the 5th pin output pwm signal, make led module under current brightness, increase by 0.5% brightness or reduce by 0.5% brightness, return step 8 after carrying out end, if do not have to surpass this default stipulated time, return step 8; If infrared receiving module does not have infrared received signal, behind the time-delay 20ms, return step 1.