CN105676055A - Power failure detection method based on indicating lamp switch - Google Patents
Power failure detection method based on indicating lamp switch Download PDFInfo
- Publication number
- CN105676055A CN105676055A CN201610208577.0A CN201610208577A CN105676055A CN 105676055 A CN105676055 A CN 105676055A CN 201610208577 A CN201610208577 A CN 201610208577A CN 105676055 A CN105676055 A CN 105676055A
- Authority
- CN
- China
- Prior art keywords
- resistance
- switch
- resistor
- voltage
- power failure
- 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
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/50—Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
Abstract
The invention discloses a power failure detection method based on an indicating lamp switch. When a microcontroller enables a switch S2 to be closed, a resistor R3 and a resistor R4 are connected in parallel, and resistance value is small; voltage passes through a resistor R1, a resistor R2, the resistor R3 and the resistor R4 to form a loop; and the microcontroller detects the voltage of a connection point between the resistor R2 and the resistor R3 with respect to a reference point to be in a low level. The power failure detection method based on the indicating lamp switch is simple in design, reasonable in structure and low in cost; the method can be applied to many electronic equipment needing to detect commercial power failure, such as motor equipment for processing production, which needs to be cut off when power fails suddenly to prevent the motor equipment from working automatically when power restores; and the method can also be applied to emergency lighting, so that when power fails, an emergency lamp can be turned on automatically to prevent sudden changing from light to darkness, which influences normal work and activities.
Description
Technical field
The present invention relates to a kind of detection method, specifically a kind of power failure detection method based on indicator light switch.
Background technology
In the electronic device, a lot of occasions need the power failure to civil power or incoming call to make detection, and take the counter-measure being correlated with, and to avoid accident, or make troubles. And much all higher comparatively speaking as the equipment cost that UPS, power system monitor etc. are professional, it is difficult to universal. In recent years also because the safety of lithium battery is greatly improved, it is widely used to each field. The detection application that has a power failure adopting the continuous electricity of lithium battery also becomes the direction of development. The present invention provides a kind of design simple, and the power failure based on indicator light switch rational in infrastructure, with low cost detects and realizes method.
Summary of the invention
It is an object of the invention to provide a kind of power failure detection method based on indicator light switch, with the problem solving to propose in above-mentioned background technology.
For achieving the above object, the present invention provides following technical scheme:
A kind of power failure detection method based on indicator light switch, when microcontroller allows switch S2 Guan Bi, resistance R3 and resistance R4 is in parallel, resistance value is less, voltage forms loop through resistance R1, resistance R2, resistance R3 and resistance R4, and between now microcontroller detection resistance R2 and resistance R3, junction point is low level relative to the voltage of reference point, and when microprocessor controls switchs S2 disconnection, voltage is through resistance R1, resistance R2, resistance R3 forms loop, owing to sample resistance R3 becomes big, now between detection resistance R2 and resistance R3, junction point is high level relative to the voltage of parameter point, now can determine whether as civil power normal, switch S1 is off-state, when no matter switch S2 be close also be off time, when voltage between microcontroller detection resistance R2 and resistance R3 is all high level, it is judged as that civil power is normal, switch S1 is closure state, when no matter switch S2 be close also be off time, when voltage between microcontroller detection resistance R2 and resistance R3 is all low level, it is judged as mains failure.
As the present invention further scheme: described resistance R1 is in parallel with switch S1 again after connecting with LED.
Compared with prior art, the invention has the beneficial effects as follows: the present invention provides a kind of design simple, power failure based on indicator light switch rational in infrastructure, with low cost detects and realizes method, the method may be used in the electronic equipment a lot needing to detect mains failure, motor device such as processing, after having a power failure suddenly, needs cut off, automatically work together when preventing from sending a telegram here again, emergency lighting can also be applied to, emergency light is automatically opened up, in case suddenly from bright to going out, affecting normal operation and activity when having a power failure.
Accompanying drawing explanation
Fig. 1 is the schematic block circuit diagram of the power failure detection method based on indicator light switch.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments. Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Refer to Fig. 1, in the embodiment of the present invention, a kind of power failure detection method based on indicator light switch, when microcontroller allows switch S2 Guan Bi, resistance R3 and resistance R4 is in parallel, resistance value is less, and voltage forms loop through resistance R1, resistance R2, resistance R3 and resistance R4, and between now microcontroller detection resistance R2 and resistance R3, junction point is low level relative to the voltage of reference point, and when microprocessor controls switchs S2 disconnection, voltage is through resistance R1, resistance R2, resistance R3 forms loop, owing to sample resistance R3 becomes big, now between detection resistance R2 and resistance R3, junction point is high level relative to the voltage of parameter point, now can determine whether as civil power normal, switch S1 is off-state, when no matter switch S2 be close also be off time, when voltage between microcontroller detection resistance R2 and resistance R3 is all high level, it is judged as that civil power is normal, switch S1 is closure state, when no matter switch S2 be close also be off time, when voltage between microcontroller detection resistance R2 and resistance R3 is all low level, it is judged as mains failure, described resistance R1 is in parallel with switch S1 again after connecting with LED.
The operation principle of the present invention is: refer to Fig. 1, when microcontroller allows switch S2 Guan Bi, resistance R3 and resistance R4 is in parallel, resistance value is less, voltage forms loop through resistance R1, resistance R2, resistance R3 and resistance R4, and between now microcontroller detection resistance R2 and resistance R3, junction point is low level relative to the voltage of reference point, and when microprocessor controls switchs S2 disconnection, voltage is through resistance R1, resistance R2, resistance R3 forms loop, owing to sample resistance R3 becomes big, now between detection resistance R2 and resistance R3, junction point is high level relative to the voltage of parameter point, now can determine whether as civil power normal, switch S1 is off-state, when no matter switch S2 be close also be off time, when voltage between microcontroller detection resistance R2 and resistance R3 is all high level, it is judged as that civil power is normal, switch S1 is closure state, when no matter switch S2 be close also be off time, when voltage between microcontroller detection resistance R2 and resistance R3 is all low level, it is judged as mains failure.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, and when without departing substantially from the spirit of the present invention or basic feature, it is possible to realize the present invention in other specific forms. Therefore, no matter from which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the invention rather than described above limits, it is intended that all changes in the implication of the equivalency dropping on claim and scope included in the present invention. Any accompanying drawing labelling in claim should be considered as the claim that restriction is involved.
In addition, it is to be understood that, although this specification is been described by according to embodiment, but not each embodiment only comprises an independent technical scheme, this narrating mode of description is only for clarity sake, description should be made as a whole by those skilled in the art, and the technical scheme in each embodiment through appropriately combined, can also form other embodiments that it will be appreciated by those skilled in the art that.
Claims (2)
1. the power failure detection method based on indicator light switch, it is characterized in that, when microcontroller allows switch S2 Guan Bi, resistance R3 and resistance R4 is in parallel, resistance value is less, voltage forms loop through resistance R1, resistance R2, resistance R3 and resistance R4, and between now microcontroller detection resistance R2 and resistance R3, junction point is low level relative to the voltage of reference point, and when microprocessor controls switchs S2 disconnection, voltage is through resistance R1, resistance R2, resistance R3 forms loop, owing to sample resistance R3 becomes big, now between detection resistance R2 and resistance R3, junction point is high level relative to the voltage of parameter point, now it is judged as that civil power is normal, switch S1 is off-state, when no matter switch S2 be close also be off time, when voltage between microcontroller detection resistance R2 and resistance R3 is all high level, it is judged as that civil power is normal, switch S1 is closure state, when no matter switch S2 be close also be off time, when voltage between microcontroller detection resistance R2 and resistance R3 is all low level, it is judged as mains failure.
2. the power failure detection method based on indicator light switch according to claim 1, it is characterised in that described resistance R1 is in parallel with switch S1 again after connecting with LED.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610208577.0A CN105676055A (en) | 2016-04-06 | 2016-04-06 | Power failure detection method based on indicating lamp switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610208577.0A CN105676055A (en) | 2016-04-06 | 2016-04-06 | Power failure detection method based on indicating lamp switch |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105676055A true CN105676055A (en) | 2016-06-15 |
Family
ID=56308343
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610208577.0A Pending CN105676055A (en) | 2016-04-06 | 2016-04-06 | Power failure detection method based on indicating lamp switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105676055A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06338394A (en) * | 1993-05-27 | 1994-12-06 | Mitsubishi Denki Shomei Kk | Emergency luminaire |
JP4848096B2 (en) * | 2001-05-29 | 2011-12-28 | 日本高圧電気株式会社 | Fault location method and apparatus for high voltage distribution lines |
CN202854223U (en) * | 2012-10-10 | 2013-04-03 | 湖州聚能自动化技术有限公司 | Power failure detection device |
CN203101494U (en) * | 2013-03-15 | 2013-07-31 | 深圳市银河表计股份有限公司 | AC (alternating current) electric supply power failure detection circuit, equipment and system |
CN105262354A (en) * | 2015-10-26 | 2016-01-20 | 苏州佳世达电通有限公司 | Alternating-current power source detection device |
-
2016
- 2016-04-06 CN CN201610208577.0A patent/CN105676055A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06338394A (en) * | 1993-05-27 | 1994-12-06 | Mitsubishi Denki Shomei Kk | Emergency luminaire |
JP4848096B2 (en) * | 2001-05-29 | 2011-12-28 | 日本高圧電気株式会社 | Fault location method and apparatus for high voltage distribution lines |
CN202854223U (en) * | 2012-10-10 | 2013-04-03 | 湖州聚能自动化技术有限公司 | Power failure detection device |
CN203101494U (en) * | 2013-03-15 | 2013-07-31 | 深圳市银河表计股份有限公司 | AC (alternating current) electric supply power failure detection circuit, equipment and system |
CN105262354A (en) * | 2015-10-26 | 2016-01-20 | 苏州佳世达电通有限公司 | Alternating-current power source detection device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104260677A (en) | Vehicle power supply control circuit and car | |
CN206517515U (en) | A kind of camera failover device | |
CN105098995B (en) | On off state supervising device in a kind of transformer station's cabinet | |
CN106487621A (en) | A kind of smart jack of automatic detection network and the application by detection network signal | |
CN202043327U (en) | Marker lamp with guiding light stream | |
CN204249952U (en) | A kind of vehicle power control circuit and automobile | |
CN208723536U (en) | A kind of electromotor integrated protection system for extractive equipment | |
CN105676055A (en) | Power failure detection method based on indicating lamp switch | |
CN103823421A (en) | Coal mine underground safety production intelligent monitoring system | |
CN205720501U (en) | A kind of power failure detecting system based on indicator light switch | |
CN205451425U (en) | Domestic security alarm | |
CN205123107U (en) | Emergency power source host computer cabinet operating panel | |
CN205384476U (en) | Row is inserted to multi -functional intelligence | |
CN204065358U (en) | A kind of AC generator for vehicle and AC generator for vehicle failure detector circuit | |
CN202019471U (en) | Emergency evacuation sign illuminating lamp with fireproof door monitoring function | |
CN203465345U (en) | External voltage automatic detection and alarm circuit | |
CN104218537A (en) | An anti-reversal and undervoltage protection circuit for a battery and a lamp | |
CN207692116U (en) | Fire emergency equipment | |
CN205210288U (en) | A detecting system for lamp holder abnormal conditions | |
CN204302470U (en) | A kind of power detector of telepilot | |
CN203632918U (en) | Intelligent light-fixture control system | |
CN102798072A (en) | Power failure emergency illuminating lamp device | |
CN203720980U (en) | Temperature-sensing alarm circuit and temperature-sensing plug and socket | |
CN204041073U (en) | A kind of mining guide's prior-warning device | |
CN204667598U (en) | Response type gas detecting alarm system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160615 |
|
RJ01 | Rejection of invention patent application after publication |