Embodiment
Please consult Fig. 1 and Fig. 2 simultaneously, Fig. 1 is the structured flowchart of the utility model infrared induction control device 10, and Fig. 2 is a physical circuit schematic diagram shown in Figure 1.Infrared induction control device 10 of the present utility model comprises power supply decompression voltage regulator 11, exchanges identification circuit 12, single chip machine controlling circuit 13, battery charger 14, intednsity circuit 15, lighting time regulating circuit 16, LED indicating circuit 17, infrared signal detect and amplifying circuit 18 and relay drive circuit 19.Relay drive circuit 19 is connected in the AC power with load electric light 20; Power supply decompression voltage regulator 11, exchange identification circuit 12, single chip machine controlling circuit 13, battery charger 14, intednsity circuit 15, lighting time regulating circuit 16, LED indicating circuit 17, infrared signal detects and amplifying circuit 18 series-parallel connections after in parallel with relay drive circuit 19.
Particularly, power supply decompression voltage regulator 11 comprises pressure unit 112 and voltage regulation unit 114.Pressure unit 112 specifically by several the series connection after again parallel resistor power supply is carried out dividing potential drop.Voltage regulation unit 114 comprises that 115 pairs of voltages of a voltage stabilizing chip carry out voltage stabilizing and handle.
This battery charger 14 comprises a rechargeable battery 142, first inductance 144, second inductance 146 and a switch 148.It is in parallel after rechargeable battery 142 is connected with pressure unit 112 with relay drive circuit 19.Rechargeable battery 142 two ends are connected in series first inductance 144 respectively and second inductance, 146 backs are electrically connected with voltage regulation unit 114.Switch 148 is connected in series with first inductance 144, when switch 148 closures, and rechargeable battery 142 discharge work; When switch 148 disconnected, rechargeable battery 142 was in non operating state.The disconnection of this switch 148 and closure are by manually operated, exhaust battery when preventing from not use infrared induction control device 10 for a long time.
Rechargeable battery 142 to battery charger 14 after pressure unit 112 dividing potential drops of AC power process power supply decompression voltage regulator 11 charges.Can provide voltage after the rectification of rechargeable battery 142 after the charging through first inductance 144 and second inductance 146 and an electric capacity is the DC power supply of 3.6V.3.6V DC power supply to produce voltages be the stable DC electricity of 3V to 114 backs of the voltage regulation unit by decompression voltage regulator 11 again, be respectively single chip machine controlling circuit 13, intednsity circuit 15, lighting time regulating circuit 16, LED indicating circuit 17 thereafter and infrared signal detects and amplifying circuit 18 voltage is provided is the stable DC working power of 3V.
Exchange identification circuit 12 and detect whether connected alternating current, then detection signal is sent to the single-chip microcomputer 132 of single chip machine controlling circuit 13.
Intednsity circuit 15 comprises a luminance potentiometer 152 and a photodiode 154 of series connection.The effective operational environment brightness of resistance scalable 0Lux~300Lux by regulating luminance potentiometer 152 by photodiode 154 induction external environment brightness, and is sent to single-chip microcomputer 132 with the ambient brightness signal.
Lighting time regulating circuit 16 be specially one lighting time regulator potentiometer, lighting time, regulator potentiometer was sent to single-chip microcomputer 132 with conditioning signal, single-chip microcomputer 132 can change time of the bright lamp of load energized according to the adjustment information of this regulator potentiometer lighting time, when potentiometer when 0 ohm is adjusted to maximum continuously, corresponding lighting time is 5 second~4 minute.
LED indicating circuit 17 comprises the resistance and a light-emitting diode 172 of series connection, by single-chip microcomputer 132 these light-emitting diode 172 bright lamps of control or turn off the light.Concrete, when single-chip microcomputer 132 entered mode of operation, single-chip microcomputer 132 outputed signal to LED indicating circuit 17 with control light-emitting diode 172 flickers 5 times; When detecting the infrared signal that human body moves at every turn, single-chip microcomputer 132 control light-emitting diodes 172 flickers 1 time.
Infrared signal detects and amplifying circuit 18 comprises infrared inductor 182, and infrared inductor 182 is sent to single-chip microcomputer 132 after detected signal is passed through first signal amplifier 184 and secondary signal amplifier 186 and amplifying circuit amplification thereof.Infrared signal detects and the supply power voltage Vcc of amplifying circuit 18 is provided by single-chip microcomputer 132, and this infrared signal detection and amplifying circuit 18 power supplies are turn-offed in single-chip microcomputer 132 controls when being higher than set point with convenient environmental light brightness, reduce power consumption.
Relay drive circuit 19 specifically comprises a time pulse relay 192 and a relay chip for driving 194.Single-chip microcomputer 132 is sent to this relay chip for driving 194 with control signal, passes through the closure and the disconnection of relay chip for driving 194 driving pulse relays 192 then.Concrete, relay chip for driving 194 amplifies the single pulse signal of single-chip microcomputer 132 outputs so that drive the adhesive or the disconnection of this time pulse relay 192.Just do not need drive current to control this time pulse relay 192 continuous firings in these time pulse relay 192 conductings or after disconnecting.
Seeing also Fig. 3, is single chip machine controlling circuit 13 signal processing flow figure shown in Figure 1.The signal processing step of this single chip machine controlling circuit 13 is specific as follows:
S1: at first carry out the single-chip microcomputer initialization.
Whether S2: detecting has AC power.If AC-less power then enters park mode; If AC power is arranged, then enter step S3.
S3: the voltage that reads rechargeable battery 142.
S4: whether the voltage of judging rechargeable battery 142 is normal.If the voltage of rechargeable battery 142 is undesired, detect then whether whether load electric light 20 is bright; If yes, then control relay 192 disconnects, and turns off the light; If, then do not return step S2.If the voltage of rechargeable battery 142 is normal, then enter step S5.
S5: read the light-inductive signal.
S6: judge whether the light-inductive signal is effective.If photosensor signal is invalid, then enter step S12: judge whether bright lamp, if no bright lamp then returns step S2, if bright lamp is arranged, judge that then lighting time arrives not, if bright lamp duration has arrived setting, then control relay 192 disconnects, and lamp goes out, if lighting time no show setting then returns step S2.If photosensor signal is effective, then enter step S7.
S7: read the infrared induction signal.
S8: judge whether the infrared induction signal is effective.If infrared induction invalidating signal, then enter step S12: judge whether bright lamp, if no bright lamp then returns step S2, if bright lamp is arranged, judge that then lighting time arrives not, if bright lamp duration has arrived setting, then control relay 192 disconnects, and turns off the light, if lighting time no show setting then returns step S2.If the infrared induction signal is effective, then enter step S9.
S9: judge that bright lamp is not.If bright lamp is arranged, then enter step S11; If there is not bright lamp, then enter step S10.
S10: control relay 192 adhesives, bright lamp.
S11: the bright lamp timer that resets, return step S2 afterwards.
Single-chip microcomputer 132 is specially the IO interface with the interface N that exchanges identification circuit 12, and it is configured to level and interrupts awakening mode, when this interface N is low level, this single-chip microcomputer 132 is in park mode, when this interface N was high level, this single-chip microcomputer 132 woke up from park mode, enters mode of operation.When single-chip microcomputer 132 is waken up from park mode when entering mode of operation, single-chip microcomputer 132 outputs signal to LED indicating circuit 17 simultaneously, control light-emitting diode 172 flickers 5 times.
Infrared inductor 182 produces and is transferred to single-chip microcomputer 132 after infrared signal is amplified by signal amplification circuit, single-chip microcomputer 132 is by behind the signal of each circuit of analysis-by-synthesis, send and control signal to relay chip for driving 194, then closure and the disconnection that produces big electric current single pulse signal driving pulse relay 192 by relay chip for driving 194.
When time pulse relay 192 disconnected, AC power was charged to rechargeable battery 142.When time pulse relay 192 is closed when connecting, load electric light 20 is lighted, and the power supply of other circuit in parallel with relay drive circuit 19 is automatically brought to by rechargeable battery 142 power supplies, and the voltage by battery voltage monitoring device 21 monitoring rechargeable batteries 142.Wherein, this battery voltage monitoring device 21 comprises two resistance, it is serially connected in by providing voltage after the rectification of rechargeable battery 142 through first inductance 144 and second inductance 146 and an electric capacity is between the DC power supply and zero line of 3.6V, and the pin D of single-chip microcomputer 132 is serially connected between two resistance.When the voltage of rechargeable battery 142 is lower than setting, single-chip microcomputer 132 sends signal control relay drive circuit 19 break impulse relays 192,, return to more than the setting up to the voltage of rechargeable battery 142 is monitored rechargeable battery charging at least 4 minutes by AC power.
Infrared signal detects and amplifying circuit 18 is the low-power consumption amplifying circuit, in the time of by day, controls the power supply of closing first amplifier 184 and second amplifier 186 automatically by single-chip microcomputer 132, then starts the amplifying circuit operate as normal at night.
With respect to prior art, the utility model adopts the adhesive of Single-chip Controlling time pulse relay and disconnects the switch of control load electric light, only need apply a driving pulse forward or backwards in the moment of time pulse relay adhesive or disconnection, and promptly do not need to keep again drive current in conducting or after disconnecting, make its power consumption reduce greatly, thereby can improve load efficiency.In addition, by rechargeable battery is in parallel with relay drive circuit, owing to adopt the extremely low power dissipation circuit, disconnect the back AC power at relay and have only faint charging current, thereby avoided load flicker or little bright phenomenon battery charge.
The utility model is not limited to above-mentioned execution mode, if various changes of the present utility model or distortion are not broken away from spirit and scope of the present utility model, if these changes and distortion belong within claim of the present utility model and the equivalent technologies scope, then the utility model also is intended to comprise these changes and distortion.