It is a kind of that there is the infrared and self-power generation type light fixture controlled in wireless of wireless communication functionDeviceTechnical field
It is especially a kind of that there is the infrared and self power generation of wireless communication function the present invention relates to technical field of switch controlFormula light fixture control device of wireless.
Background technology
In the prior art, the self-power generation type light fixture controlled in wireless with wireless communication function closes the control for being mainly used in light fixtureSystem.Because radio has the characteristics of any direction propagation, the signal of some switch transmitting will be by all installed in surroundingReceiver is connected to, and is the signal of which switch transmitting to enable receiver to distinguish, it is necessary to each switch, one ID is set,Need switch that this ID is sent to receiver by radio frequency before the use, receiver stores the ID, and this process is pairingAlso action volume.This ID is included in the radio signal that switch is sent during normal control, whether receiver has been registered according to IDTo judge whether to respond the control instruction of the switch, so as to realize the control only in response to the switch matched.Pairing is usual at presentThe method taken is to set a button on the receiver, presses the states to be paired such as rear receiver entrance, receives firstID therein is extracted after control signal and stores completion pairing.As do not pressed button, then receiver operation is in normal mode, i.e.,ID in control signal judges whether to need to respond.
Aforesaid way has the drawback that:Firstth, if just there is other during receiver waits pairing signalIt is unexpected that switch have sent a control signal, and this will cause to mismatch pair, and bad removing;Secondth, usual receiver installationIn the ceiling installed in light fixture or the space of light fixture, if to match after installing, needing to dismantle after light fixture could be byThe switch on receiver is obtained, use is very inconvenient;3rd, if necessary to match after receiver installs, then need to connecingReceiving after device connects civil power can just work by by pairing button, and this easily causes user's electric shock, and security is poor.
The content of the invention
The technical problems to be solved by the invention are, there is provided a kind of to have the infrared and self-power generation type of wireless communication functionLamp control device, the accuracy, convenience and security of pairing process can be ensured.
In order to solve the above technical problems, present invention offer is a kind of to have the infrared and self-power generation type lamp of wireless communication functionHave control device of wireless, including:Self-power generation type wireless switching and control lamp power receiver, it is same between switch and receiverWhen communicated by radio and infrared light;Switch includes self power generation module, power conversion unit, pairing button, MCU, nothingLine electricity transmitter unit and infrared transmitting circuit;Self power generation module passes through power conversion unit after being converted into electricity by the power to compress switchWorking power is provided for MCU, radio transmitting unit and infrared transmitting circuit;MCU is single with pairing button, radio transmitting respectivelyMember is connected with infrared transmitting circuit;Receiver include power conversion unit, radio reception unit, MCU, infrared receiver module,USB supply ports and light indicating circuit;MCU respectively with radio reception unit, infrared receiver module and light indicating circuitIt is connected, power conversion unit is connected with USB supply ports and commercial power interface, and civil power is converted to each part institute by power conversion unitThe operating voltage needed.
Preferably, to press pairing button and press switch, switch is sent out infrared signal and wireless signal is matched,Pairing button is not pressed presses switch then only by wireless transmission light fixture control signal.
Preferably, during pairing, switch is sent out the infrared signal containing customizing messages and by radio transmitter moduleThe ID of the machine is sent, after receiver receives infrared signal specific, store the switch ID that wireless receiving arrives, and the switch is setFor semiconductor switch, if being not received by infrared signal, the ID of switch wireless transmission is not received;During control, switch passes through nothingLine electricity transmitter unit sends the ID of this switch, and receiver judges whether the ID is pairing after receiving ID by radio receiving unitThe switch ID crossed, in this way, then the control instruction of responding to switch and control light fixture bright dark.
Preferably, pairing button is self-replaced type, is only pressed when needing pairing, being resetted naturally after loosing one's grip does not influence normallySwitch control.
Preferably, receiver is furnished with USB supply ports, passes through circumscribed USB power supply or portable power source in access failure civil powerMatching function is realized to receiver power supply.
Preferably, receiver sets light indicating circuit, and simulation light fixture is bright dark, can be used to indicate receiver when not connecing civil powerWorking condition.
Preferably, the concrete structure of infrared transmitting circuit is:Including first resistor R1, second resistance R2, the first triodeQ1 and the second infraluminescence pipe Q2;MCU I/O port connection second resistance R2 one end, second resistance R2 other end connection firstTriode Q1 base stage, the first triode Q1 emitter stage are directly grounded, and the first triode Q1 colelctor electrode connection second is infraredLuminous tube Q2 one end, the second infraluminescence pipe Q2 other end connection first resistor R1 are followed by power Vcc.
Preferably, the concrete structure of light indicating circuit is:Including 3rd resistor R3, the 4th resistance R4, the 3rd triodeQ3 and the 4th light emitting diode Q4;MCU I/O port connects the 4th resistance R4 one end, the 4th resistance R4 other end connection the 3rdTriode Q3 base stage, the 3rd triode Q3 emitter stage are directly grounded, and the 3rd triode Q3 colelctor electrode connection the 4th is luminousDiode Q4 one end, the 4th light emitting diode Q4 other end connection 3rd resistor R3 are followed by power Vcc.
Beneficial effects of the present invention are:(1) switch matched using infrared directive property feature and receiver, only byThe receiver of alignment could receive unpaired message, will not produce and mismatch pair;(2) receiver can pass through USB interface external mobile electricitySource powered operation and carry light indicating circuit, it may not be necessary to connect light fixture and civil power is conveniently accomplished pairing, to usingPerson does not have any danger;(3) if later stage increase switch, it very easily can also complete orientation using infrared directive property and match somebody with somebodyRight, the convenience for improving pairing facilitates later maintenance.
Brief description of the drawings
Fig. 1 is the apparatus structure schematic diagram of the present invention.
Fig. 2 is the infrared transmitting circuit structural representation of the present invention.
Fig. 3 is the light indicating circuit structural representation of the present invention.
Embodiment
As shown in figure 1, it is a kind of with the infrared and self-power generation type light fixture control device of wireless of wireless communication function, includingSelf-power generation type wireless switching and control lamp power receiver, pass through radio and infrared light simultaneously between switch and receiverCommunicated;Switch includes self power generation module, power conversion unit, pairing button, MCU, radio transmitting unit and infrared hairTransmit-receive radio road;Self power generation module is MCU, radio transmitting unit by being converted into by the power to compress switch after electricity by power conversion unitWorking power is provided with infrared transmitting circuit;MCU respectively with pairing button, radio transmitting unit and infrared transmitting circuit phaseEven;Receiver refers to including power conversion unit, radio reception unit, MCU, infrared receiver module, USB supply ports and lightShow circuit;MCU is connected with radio reception unit, infrared receiver module and light indicating circuit respectively, power conversion unit withUSB supply ports are connected with civil power port, and power conversion unit is converted to civil power the operating voltage needed for each part.
Wherein, possess a microgenerator in self power generation module, drive micromachine work to produce voltage by compressing switch,The operating voltage required for MCU, rf transmitter unit, infrared transmitting circuit is converted voltage to by power-switching circuit.PressDynamic switch, and press pairing button, switch is sent out infrared signal, does not press pairing button and presses switch then transmitting is wirelessSignal.
The effect of power-switching circuit is 220V to be converted into the power supply of internal circuit work in receiver, and MicroUSB connectsThe effect of mouth is using power supply is obtained at MicroUSB interfaces such as portable power source in the case of no 220V, not having to connectWork is remained in the case of civil power.Rf receiver unit is responsible for receiving radiofrequency signal, and infrared receiving circuit is responsible for receiving infrared signalAnd give MCU.The effective wire of infrared receiver is drawn from receiver, is easily installed in outside light fixture and is received infrared letter to facilitateNumber.Light indicating circuit is to play indicative function in pairing.
It is installed in receiver on lamp, and after switching on power, switch infrared transmitting tube alignment infrared receiving tube presses pairingButton simultaneously presses switch, and switch drives microgenerator work to produce voltage, and the voltage can provide the electric current not less than 200ALoad capacity, the DC voltage that internal circuit worked is converted into through power-switching circuit.Now drive infrared transmitting circuit workMake, driving infraluminescence pipe sends the ID of switch in the form of infrared light, because infrared emission current drain is left about in 100mAThe right side, and the duration reach dozens of millisecond, it is therefore necessary to matched with the load characteristic of microgenerator.Infrared receiving tube receivesTo infrared signal, and id information therein is extracted after infrared receiving circuit is filtered, amplified, give the MCU of receiver, MCUThe ID is stored, and drives light indicating circuit work instruction successful matching.Can also be electric from such as movement with USB interface in a pre-installationPower taking at source, pairing process is completed, simplify the operation of pairing.
After receiver is prepared pair and all connected with lamp and civil power, switch is pressed at an arbitrary position, drives micromachine workGenerate electricity, now switch judges the ID by transmitting wirelessly the ID switched, receiver after receiving ID by wireless receiving circuitWhether it has been registered switch, and lamp switch is controlled according to control instruction, has realized basic distant control function through walls.
As shown in Fig. 2 the structural representation for infrared transmitting circuit.The concrete structure of infrared transmitting circuit is:IncludingOne resistance R1, second resistance R2, the first triode Q1 and the second infraluminescence pipe Q2;MCU I/O port connection second resistance R2'sOne end, the second resistance R2 other end connect the first triode Q1 base stage, and the first triode Q1 emitter stage is directly grounded, theOne triode Q1 colelctor electrode connects the second infraluminescence pipe Q2 one end, the second infraluminescence pipe Q2 other end connection firstResistance R1 is followed by power Vcc.
MCU I/O port is connected to second resistance R2, produces 38KhzPWM ripples, and the first triode Q1 of driving is turned on, so that theOne triode Q1 is turned on 38Khz frequencies.Q2 is infraluminescence pipe, when the first triode Q1 is with the conducting of above-mentioned frequency cycleWhen, 38Khz infrared signal is launched on the second infraluminescence pipe Q2.Wherein second resistance R2 plays metering functions, control theOne triode Q1 base current, regulation first resistor R1 resistance can adjust flow through the second light emitting diode Q2 electric current it is bigIt is small, so as to control the intensity of infrared light.
As shown in figure 3, the light indicating circuit structural representation for the present invention.The concrete structure of light indicating circuit is:Including 3rd resistor R3, the 4th resistance R4, the 3rd triode Q3 and the 4th light emitting diode Q4;The MCU electricity of I/O port connection the 4thR4 one end is hindered, the 4th resistance R4 other end connects the 3rd triode Q3 base stage, and the 3rd triode Q3 emitter stage is directGround connection, the 3rd triode Q3 colelctor electrode connect the 4th light emitting diode Q4 one end, the 4th light emitting diode Q4 other endConnection 3rd resistor R3 is followed by power Vcc.
MCU I/O port is connected to the 4th resistance R4, and the 3rd triode Q3 conductings, the 4th Light-Emitting Diode are driven when level is highThere is electric current to flow through in Q4 luminous, wherein the 4th resistance R4 plays metering functions, control the 3rd triode Q3 base current, regulation theThree resistance R3 resistance can adjust the size of current for flowing through the 4th light emitting diode Q4, so as to control luminous intensity.
Although the present invention is illustrated and described with regard to preferred embodiment, it is understood by those skilled in the art thatWithout departing from scope defined by the claims of the present invention, variations and modifications can be carried out to the present invention.