CN109963396A - A kind of switch detection circuit - Google Patents

A kind of switch detection circuit Download PDF

Info

Publication number
CN109963396A
CN109963396A CN201910414546.4A CN201910414546A CN109963396A CN 109963396 A CN109963396 A CN 109963396A CN 201910414546 A CN201910414546 A CN 201910414546A CN 109963396 A CN109963396 A CN 109963396A
Authority
CN
China
Prior art keywords
detection circuit
switch
output end
resistance
flash
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910414546.4A
Other languages
Chinese (zh)
Inventor
姜兆宁
刘达平
魏巍
孙胜利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Yeelink Information Technology Co Ltd
Original Assignee
Qingdao Yeelink Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Yeelink Information Technology Co Ltd filed Critical Qingdao Yeelink Information Technology Co Ltd
Publication of CN109963396A publication Critical patent/CN109963396A/en
Priority to PCT/CN2019/095557 priority Critical patent/WO2020011224A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Dc-Dc Converters (AREA)
  • Rectifiers (AREA)

Abstract

The invention discloses a kind of switch detection circuits, including detection module, control module and power load;Detection module accesses supply voltage for input terminal, and detects the flash state of supply voltage, and when detecting flash state, then passes through output end to control module transmission level signal;Wherein, flash state is that the power-off duration that supply voltage occurs is not more than the off-position of preset duration;Control module is connected with detection module and power load respectively, for when receiving level signal, control to switch power load current working status.Therefore, the switch detection circuit in the application, it can be achieved that conventional power source switching power load working condition function, and can guarantee that electrical equipment is not powered down, control electrical equipment convenient for user radio;Convenience is provided to the intelligent use of power load for user, is conducive to the promotion and application of intelligent electric appliance.

Description

A kind of switch detection circuit
Technical field
The present invention relates to technical field of electric device control, more particularly to a kind of switch detection circuit.
Background technique
With the development of intelligent control technology, more and more electrical equipments also start to develop to the direction of intelligent control. For example, the intelligent electric appliances such as Intelligent lamp, smart television, intelligent fan can using cell phone application or remote control carry out wireless control its Working condition.But this premise is to maintain intelligent electric appliance and is in energized state, and people to electric appliance using when intrinsic habit be The opening and closing of electric appliance are controlled by direct and intelligent switch button.When user closes intelligent electric appliance by power switch When, intelligent electric appliance and external power supply power off, and also just can not carry out wireless control to intelligent electric appliance, only turn on the power switch it Afterwards, it just can turn on the access of intelligent electric appliance and external power supply.For example, the lamps and lanterns of remote control are had, at the switch on wall Lamps and lanterns are closed when off-state and are extinguished, only operation remote control can not open lamps and lanterns, only at the switch on wall In closed state, the light on and off etc. of remote control lamps and lanterns could be passed through.For this purpose, directly being cut off to intelligent electric appliance by power switch With connect this mode of operation of circuit, make troubles to user the control use of intelligent electric appliance.
Summary of the invention
The object of the present invention is to provide a kind of switch detection circuit, solves user to the intelligentized control method of electrical equipment not Just the problem of.
In order to solve the above technical problems, the present invention provide a kind of switch detection circuit, including detection module, control module with And power load;
The detection module accesses supply voltage for input terminal, and detects the flash state of the supply voltage, and work as When detecting the flash state, then pass through output end to the control module transmission level signal;Wherein, the flash state It is not more than the off-position of preset duration for the power-off duration of supply voltage appearance;
The control module is connected with the detection module and the power load respectively, for described when receiving When level signal, control switches the power load current working status.
It wherein, further include the flash switch connected with power supply, the detection module input terminal is opened by the flash It closes and the electric network source is electrically connected.
Wherein, the detection module includes the first detection circuit for detecting the off-position of the supply voltage, and Whether the power-off duration for detecting the supply voltage is greater than the second detection circuit of the preset duration;
Wherein, the first input end of the control module is electrically connected by flash switch and the power supply, the Two input terminals are connected with the output end of first detection circuit, and third input terminal is connected with second detection circuit;
The first input end of the power load is electrically connected by flash switch and the power supply, the second input End is connected with the control module.
Wherein, it is direct current that the output end of the flash switch, which is also connected with the AC conversion for exporting power supply, The current rectifying and wave filtering circuit of electricity;
The output end of the current rectifying and wave filtering circuit is also connected with for converting low-voltage DC conversion for high voltage direct current DC-DC converter;
The first of the output end of the DC-DC converter and the control module first input end and the power load Input terminal is connected.
Wherein, first detection circuit includes:
First capacitor, first resistor, second resistance, two-way optocoupler, 3rd resistor and the second capacitor;
Wherein, the output end of flash switch includes for exporting the positive and negative pole tension of the power supply respectively One output end and second output terminal;
The first end of the first capacitor is connected with the first output end that the flash switchs, second end and described first The first end of resistance is connected;The first end and the two-way optocoupler of the second end of the first resistor and the second resistance First input end be connected;The second input terminal and the flash of the second end of the second resistance and the two-way optocoupler are opened The second output terminal of pass is connected;
The first end of the 3rd resistor is connected with the output end of the DC-DC converter, second end and described second The collector output end of the first end of capacitor and the two-way optocoupler is connected;The second end of second capacitor and described double It is grounded to the transmitting output end of optocoupler;And the second end of the 3rd resistor is the output end of first detection circuit, and and The control module is connected.
Wherein, first detection circuit further includes the 4th resistance that both ends and second capacitor both ends are connected in parallel.
Wherein, second detection circuit includes:
5th resistance, third capacitor, the 6th resistance, switching device and the 7th resistance;
Wherein, the first end of the 5th resistance is connected with the output end of the DC-DC converter, second end and described The first end of third capacitor and the first end of the 6th capacitor are connected;The second end of the third capacitor and the 6th capacitor Second end ground connection;The first end of 7th resistance is connected with the output end of the DC-DC converter, second end and described First output end of switching device is connected;The second output terminal of the first switch device is grounded;The of 5th resistance Two ends are also connected with the input terminal of the switching device;And the second end outlet of the 7th resistance is the second detection electricity The output end on road;
When the input terminal voltage of the switching device be greater than preset voltage value when, the first output end of the switching device and Second output terminal disconnects;When the input terminal voltage of the switching device is less than preset voltage value, the first of the switching device Output end is connected with second output terminal.
Wherein, the switching device is metal-oxide-semiconductor or NPN type triode;
Wherein, second detection circuit further includes the second end for being connected to the 5th resistance and the switching device The 8th resistance between input terminal.
Wherein, the control module further includes for receiving the switching command for switching the power load current working status Wireless communication module.
Wherein, the power load is lamps and lanterns.
Wherein, the working condition of the power load includes bright state or state of going out.
Switch detection circuit provided by the present invention, can be applied to user only makes power supply electricity to the operation of mechanical switch Pressure generates in the electrical equipment of of short duration power process.The detection module that switch detection circuit in the application includes can detecte out The flash state of the supply voltage of input, the flash state are that the supply voltage referred to the accession to for powering for power load breaks Electric duration is no more than the off-position of preset duration, that is to say that the open circuit for the short time occur when the supply voltage of input connects again Logical, this state can be detected with detected circuit, and generate corresponding level signal as benchmark, be received in control module When to this level signal, then power load switch operating state is controlled, and then realizes user and pass through mechanical switch switching and use The working condition of electric equipment, and keep supply voltage to the function of electrical equipment continued power.So, even if user passes through machinery Switch electrical equipment is closed, supply voltage, which also refers to, is powered electrical equipment, user can using remote control or other The electrical equipment is opened in mobile terminal control.
Therefore, the switch detection circuit in the application, because can detecte the state of the of short duration power-off of feeder ear, so that with Family can realize the function of conventional power source switching power load working condition by mechanical switch, and can guarantee electrical equipment It is not powered down, controls electrical equipment convenient for user radio;Convenience is provided to the intelligent use of power load for user, is conducive to The promotion and application of intelligent electric appliance.
Detailed description of the invention
It, below will be to embodiment or existing for the clearer technical solution for illustrating the embodiment of the present invention or the prior art Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the circuit theory schematic diagram of switch detection circuit provided in an embodiment of the present invention;
Fig. 2 is the electrical block diagram of switch detection circuit provided in an embodiment of the present invention;
Fig. 3 be another embodiment of the present invention provides the first detection circuit electrical block diagram;
Fig. 4 is the output voltage variation tendency coordinate diagram of current rectifying and wave filtering circuit in flash state;
Fig. 5 is the electrical block diagram of the second detection circuit provided in an embodiment of the present invention.
Specific embodiment
It is equipped with the mechanical switch of conducting and the disconnection of controllable power substantially for traditional electrical equipment, machinery is opened When shutdown is opened, external power supply is not powered electrical equipment, and when mechanical switch is closed, external power supply can just be supplied electrical equipment Electricity.
And more and more intelligentized electrical equipment configurations are by remote controler or with the mobile terminal for controlling software APP Control, and then realize the wireless control of electrical equipment, convenience is provided for user's intelligent operation electrical equipment.
But user can by mobile terminal etc. to electrical equipment carry out the premise of wireless control be external power supply to Electric equipment power supply.If user is closed electrical equipment by mechanical switch, external power supply no longer to power supply for electrical equipment, then User can not again control electrical equipment by software APP or remote control, make troubles for the intelligent operation of user.
For this purpose, applicant expects, for the ease of user's intelligentized control method electrical equipment, external power supply can be made right always Power supply for electrical equipment.It can be considered to which mechanical switch can not be powered to electrical equipment, in this case, electricity consumption is set Standby upper mechanical switch is just without existing necessity.If but directly remove the mechanical switch of electrical equipment, only with remote control Or the equipment such as other mobile terminals control electrical equipment, and do not meet people's tradition and practise to the use of electrical equipment It is used, and the only mobile devices such as remote control can control electrical equipment, it can not find in remote control or when failure, electrical equipment be with regard to complete It is not available, can equally make troubles to user.
For this purpose, applicant is further contemplated that, in the base for keeping external power supply that can persistently be powered to electrical equipment On plinth, and retain the function that electrical equipment can be controlled by mechanical switch.Final applicant's consideration, the mechanical switch of electrical equipment It can be not to the switch of electrical equipment power-off for a long time, be similar to self-resetting switch.When user is to mechanical switching operations, only It is only to be powered off between external power supply and electrical equipment when mechanical switch is pressed, and when mechanical switch is released, mechanical switch Automatically it bounces, external power supply and electrical equipment are directly again switched on power supply.
According to the habit of user's operation mechanical switch, just unclamped after usually pressing mechanical switch several seconds, then It can produce an of short duration power process between external power supply and electrical equipment.Just with the of short duration power process in the application The trigger signal generated as user's operation mechanical switch, switches over the working condition of electrical equipment, to realize user By mechanical switch control electrical equipment, while can guarantee again external power supply always to power supply for electrical equipment so that with Family not only using mechanical switch control electrical equipment but also can use the electricity consumption of mobile terminal intelligentized control method according to itself habit Equipment.
It is just illustrated below with specific technical solution of the specifically embodiment to the application.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
As shown in FIG. 1, FIG. 1 is the circuit theory schematic diagram of switch detection circuit provided in an embodiment of the present invention, the switches Detection circuit can specifically include:
Detection module 1, control module 2 and power load 3;
Detection module 1 accesses supply voltage for input terminal, and detects the flash state of supply voltage, and works as and detect sudden strain of a muscle When disconnected state, then pass through output end to 2 transmission level signal of control module;Wherein, flash state is the disconnected of supply voltage appearance Electric duration is not more than the off-position of preset duration;
Control module 2 is connected with detection module 1 and power load 3 respectively, for controlling when receiving level signal System switching 3 current working status of power load.
Switch detection circuit in the present embodiment includes the detection module that can detecte the flash state of supply voltage.The sudden strain of a muscle When disconnected state is user's operation mechanical switch, external power supply and electrical equipment generate a kind of state letter occurred when of short duration power-off Number.And this flash state can be detected in detection module 1, which is equivalent to one that user is sent by mechanical switch Switch the trigger signal of power load working condition, detection module 1 generates corresponding level when detecting this flash state Signal is delivered to control module 2, and control module 2 is switched over according to working condition of the level signal to power load 3, i.e., Achievable user controls the operation of 3 working condition of power load by mechanical switch, and later power load 3 and external power supply it Between still maintain energized state, also just provide possibility for intelligent wireless control power load 3.
Specifically, the flash state that the detection module 1 in the present embodiment detects is mainly to detect the power-off of supply voltage Whether state and the lasting duration of off-position are more than preset duration.
Because, it is contemplated that for off-position occurs in supply voltage, in addition to being that user's pressing mechanical switch appearance is of short duration Power-off, it is also possible to be that the power grid of external power supply powers off.If detection module 1 only detects off-position, just deposit In the problem of detection inaccuracy.And under normal circumstances user's ongoing operation pressing mechanical switch duration, generally 200ms~ 2s, in other words power-off caused by user's operation mechanical switch generally only lasts for 200ms~2s;Grid cut-off leads to supply voltage Interruption duration is generally all relatively long.
Thus in the present embodiment using power off duration as distinguish user's operation mechanical switch power-off and grid cut-off standard, It is to detect off-position and power-off duration simultaneously in the power-off of detection module detection circuit, to guarantee detection user to machinery The accuracy of the operational motion of switch.
It should be noted that the operation object that user carries out of short duration power-off to electrical equipment is not limited in mechanical switch, It is also possible to touch screen button, inductor switch etc. similar device, is as long as of short duration power-off can be carried out to supply voltage It can.
In conclusion switch detection circuit provided in the present invention, can accurate detection to user pass through of short duration power-off The triggering command sent to power load 2, and control 3 switch operating state of power load is generated based on this triggering command, together When can guarantee that power load 3 has electricity always, provide possibility for intelligent wireless control of the user to power load 3, be user Convenience is provided to the use of power load 3, is conducive to the promotion and application of intelligent power equipment.
Based on the above embodiment, as shown in Fig. 2, Fig. 2 is the circuit knot of switch detection circuit provided in an embodiment of the present invention Structure schematic diagram can also further include in another embodiment of the present invention:
The flash switch 4 connected with power supply, 1 input terminal of detection module pass through the flash switch 4 and described Electric network source electrical connection.
Flash switch 4 in the present embodiment is that can be equivalent in above-described embodiment that supply voltage can control flash occur The mechanical switch of state, but it in the present invention and is not specifically limited with structure type.
For example, the structure of flash switch can be it is a kind of be similar on host computer can automatic rebounding mechanical switch, when It when flash switch is pressed, is switched and disconnects by flash between power supply and power load 3, when flash switch is released, supply Again by flash switch conduction between power supply and power load 3.
The specific structure of the flash switch 4 can also be the power switch being similar on the refrigerator with touch screen, user When touching flash switch, is disconnected between power supply and power load 3 by flash switch 4, opened when user does not touch the flash Guan Shi is connected by flash switch 4 again between power supply and power load 3.
There are also the flash of above-mentioned similar various structure types to switch, numerous to list herein.But it should it is understood that It is, as long as the user's operation flash switch 4 makes external power supply and the of short duration power-off of power load 3.
In addition, in subsequent each specific embodiment, everything is related to flash for the ease of understanding and explanation to scheme Switch 4, to be illustrated for capableing of the flash switch of this structure type of the mechanical switch of automatic rebounding.But not generation Flash switch 4 in table subsequent embodiment necessarily can automatic rebounding mechanical switch, other can realize the flash of similar functions Switch should also belong to protection scope of the present invention.
Based on the above embodiment, in another embodiment of the present invention, as shown in Fig. 2, can also further wrap It includes:
It is direct current that the output end of the flash switch 4, which is also connected with the AC conversion for exporting power supply, Current rectifying and wave filtering circuit 5;
The output end of the current rectifying and wave filtering circuit 5 is also connected with for high voltage direct current to be converted to low-voltage DC DC-DC converter 6;
The output end and 2 first input end of the control module of the DC-DC converter 6 and the power load 3 First input end is connected.
For the external power supply of power grid power supply, the usually AC power source of 220V, and for the operating voltage of control module 2 It is not the alternating current of 220V, therefore, it is necessary to carry out the conversion that exchange turns direct current to alternating current using current rectifying and wave filtering circuit 5, then The direct current of high pressure is converted to the direct current of low pressure using DC-DC converter 6, to meet the power demand of control module 2.When So, for power load 3, if operating voltage direct current, then be attached to rectifier filter 5 output end or The output end of DC-DC converter 6, with specific reference to its operating voltage alternative point of contact;If the operating voltage of power load 3 is to hand over Power load 3 then can directly be connected with the output end of flash switch 4 by galvanic electricity.In this regard, specific limit is not done in the present invention It is fixed.
In addition, the current rectifying and wave filtering circuit 5 in the present invention can be circuit structure made of rectifier bridge and filters in series, this One circuit structure is that exchange is converted into the common circuit structure of direct current, is not discussed in detail herein.
Based on above-mentioned any embodiment, in another embodiment of the present invention, as shown in Fig. 2, can also include:
The detection module 1 includes the first detection circuit 44 for detecting the off-position of the supply voltage, and is used Whether it is greater than the second detection circuit 42 of the preset duration in the power-off duration for detecting the supply voltage;
Wherein, the first input end of the control module 2 is electrically connected by the flash switch 4 and the power supply, Second input terminal is connected with the output end of first detection circuit 11, third input terminal and 12 phase of the second detection circuit Connection.
As previously mentioned, the flash state detected of detection module 1, had not only included the off-position of supply voltage, but also including disconnected The power-off duration of electricity condition.Flash state 4 is detected by two parts different circuit in the present embodiment, the first detection electricity Road 11 is for detecting off-position, and the second detection circuit 12 is for detecting power-off duration.Below further with specific embodiment Illustrate the particular circuit configurations of the first detection circuit 11 and the second detection circuit 12.
As shown in figure 3, Fig. 3 be another embodiment of the present invention provides the first detection circuit electrical block diagram, should Circuit may include:
First detection circuit 11 includes:
First capacitor C1, first resistor R1, second resistance R2, two-way optocoupler Q1,3rd resistor R3 and the second capacitor C2;
Wherein, the output end of flash switch 4 includes the first output for exporting the positive and negative pole tension of power supply respectively End and second output terminal;
The first end of first capacitor C1 is connected with the first output end of flash switch 4, second end and first resistor R1's First end is connected;
The second end of first resistor R1 is connected with the first input end of the first end of second resistance R2 and two-way optocoupler Q1 It connects;
The second end of second resistance R2 is connected with the second input terminal of two-way optocoupler Q1 with the second output terminal of flash switch 4 It connects;
The first end of 3rd resistor R3 is connected with the output end of DC-DC converter 6, and the of second end and the second capacitor C2 The collector output end of one end and two-way optocoupler Q2 are connected;
The transmitting output end of the second end of second capacitor C2 and two-way optocoupler Q2 ground connection;
And the second end of 3rd resistor R3 is the output end of the first detection circuit 11, and is connected with control module 2.
Because the external power supply that flash switch 4 is connected is alternating current, there are two output ends for the tool of flash switch 4, divide Not Shu Chu alternating current generating positive and negative voltage.
When 4 normal ON external power supply of flash switch and electrical equipment, electric current have first capacitor C1, first resistor R1 with And second resistance R2 normally, and the voltage at the both ends second resistance R2 and two-way optocoupler Q1 both end voltage are equal in magnitude, and because It is alternating voltage for first resistor R1 both end voltage, bidirectional luminescence diode is lit in two-way optocoupler Q1, so that two-way The collector and emitter of phototriode T1 in optocoupler Q1 remains open.
At the same time, 3rd resistor R3 first end is connected with the output end of DC-DC converter 6, second end and the second electricity The first end for holding C2 connects;The second end of second capacitor C2 is grounded, because the output of DC-DC converter 6 is direct current, the second electricity Hold C2 to be equivalent to 3rd resistor R3 and ground terminal disconnection, and the second end of 3rd resistor R3 is the defeated of the first detection circuit 11 Outlet.So, the voltage of the second end output of 3rd resistor R3 is the voltage value of the output end of DC-DC converter 6, for high electricity Ordinary telegram pressure.
When flash switch 4 disconnects the circuit between external power supply and electrical equipment, first capacitor C1 electric discharge is two-way Optocoupler Q1 power supply, and with the extension of discharge time, two-way optocoupler Q1 both end voltage gradually decreases, when the both ends two-way optocoupler Q2 Voltage is less than the luminous voltage of bidirectional luminescence diode, then bidirectional luminescence diode does not shine.Phototriode T1 at this time Collector and emitter conducting, the second end ground connection of 3rd resistor C3, then, the output end of the first detection circuit 11 exports low electricity It is flat.
As shown in figure 4, Fig. 4 is the output voltage variation tendency coordinate diagram of current rectifying and wave filtering circuit in flash state.Wherein, when Between t0Lasting duration, U are pressed for user's flash switch0For t0The corresponding voltage of 5 output end U of moment current rectifying and wave filtering circuit Value, when that is to say flash state, the minimum voltage of 5 output end of current rectifying and wave filtering circuit.In t0After moment, since flash opens 4 quilts It unclamps, the output end voltage U of current rectifying and wave filtering circuit 5 can rise again.From the figure 3, it may be seen that the output end voltage of current rectifying and wave filtering circuit 5 U is in the variation tendency risen after falling before.
DC-DC converter 6 is buck convertor, and the voltage of the input terminal of DC-DC converter 6 is current rectifying and wave filtering circuit 5 output end voltage U.The fixed voltage of the output end of DC-DC converter 6 is U1;When U is greater than U1, the output of DC-DC converter 6 Voltage value is U1If U is less than U1, then the output voltage values of DC-DC converter 6 are 0.
When there is flash state in supply voltage, although the output voltage of the output end of flash switch 4 is 0, rectification The voltage of 5 output end U of filter circuit first drops to be risen afterwards.For the first detection circuit 11, as long as in t0When, rectifying and wave-filtering The output voltage U of circuit 50Greater than U1, then output voltage of the DC-DC converter 6 in entire flash state remains U1Not by The influence of flash state can provide constant voltage U for the first end of control module 2 and 3rd resistor R31.Control module 2 The electric signal for receiving the output of 11 output end of the first detection circuit presents after becoming low level from high level and becomes high level Variation tendency, the information that flash state occurs in supply voltage can be obtained according to the variation tendency of this electric signal.
For U0Size be and 5 internal element model of the duration of 4 push switch of flash switch and current rectifying and wave filtering circuit It is related.In practical applications, it is accustomed to lasting duration when can be according to user operable switch and selects suitable current rectifying and wave filtering circuit 5。
In addition, the voltage value of two-way two input terminals of optocoupler Q1 drops to less than two-way in the first detection circuit 11 T should be less than the time required to the voltage of light emitting diode0, just can guarantee and start to increase in the output end voltage U of current rectifying and wave filtering circuit 6 Before big, 11 output end of the first detection circuit could export low level electric signal, specifically, can pass through selection suitable first The model of resistance R1, second resistance R2, first capacitor C1 and two-way optocoupler Q1, to ensure that the first detection circuit 11 can dodge Low level electric signal is exported when disconnected state.
In addition, in the first detection circuit 11 first resistor R1 be for the voltage to the both ends two-way optocoupler Q1 so that When the both ends first capacitor C1 are discharged, the voltage at the both ends two-way optocoupler Q1 can be dropped rapidly to lower than its bidirectional luminescence diode Luminous voltage.And by two-way optocoupler Q1 parallel connection second resistance R2, it can further reduce the two-way hair of two-way optocoupler Q1 The partial pressure of optical diode.
Specifically, the resistance value of first resistor R1 can be 5 times of the resistance value of second resistance R2 or so, at this time second resistance R2 The alternating voltage at both ends is the 1/20 of alternating voltage.Simultaneously it is also contemplated that the current conditions of entire circuit, electric current are crossed senior general and caused Resistance heating is serious, and the maximum current which allows is 1A.The model of device each in circuit specifically can be, first The capacitance size of capacitor C1 is 10uF, and first resistor R1 is 200K Ω, and second resistance R2 is 10K Ω.Certainly this is only a kind of tool Body ground embodiment, can choose the electrical part of other models and running parameter in practical applications.
Further, between 3rd resistor R3 and the output end of DC-DC converter 6, the 4th resistance R4 can also be set, For being divided to 3rd resistor R3.
So, when the collector of the phototriode T1 in two-way optocoupler Q1 and emitter disconnect, the of 3rd resistor R3 The size of two end output voltages is just related to the resistance value ratio of 3rd resistor R3 and the 4th resistance R4, and certain 4th resistance R4 can be with It needs to be arranged according to actual circuit, the 4th resistance R4 can also be not provided with, as long as the output voltage of the first detection circuit 11 reaches To requirement.
As previously mentioned, the first detection circuit 11 is able to detect that the operation pressing of flash switch 4 duration t0No more than pre- timing Long t1When, it that is to say the compressing time t to flash switch 40Drop to U no more than U1Required scheduled duration t1, just can guarantee One detection circuit 11 detects the flash state.
But when user's operation controls flash switch 4, do not ensure that it presses the time t of flash switch 40Centainly Less than scheduled duration t1If t0Greater than t1, arrange constant voltage of the output voltage U less than DC-DC converter 6 of filter circuit 5 U1 includes then control module 2 and 3rd resistor R3 first end in entire circuit all by power down.Flash switch is unclamped in user After 4, control module 2 is re-powered, and the output end output of the first detection circuit 11 is high level at this time.This state and outer After portion's grid cut-off, the state that entire circuit re-powers is similar, and control module 2 can not just judge that the off-position is that power grid is disconnected Electricity or user's operation flash switch time partially long and appearance state, for this purpose, providing the second detection circuit in the present embodiment 12。
Based on the above embodiment, in another embodiment of the present invention, the second detection electricity in switch detection circuit Road 12 can specifically include:
5th resistance R5, third capacitor C3, the 6th resistance R6, switching element T 2 and the 7th resistance R7;
Wherein, the first end of the 5th resistance R5 is connected with the output end of DC-DC converter 6, second end and third capacitor The first end of C3 and the first end of the 6th resistance R6 are connected;The second end of third capacitor C3 and the second end of the 6th capacitor C6 Ground connection;
The first end of 7th resistance R7 is connected with the output end of DC-DC converter 6, and the of second end and switching element T 2 One output end is connected;The second output terminal of switching element T 2 is grounded;
The second end of 5th resistance R5 is also connected with the input terminal of switching element T 2, and the second of the 7th resistance R7 brings out End is the output end of the second detection circuit 12;
When the input terminal voltage of switching element T 2 is greater than preset voltage value, the first output end of switching element T 2 and second Output end disconnects;When the input terminal voltage of switching element T 2 be less than preset voltage value when, the first output end of switching element T 2 and Second output terminal is connected.
As shown in figure 5, Fig. 5 is the electrical block diagram of the second detection circuit provided in an embodiment of the present invention.
In the output voltage U that the output end of DC-DC converter 6 is kept constant1When, in the second detection circuit, switching device The input terminal voltage U of T13For the second end voltage of the 5th resistance R5, because the partial pressure of the 5th resistance R5 and the 6th resistance R6 acts on, Input terminal voltage U3Less than the conducting voltage U of switching element T 24, the first output end of switching element T 2 and the second output at this time It is connected between end;And the second end ground terminal of the 7th resistance R7, the second detection circuit 12 export low level.
When grid cut-off, the output voltage of the output end of DC-DC converter is 0, third capacitor C3 electric discharge, because power grid is disconnected Electric general persistence is relatively long, so before power grid is connected again, the generally all release completely of the electric energy of third capacitor C3 It completes.When power grid is powered again, the output voltage of DC-DC converter 6 is U1When, the second detection circuit 12 re-powers, then because It is divided for the charging of third capacitor C3, causes the voltage of 2 input terminal of switching element T larger, the first output end of switching element T 2 It is disconnected with second output terminal, the second end voltage of the 7th resistance R7 is equal to U1, then the second detection circuit 12 exports high level.
When flash switch 4 is persistently pressed, and the output voltage of DC-DC converter 6 is caused to be 0, the second detection circuit 12 In third capacitor C3 in be stored with electric energy, start to discharge, to switching device T2 power, the first output end of switching element T 2 and Second output terminal disconnects;If the voltage of third capacitor C3 does not discharge completely, and is greater than derailing switch to the supply voltage of switching device The conducting voltage U of part T24When, flash switch 4 is released, then the output voltage of DC-DC converter 6 becomes U again1When, although meeting The input voltage of the charging voltage of third capacitor C3, but switching element T 2 may remain in greater than conducting voltage U4State, In other words, the first output end of switching element T 2 and second output terminal remain off, and the second detection circuit 11 exports low Level.
In summary it is found that for the second detection circuit 12, by grid cut-off to re-powering, the second detection circuit The voltage of 12 output ends is first to export high level, then export low level;And when flash state, the electricity of the second detection circuit 12 output Pressure is to continue output low level, can pass through the electricity of 12 output end of the second detection circuit after control module 2 re-powers as a result, Pressure judges power-off caused by grid cut-off or flash switch 4, and then determines whether to switch the working condition of power load.
Optionally, NMOS tube or NPN type triode specifically be can be for switching device.
When switching device is NMOS tube, the drain electrode of NMOS tube is connected with the output end of DC-DC converter, and source electrode connects Ground, grid are connected with the second end of the 7th resistance.
When switching device is NPN type triode, the collector of NPN type triode and the output end phase of DC-DC converter Connection, emitter ground connection, base stage are connected with the second end of the 7th resistance.
As previously mentioned, the second detection circuit 12 exports low level after DC-DC converter 5 is re-powered because of flash state Premise be, third capacitor C3 the supply voltage to switching device T2 be not less than conducting voltage U4When, unclamp flash switch 4, so that DC-DC converter 5 re-powers.
In the embodiment that switching element T 2 is NPN type triode, the emitter of NPN type triode is grounded, in other words U4Equal to ground voltage, as long as flash switch 4, which is released, can guarantee second before the electric energy of third capacitor C3 discharges completely Detection circuit 12 exports low level.Therefore, in actual application, if requiring the power-off duration of flash state larger, i.e., Energy storage may be selected and discharge slower capacitor as third capacitor C3 compared with multivoltage.
Optionally, the second detection circuit 12 further includes being connected to the input of the second end and switching element T 2 of the 5th resistance R5 The 8th resistance R8 between end.
Between the 5th resistance R5 and switching element T 2, the 8th resistance R8 can be set according to actual needs, thus split It closes device T2 and plays the role of partial pressure, if switching element T 2 does not need the 8th resistance R8 partial pressure, the 8th resistance can be removed R8。
As previously mentioned, the switch detection circuit in the present invention is the intelligentized control method in order to realize electrical equipment, therefore, In another specific embodiment of the invention, can also further include:
Control module 2 further includes the wireless telecommunications for receiving the switching command of switching 3 current working status of power load Module.
Certainly, wireless communication module can be built in the functional module in control module 2, be also possible to independently of control mould Individual devices except block 2, it might even be possible to be that other in electrical equipment can control in the module of 3 working condition of power load The functional module set as long as can control the switching command of electrical equipment working condition by reception of wireless signals, and this is referred to The module for being sent to and controlling the power load 3 work is enabled, for the actual setting mode of wireless telecommunications mould group, in the present invention It is not particularly limited.
Specifically, the present invention in power load 3 specifically can be lamps and lanterns, when user by switch on wall closing lamps and lanterns it Afterwards, still lighting and extinguishing for lamps and lanterns can be controlled by mobile phone or remote control etc..
Certainly power load 3 is also not precluded in the present invention is such as refrigerator, air-conditioning, TV, air purifier etc. one The electrical equipment of class, to being not specifically limited in this present invention.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part Explanation.

Claims (12)

1. a kind of switch detection circuit, which is characterized in that including detection module, control module and power load;
The detection module accesses supply voltage for input terminal, and detects the flash state of the supply voltage, and when detection When to the flash state, then by output end to the control module transmission level signal;Wherein, the flash state is institute The power-off duration for stating supply voltage appearance is not more than the off-position of preset duration;
The control module is connected with the detection module and the power load respectively, receives the level for working as When signal, control switches the power load current working status.
2. switch detection circuit as described in claim 1, which is characterized in that further include that the flash connected with power supply is opened It closes, the detection module input terminal is electrically connected by flash switch and the electric network source.
3. switch detection circuit as claimed in claim 2, which is characterized in that the detection module includes for detecting the confession First detection circuit of the off-position of piezoelectric voltage, and power-off duration for detecting the supply voltage whether be greater than it is described pre- If the second detection circuit of duration;
Wherein, the first input end of the control module is electrically connected by flash switch and the power supply, and second is defeated Enter end to be connected with the output end of first detection circuit, third input terminal is connected with second detection circuit;
The first input end of the power load by the flash switch and the power supply be electrically connected, the second input terminal and The control module is connected.
4. switch detection circuit as claimed in claim 3, which is characterized in that the output end of the flash switch is also connected with use In the current rectifying and wave filtering circuit that the AC conversion for exporting power supply is direct current;
The output end of the current rectifying and wave filtering circuit is also connected with the DC- for converting high voltage direct current to low-voltage DC conversion DC converter;
First input of the output end of the DC-DC converter and the control module first input end and the power load End is connected.
5. switch detection circuit as claimed in claim 4, which is characterized in that first detection circuit includes:
First capacitor, first resistor, second resistance, two-way optocoupler, 3rd resistor and the second capacitor;
Wherein, the output end of flash switch includes first defeated for exporting the positive and negative pole tension of the power supply respectively Outlet and second output terminal;
The first end of the first capacitor is connected with the first output end that the flash switchs, second end and the first resistor First end be connected;The of the first end and the two-way optocoupler of the second end of the first resistor and the second resistance One input terminal is connected;The second input terminal and flash switch of the second end of the second resistance and the two-way optocoupler Second output terminal is connected;
The first end of the 3rd resistor is connected with the output end of the DC-DC converter, second end and second capacitor First end and the collector output end of the two-way optocoupler be connected;The second end and the bi-directional light of second capacitor The transmitting output end of coupling is grounded;And the second end of the 3rd resistor be first detection circuit output end, and with it is described Control module is connected.
6. switch detection circuit as claimed in claim 5, which is characterized in that first detection circuit further includes both ends and institute State the 4th resistance that the second capacitor both ends are connected in parallel.
7. switch detection circuit as claimed in claim 4, which is characterized in that second detection circuit includes:
5th resistance, third capacitor, the 6th resistance, switching device and the 7th resistance;
Wherein, the first end of the 5th resistance is connected with the output end of the DC-DC converter, second end and the third The first end of capacitor and the first end of the 6th capacitor are connected;The of the second end of the third capacitor and the 6th capacitor Two ends ground connection;The first end of 7th resistance is connected with the output end of the DC-DC converter, second end and the switch First output end of device is connected;The second output terminal of the first switch device is grounded;The second end of 5th resistance Also it is connected with the input terminal of the switching device;And the second end outlet of the 7th resistance is second detection circuit Output end;
When the input terminal voltage of the switching device is greater than preset voltage value, the first output end of the switching device and second Output end disconnects;When the input terminal voltage of the switching device is less than preset voltage value, the first output of the switching device End is connected with second output terminal.
8. switch detection circuit as claimed in claim 7, which is characterized in that the switching device is three pole of metal-oxide-semiconductor or NPN type Pipe.
9. switch detection circuit as claimed in claim 7, which is characterized in that second detection circuit further includes being connected to institute State the 8th resistance between the second end of the 5th resistance and the input terminal of the switching device.
10. ON-OFF control circuit as described in any one of claim 1 to 9, which is characterized in that the control module further includes using In the wireless communication module for the switching command for receiving the switching power load current working status.
11. ON-OFF control circuit as claimed in claim 10, which is characterized in that the power load is lamps and lanterns.
12. ON-OFF control circuit as claimed in claim 10, which is characterized in that the working condition of the power load includes bright State or state of going out.
CN201910414546.4A 2018-07-12 2019-05-17 A kind of switch detection circuit Pending CN109963396A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/095557 WO2020011224A1 (en) 2018-07-12 2019-07-11 Flashoff switch detection circuit and electronic device including same

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2018107672718 2018-07-12
CN201810767271.8A CN108650764A (en) 2018-07-12 2018-07-12 Switch detection circuit and lamps and lanterns

Publications (1)

Publication Number Publication Date
CN109963396A true CN109963396A (en) 2019-07-02

Family

ID=63751630

Family Applications (3)

Application Number Title Priority Date Filing Date
CN201810767271.8A Pending CN108650764A (en) 2018-07-12 2018-07-12 Switch detection circuit and lamps and lanterns
CN201920712280.7U Active CN210928091U (en) 2018-07-12 2019-05-17 Switch detection circuit
CN201910414546.4A Pending CN109963396A (en) 2018-07-12 2019-05-17 A kind of switch detection circuit

Family Applications Before (2)

Application Number Title Priority Date Filing Date
CN201810767271.8A Pending CN108650764A (en) 2018-07-12 2018-07-12 Switch detection circuit and lamps and lanterns
CN201920712280.7U Active CN210928091U (en) 2018-07-12 2019-05-17 Switch detection circuit

Country Status (1)

Country Link
CN (3) CN108650764A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020011224A1 (en) * 2018-07-12 2020-01-16 青岛亿联客信息技术有限公司 Flashoff switch detection circuit and electronic device including same
CN111246636A (en) * 2019-11-26 2020-06-05 深圳市酷客智能科技有限公司 Double-control switch, double-control system and control method
CN113890145A (en) * 2021-09-29 2022-01-04 安徽华米信息科技有限公司 Control circuit for wearable equipment and hearing aid
CN117040075A (en) * 2023-10-09 2023-11-10 潍柴新能源动力科技有限公司 Power supply control device, system and vehicle

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650764A (en) * 2018-07-12 2018-10-12 青岛亿联客信息技术有限公司 Switch detection circuit and lamps and lanterns
CN109917278A (en) * 2019-03-29 2019-06-21 宁波奥克斯电气股份有限公司 A kind of forceful electric power logic detection system and method
WO2020211113A1 (en) * 2019-04-19 2020-10-22 青岛亿联客信息技术有限公司 Intelligent lamp control system and flicker control circuit thereof
CN110139443B (en) * 2019-05-27 2022-03-01 青岛亿联客信息技术有限公司 Net clearing device of electrical equipment, lamp equipment and net clearing control method
CN110049608B (en) * 2019-06-04 2022-09-09 青岛亿联客信息技术有限公司 Intelligent lamp and control method thereof
CN112707301B (en) * 2021-01-06 2022-08-19 上海新时达电气股份有限公司 Switch detection method, device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917503A (en) * 2012-10-25 2013-02-06 常州矽能电子科技有限公司 LED driver system with energy storage function
CN103997198A (en) * 2014-05-09 2014-08-20 广东美的暖通设备有限公司 Voltage short interruption noise immunity promoting circuit of transducer and transducer
US20150026499A1 (en) * 2013-07-18 2015-01-22 Chih-Ju HUANG Circuit for changing load operation using temporary power-off means
CN104378865A (en) * 2013-08-13 2015-02-25 施建强 Method for controlling intelligent switch through single live wire
CN105182802A (en) * 2014-06-23 2015-12-23 武汉市酷享科技有限公司 Switch system based on manual and wireless double-control and control method therefor
CN105634111A (en) * 2016-03-07 2016-06-01 成都比善科技开发有限公司 Standby battery based uninterruptible power supply for entrance guard
CN105934040A (en) * 2016-06-15 2016-09-07 陕西亚成微电子股份有限公司 Dimming circuit
CN106900129A (en) * 2017-03-21 2017-06-27 生迪智慧科技有限公司 The regulation device and illuminator of illuminator
CN107094326A (en) * 2016-02-18 2017-08-25 海洋王(东莞)照明科技有限公司 LED lamp controls circuit
CN207573233U (en) * 2017-12-21 2018-07-03 深圳Tcl新技术有限公司 A kind of electrical equipment and its capacitance automatic discharge circuit
CN210928091U (en) * 2018-07-12 2020-07-03 青岛亿联客信息技术有限公司 Switch detection circuit

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917503A (en) * 2012-10-25 2013-02-06 常州矽能电子科技有限公司 LED driver system with energy storage function
US20150026499A1 (en) * 2013-07-18 2015-01-22 Chih-Ju HUANG Circuit for changing load operation using temporary power-off means
CN104378865A (en) * 2013-08-13 2015-02-25 施建强 Method for controlling intelligent switch through single live wire
CN103997198A (en) * 2014-05-09 2014-08-20 广东美的暖通设备有限公司 Voltage short interruption noise immunity promoting circuit of transducer and transducer
CN105182802A (en) * 2014-06-23 2015-12-23 武汉市酷享科技有限公司 Switch system based on manual and wireless double-control and control method therefor
CN107094326A (en) * 2016-02-18 2017-08-25 海洋王(东莞)照明科技有限公司 LED lamp controls circuit
CN105634111A (en) * 2016-03-07 2016-06-01 成都比善科技开发有限公司 Standby battery based uninterruptible power supply for entrance guard
CN105934040A (en) * 2016-06-15 2016-09-07 陕西亚成微电子股份有限公司 Dimming circuit
CN106900129A (en) * 2017-03-21 2017-06-27 生迪智慧科技有限公司 The regulation device and illuminator of illuminator
CN207573233U (en) * 2017-12-21 2018-07-03 深圳Tcl新技术有限公司 A kind of electrical equipment and its capacitance automatic discharge circuit
CN210928091U (en) * 2018-07-12 2020-07-03 青岛亿联客信息技术有限公司 Switch detection circuit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020011224A1 (en) * 2018-07-12 2020-01-16 青岛亿联客信息技术有限公司 Flashoff switch detection circuit and electronic device including same
CN111246636A (en) * 2019-11-26 2020-06-05 深圳市酷客智能科技有限公司 Double-control switch, double-control system and control method
CN113890145A (en) * 2021-09-29 2022-01-04 安徽华米信息科技有限公司 Control circuit for wearable equipment and hearing aid
CN117040075A (en) * 2023-10-09 2023-11-10 潍柴新能源动力科技有限公司 Power supply control device, system and vehicle

Also Published As

Publication number Publication date
CN108650764A (en) 2018-10-12
CN210928091U (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN109963396A (en) A kind of switch detection circuit
CN210670696U (en) Detection circuit for flash switch
CN210670688U (en) Flash switch detection circuit and intelligent lamp
CN210129991U (en) Control device
CN202454840U (en) Multipurpose delay power socket
EP3761478A1 (en) Wireless control module, wireless wall switch, powered device and system
CN101419434A (en) Capacitive switch power supply with low power consumption standby function
CN211063817U (en) Flash detection control device, electronic equipment comprising same and system
CN105472815A (en) LED illumination lamp and control chip therefor, and method for color-temperature regulation and control for LED illumination lamp
CN110337162B (en) Single-live-wire power taking system and method based on intelligent switch
WO2020011224A1 (en) Flashoff switch detection circuit and electronic device including same
CN205051933U (en) LED's drive power supply
CN107148132B (en) Single live wire on-state power taking circuit
CN211720263U (en) Intelligent switch, wireless control device and power supply control system
WO2008138223A1 (en) A dimming control signal transmission circuit of the electronic dimming ballast
CN201315389Y (en) Energy-saving socket
CN207489241U (en) A kind of electrical equipment and its Zero consumption standby circuit
CN103369766A (en) A head lamp and a lighting circuit capable of sensing ambient illumination
CN100377470C (en) Method for realiznig zero power consumption standby of household appliance power supply by super capacity
CN202127468U (en) Power supply control device
CN111538268B (en) Single-fire electricity taking intelligent switch, wireless control device and power supply control system
CN102611182A (en) Super capacitance charger
CN203704250U (en) Convection type heating air-conditioner controller
CN202550642U (en) Super capacitor charger
CN103052198B (en) Power supply processing device and discharging control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination