A kind of curtain infrared control device
Technical field
The present invention relates to a kind of curtain control device, particularly relate to a kind of curtain infrared control device by the control of Radio infrared telepilot.
Background technology
Tradition needs rising, the decline of artificial pulling curtain or rotates blind window page or leaf sheet and not only waste muscle power but also need walk close to the action that window just can spur curtain or rotate blind window page or leaf sheet, operation is extremely inconvenient, particularly for the elderly and handicapped personage, the action of control curtain has become heavy especially and thing that take great energy.
Existing curtain infrared control device discloses a kind of curtain telepilot as Chinese utility model patent 93202529.3, and it has infrared remote receiver and executive circuit, and this device can be realized the automatic open close of Long-distance Control curtain or lift sash; Publication number is that the Chinese utility model patent " multi-functional automatic lifting window control device " (patent No. is ZL 95241860.6) of CN 2237699 also discloses a kind of device that is opened and closed by the Radio infrared remotely controlled window sash in addition, it comprises infrared remote-control emitter, infrared remote control receiver and sash open and close executive circuit, the output termination sash of infrared remote control receiver opens and closes the control end of executive circuit, above-mentioned rising by Radio infrared remote control control curtain, decline or rotation blind window page or leaf sheet can effectively reduce the muscle power of control curtain action, it is also extremely convenient to use, but, if adopt general supplying cell to infrared remote receiver and executive circuit power supply, its power consumption is very big, extremely wastes electric energy.
Summary of the invention
Technical matters to be solved by this invention is the curtain infrared control device that a kind of low-power consumption is provided at above-mentioned prior art.
The present invention solves the problems of the technologies described above the technical scheme that is adopted: this curtain infrared control device, include infrared remote-control emitter and infrared reception controller, described infrared reception controller includes infrared receiving circuit, single chip machine controlling circuit, motor drive circuit, described infrared receiving circuit signal output part links to each other with described single chip machine controlling circuit, described single chip machine controlling circuit has the decoder module of resolving infrared received signal, the decoded control signal output ends of the decoder module of described single chip machine controlling circuit links to each other with described motor drive circuit, the signal output part of described motor drive circuit connects the rotation of the motor of control curtain action with CD-ROM drive motor, it is characterized in that: what link to each other with described single chip machine controlling circuit also includes the timing wake-up circuit, and described single chip machine controlling circuit has the timer of a Fixed Time Interval.Said apparatus in the ordinary course of things, have only the timing wake-up circuit in running order in all circuit, other circuit is in off working state, have only after the timing wake-up circuit is given trigger pip of single chip machine controlling circuit, single chip machine controlling circuit just can be in running order, and then further start infrared receiving circuit, the work of motor drive circuit, and this working time was exceeded by the time interval of a timer, after timer time expires, single chip machine controlling circuit, infrared receiving circuit and motor drive circuit enter the power down dormant state again, and such design can effectively reduce power consumption.
Above-mentioned infrared receiving circuit includes a power control circuit and an infrared remote receiver, the input end of this power control circuit links to each other with described single chip machine controlling circuit, the output terminal of this power control circuit links to each other with the power input of described infrared remote receiver, the duty of infrared remote receiver is just controlled by single chip machine controlling circuit like this, can further reduce the power consumption of whole device circuit.
Above-mentioned timing wake-up circuit is the oscillatory circuit with certain frequency and dutycycle, the size of its frequency and dutycycle can dynamically be set according to actual needs, in order better more stably to provide trigger pip for single chip machine controlling circuit, above-mentioned timing wake-up circuit is a square-wave oscillator circuit, jumps the edge on it or jumps the edge down for waking the signal of single chip machine controlling circuit up.
The coded signal that infrared receiving circuit will receive infrared remote-control emitter sends to after the single chip machine controlling circuit, single chip machine controlling circuit need be decoded to coded signal, control the rotation of motor drive circuit then according to decoded result, and then further control the rising or the decline of curtain, the forward or reverse of window louver, as further improvement, the decoder module of above-mentioned single chip machine controlling circuit has a timer, and this timer is jumped the edge by going up of infrared receiving circuit signal output part signal or jumped down along triggering.Like this, just can be according to the rule of coding, judge that two are upward jumped edge or two time spans of jumping down between the edge, and then advance one and judge that this coding is the coding of which kind of type, promptly coding is 0 or 1, and from the efficient of decoding, the present invention adopts hardware trigger edge acquisition mode to decode, such decoding process accuracy rate height, efficient is also high.
Compared with prior art, the invention has the advantages that by on single chip machine controlling circuit, connecting the mode of a timing wake-up circuit, timing wake-up single chip machine controlling circuit, infrared receiving circuit and motor drive circuit enter duty, and and this duty time was exceeded by the time interval of a solid timer, after timer time expires, single chip machine controlling circuit, infrared receiving circuit and motor drive circuit enter the power down dormant state again, and such design can effectively reduce power consumption.
Description of drawings
Fig. 1 is the structured flowchart of the embodiment of the invention;
Fig. 2 is the connection layout of single chip machine controlling circuit in the embodiment of the invention;
Fig. 3 is the connection layout of infrared receiving circuit in the embodiment of the invention.
Embodiment
Embodiment describes in further detail the present invention below in conjunction with accompanying drawing.
Curtain infrared control device as shown in Figure 1, it includes infrared remote-control emitter 1 and infrared reception controller 2, wherein infrared reception controller includes infrared receiving circuit 22, single chip machine controlling circuit 21, motor drive circuit 23, timing wake-up circuit 24, the signal output part of timing wake-up circuit links to each other with single chip machine controlling circuit, the infrared receiving circuit signal output part links to each other with single chip machine controlling circuit, single chip machine controlling circuit has the timer of decoder module one Fixed Time Interval of resolving infrared received signal, the decoded control signal output ends of the decoder module of single chip machine controlling circuit links to each other with described motor drive circuit, and the signal output part of motor drive circuit connects the rotation of the motor of control curtain action with CD-ROM drive motor.
The number of keys of the infrared remote-control emitter 1 of general curtain infrared control device is less, as long as rising button, decline button are arranged or just changeing, reverse button, the invention provides the telepilot of 2 buttons of a kind of use, its coding adopts the pulse code form, " 01 " expression motor just changes, the counter-rotating of " 10 " expression motor, be failure to actuate as stick signal " 00 " and " 11 ".Certainly, if remote controller key outnumber 2, then need the more coding of multidigit: the coding figure place of establishing needs is x, the quantity of remote controller key is b, then satisfies: (x-1) relation of 2<b<x2.As b=7, then x=3 promptly when the number of remote controller key is 7, needs the accurately statement of 3 codings at least.
It is the 32 pin microprocessors of ATMEGA that the main control chip U1 of single chip machine controlling circuit 21 adopts model, and wherein the 32nd pin of main control chip U1 connects the signal output part of timing wake-up circuit 24; The 13rd, 14 pins of main control chip U1 connect the input end of motor drive circuit 23; The 12nd pin of main control chip U1 connects the signal output part of infrared receiving circuit 22, and the 9th pin of main control chip U1 connects infrared receiving circuit and thinks infrared receiving circuit 22 power supplies, as shown in Figure 2.
As Fig. 3, infrared receiving circuit 22 includes a power control circuit and an infrared remote receiver IRF3, the input end CRTL IR of this power control circuit links to each other with the 9th pin of main control chip U1 in the described single chip machine controlling circuit, the input end of this power control circuit connects the base stage of triode Q10, the emitter of triode Q10 connects extraneous stabilized voltage supply, the collector of triode Q10 connects the power pins of infrared remote receiver IRF3, and the signal of infrared remote receiver IRF3 receives and links to each other with the 12nd pin of main control chip U1 after pin connects the 22 resistance R 22.
The timing wake-up circuit is the oscillatory circuit with certain frequency and dutycycle in the present embodiment, the size of its frequency and dutycycle can dynamically be set according to actual needs, its osjcillating ode can be square wave, triangular wave, sinusoidal wave or the like, provide trigger pip in order better more to stabilize to single chip machine controlling circuit, timing wake-up circuit 24 is conventional square-wave oscillator circuit in the present embodiment, beat on it edge or the following signal that wakes single chip machine controlling circuit up along being of jumping.
Motor drive circuit 23 is conventional d.c. motor driving circuit in the present embodiment.
After single chip machine controlling circuit was timed wake-up circuit and wakes up, the decoder module of single chip machine controlling circuit had a timer, this timer by going up of infrared receiving circuit signal output part signal jump along or jump down along triggering.Like this, according to the coding rule of infrared remote-control emitter 1, judge that two are upward jumped edge or two time spans of jumping down between the edge, and then advance one and judge that this coding is the coding of which kind of type, promptly coding is 0 or 1, and the result who comes out according to decoding controls the work of motor drive circuit then.
The above-mentioned curtain infrared control device course of work is as follows: behind the single-chip microcomputer electrification reset, finish the work of initialization register and IO mouth, enter the power down park mode then, this pattern can only be waken up by electrification reset and external definition wake-up circuit.At this moment, all circuit have only the timing wake-up circuit in running order, and other circuit is in off working state.
When the signal output part of timing wake-up circuit have high to low following jump along or going up from low to high jump when signal changes, the signal of this variation is as the signal that wakes single-chip microcomputer up, at this moment, single-chip microcomputer starts the work (power supply is provided) of infrared remote receiver by the CTRL_IR of infrared receiving circuit being changed to low level, detect whether the infrared emission signal is arranged, if any then receiving processing.
Single-chip microcomputer starts timer between awake period, a timer of continuous detecting interval time, if never find to receive infrared signal, then enter the power down park mode, until wake up next time.If between awake period, receive infrared signal, then single-chip microcomputer is in running order, up to timer end interval time, continues to enter the power down park mode.
Single-chip microcomputer is directly controlled the d.c. motor driving circuit with decoded signal, and the signal output part output signal of d.c. motor driving circuit reaches the rotating function (with respect to the rising and the decline of curtain) of control motor then.