CN109085414A - Voltage detection method and device - Google Patents

Voltage detection method and device Download PDF

Info

Publication number
CN109085414A
CN109085414A CN201810911515.5A CN201810911515A CN109085414A CN 109085414 A CN109085414 A CN 109085414A CN 201810911515 A CN201810911515 A CN 201810911515A CN 109085414 A CN109085414 A CN 109085414A
Authority
CN
China
Prior art keywords
voltage
level
detection module
threshold detection
voltage threshold
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.)
Granted
Application number
CN201810911515.5A
Other languages
Chinese (zh)
Other versions
CN109085414B (en
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.)
Shenzhen H&T Intelligent Control Co Ltd
Original Assignee
Shenzhen H&T Intelligent Control 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 Shenzhen H&T Intelligent Control Co Ltd filed Critical Shenzhen H&T Intelligent Control Co Ltd
Priority to CN201810911515.5A priority Critical patent/CN109085414B/en
Publication of CN109085414A publication Critical patent/CN109085414A/en
Application granted granted Critical
Publication of CN109085414B publication Critical patent/CN109085414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/25Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

It includes: voltage threshold detection module and control module that the embodiment of the present application, which discloses a kind of voltage detection method and device, the device, in which: voltage threshold detection module, for exporting the first level when the voltage magnitude received is greater than voltage threshold;When the voltage magnitude received is less than voltage threshold, second electrical level is exported;Control module, for the target component of detection voltage threshold detection module output level, target component is that second electrical level accounts for the ratio of voltage threshold detection module output level period of change or the first level accounts for the ratio of voltage threshold detection module output level period of change;Control module, is also used to the target component according to output level and the parameter that prestores determines size relation between alternating voltage and target voltage.Implement the embodiment of the present application, the complexity of voltage detecting can be reduced and improve the accuracy of voltage detecting.

Description

Voltage detection method and device
Technical field
This application involves field of circuit technology more particularly to a kind of voltage detection methods and device.
Background technique
In electronic circuit, in order to guarantee that the circuit of AC power source driving runs well, need to detect AC drive voltage It is whether abnormal, to ensure the qualification of driven circuit and stablize.In circuit application at present, ac voltage detection circuit can make It is realized with including the comparison circuit of operation amplifier chip.Come by comparing the alternating voltage of reference voltage and input detecting circuit Realize detection alternating voltage.
However, being detected in the method for alternating voltage using comparison circuit, the signal for being output to controller is analog signal, Need to occupy controller analog-to-digital conversion interface resource, circuit structure is complex, increases the complexity of voltage detection method.Separately Outside, need a reference voltage as benchmark using analog-to-digital conversion sampling interface in controller, which shakiness easily occurs Fixed situation, to reduce the accuracy of alternating voltage detection.
Summary of the invention
The embodiment of the present application proposes a kind of voltage detection method and device, can reduce the complexity of voltage detecting and mention The accuracy of high voltage detection.
In a first aspect, the embodiment of the present application provides a kind of voltage check device, the voltage check device is for detecting Size relation between alternating voltage and target voltage to be detected;Described device includes voltage threshold detection module and control mould Block, in which:
The voltage threshold detection module, for when the voltage magnitude received is greater than voltage threshold, output first to be electric It is flat;When the voltage magnitude received is less than the voltage threshold, second electrical level is exported;
The control module, for detecting the target component of the voltage threshold detection module output level, the target Parameter be the second electrical level account for the voltage threshold detection module output level period of change ratio or it is described first electricity The flat ratio for accounting for the voltage threshold detection module output level period of change;
The control module is also used to be determined according to the target component of the output level with the parameter prestored described to be checked Survey the size relation between voltage and target voltage.
Second aspect, the embodiment of the present application provide a kind of voltage detection method, and the voltage detection method is based on voltage Detection device, the voltage check device are used to detect the size relation between alternating voltage and target voltage to be detected;It is described Device includes voltage threshold detection module and control module;The voltage threshold detection module, for when the voltage amplitude received When value is greater than voltage threshold, the first level is exported;When the voltage magnitude received is less than the voltage threshold, the second electricity of output It is flat;The described method includes:
The target component of the voltage threshold detection module output level is detected, the target component is the second electrical level The ratio or first level for accounting for the voltage threshold detection module output level period of change account for the voltage threshold inspection Survey the ratio of module output level period of change;
According to the target component of the output level and the parameter prestored determine the voltage to be detected and target voltage it Between size relation.
The third aspect, the embodiment of the present application provide a kind of voltage check device, and described device includes voltage threshold detection Module;The voltage threshold detection module, for when the voltage magnitude of the voltage to be detected received be greater than voltage threshold when, it is defeated First level out;When the voltage magnitude received is less than the voltage threshold, second electrical level is exported;The voltage check device Further include:
Detection unit, for detecting the target component of the voltage threshold detection module output level, the target component The ratio of the voltage threshold detection module output level period of change is accounted for for the second electrical level or first level accounts for The ratio of the voltage threshold detection module output level period of change;
Determination unit determines with the parameter prestored described to be detected exchange for the target component according to the output level Size relation between voltage and target voltage.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer storage medium It is stored with computer program, the computer program includes program instruction, if described program instruction makes institute when being executed by processor State the method that processor executes above-mentioned second aspect.
In the embodiment of the present application, the signal for being input to control module is level signal, carries out modulus without control module and turns It changes, to save the analog-to-digital conversion interface resource of control module, the complexity of voltage detecting can be reduced.In addition, carry out When voltage detecting, the reference voltage provided without using circuit is come the voltage value that confirmly detects, it is possible to reduce because circuit mentions The fluctuation of the reference voltage of confession leads to the situation of voltage detecting inaccuracy, so as to improve the accuracy of voltage detecting.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of voltage check device provided by the embodiments of the present application;
Fig. 2 is a kind of structural schematic diagram of voltage threshold detection module 10 provided by the embodiments of the present application;
Fig. 3 is voltage and output level to be detected in a kind of voltage threshold detection module 10 provided by the embodiments of the present application Relation schematic diagram;
Fig. 4 is that the relationship of the corresponding output level of input voltage to be detected of different amplitudes provided by the embodiments of the present application is shown It is intended to;
Fig. 5 is a kind of flow diagram of voltage detection method provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of another voltage check device provided by the embodiments of the present application:
Fig. 7 is the structural schematic diagram of another voltage check device provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
The embodiment of the present application proposes a kind of voltage detection method and device, can reduce the complexity of voltage detecting and mention The accuracy of high voltage detection.
Wherein, voltage detection method and device provided by the embodiment of the present application can be used for alternating voltage detection to be detected Scene, specifically, the voltage detecting scene for example for the alternating current that voltage effective value is 220V, frequency is 50Hz.It can manage Solution, the citing of above-mentioned scene are only used for explaining the embodiment of the present application, restriction should not be constituted, provided by the embodiment of the present application Voltage detection method and device can also be applied to other alternating current scenes, and the embodiment of the present application is not construed as limiting this.
It describes in detail below to the embodiment of the present application.
Referring to Figure 1, Fig. 1 is a kind of structural schematic diagram of voltage check device provided by the embodiments of the present application, such as Fig. 1 institute Show, which may include voltage threshold detection module 10 and control module 20, in which:
Voltage threshold detection module 10, for exporting the first level when the voltage magnitude received is greater than voltage threshold; When the voltage magnitude received is less than voltage threshold, second electrical level is exported;
Control module 20, the target component for detection voltage threshold detection module output level.
Wherein, target component can be the second electrical level and account for the voltage threshold detection module output level period of change Ratio.Target component can also be that the first level accounts for the ratio of the voltage threshold detection module output level period of change.
Control module 20 is also used to determine to be detected exchange with the parameter prestored according to the target component of the output level Size relation between voltage and target voltage.
Optionally, as shown in Figure 1, the voltage check device further includes voltage input module 30, for protecting voltage threshold Excessive pressure damages of the detection module 10 from alternating voltage to be detected.
In above-mentioned voltage check device, the signal for being input to control module is level signal, is carried out without control module Analog-to-digital conversion can reduce the complexity of voltage detecting to save the analog-to-digital conversion interface resource of control module.In addition, When carrying out voltage detecting, the reference voltage provided without using circuit is come the voltage value that confirmly detects, it is possible to reduce because The fluctuation for the reference voltage that circuit provides leads to the situation of voltage detecting inaccuracy, so as to improve the accurate of voltage detecting Property.
Wherein, voltage threshold detection module 10 can be zero crossing detection module to realize.Specifically, referring to Fig. 2, figure 2 be a kind of structural schematic diagram of voltage threshold detection module 10 provided by the embodiments of the present application.As shown in Fig. 2, voltage threshold is examined Survey module 10 may include triode TR1, the base stage of triode TR1 is used to receive alternating voltage to be detected, the exchange to be detected Voltage is voltage to be detected.The collector of triode TR1 is connected via first resistor R3 with high level, which can be +5V.The emitter of triode TR1 is connected with low level, which can be ground connection.Voltage threshold therein is that can be three The conduction threshold 0.7V of pole pipe TR1, the first level are low level, and second electrical level is high level;
As shown in Fig. 2, due in the zero crossing detection module triode TR1 need conducting voltage.Therefore work as and receive Voltage magnitude when being greater than the conduction threshold 0.7V of triode TR1, electricity that the collector of triode TR1 is exported to control module 20 It puts down as low level.When the voltage magnitude received is less than the conduction threshold 0.7V of triode TR1, the collector of triode TR1 The level exported to control module 20 is high level.As shown in Fig. 2, capacitor C1 and C2 therein can filter electric signal Wave improves the accuracy of voltage detecting to reduce noise.Resistance R4 therein can be used for protecting control module 20, avoid burning Ruin control module.
Fig. 2 is introduced so that triode TR1 is NPN type triode as an example.It is understood that example is only used for explaining The embodiment of the present application, should not constitute restriction, and triode is also possible to PNP type triode.In addition, the conducting voltage of triode according to Triode material type determines that conducting voltage is 0.7V when being germanium tube, when being silicone tube, conducting voltage 0.3V.Triode can also To replace with TFT transistor, the embodiment of the present application is not construed as limiting this, and when being TFT transistor, conducting voltage is TFT crystal The conducting voltage of pipe.
In addition, the structure of voltage threshold detection module 10 shown by Fig. 2 is only a kind of embodiment, restriction should not be constituted, The structure of voltage threshold detection module can also be other structures, such as other zero crossing detection modules, and the embodiment of the present application is to this With no restriction.
About the relationship of the voltage to be detected and the zero crossing detection module output level that are inputted in the zero crossing detection module, ask It is voltage and output level to be detected in a kind of voltage threshold detection module 10 provided by the embodiments of the present application refering to Fig. 3, Fig. 3 Relation schematic diagram.As shown in figure 3, the voltage to be detected of input is u (t), output level is v (t).Voltage u (t) to be detected can be with It is sinusoidal signal, corresponding output level v (t) is square-wave signal.As shown in figure 3, when voltage u (t) to be detected is greater than triode When the conduction threshold 0.7V of TR1, the level that the collector of triode TR1 is exported to control module 20 is low level.When to be detected When voltage u (t) is less than the conduction threshold 0.7V of triode TR1, electricity that the collector of triode TR1 is exported to control module 20 It puts down as high level.
The relationship of the voltage and output level to be detected that go out as shown in Figure 3 is it can be seen that due to the triode TR1 in circuit The conducting voltage of 0.7V is needed, which is not actually the zero crossing detected, and the voltage threshold of detection is practical On be 0.7V.As shown in figure 3, v (t) crosses zero-bit variation by low level prior to u (t) when u (t) positive half cycle is converted to negative half period Become high level.When u (t) negative half period is converted to positive half cycle, v (t), which lagged behind zero-bit variation, becomes low level from high level. It should be understood that the sinusoidal signal in Fig. 3 can be city's electric signal, voltage effective value 220V, frequency 50Hz are also possible to The AC signals such as other sinusoidal signals, cosine signal or square-wave signal, the embodiment of the present application are not construed as limiting this.
In the relationship of voltage and output level to be detected out shown in Fig. 3, for output level v (t), Ke Yiji Calculate the duty ratio of high level in the square-wave signal.Specifically, as shown in figure 3, square-wave signal duty ratio is k, then k=TG/ T, TG For high level lasting time in a cycle, TDFor the low level duration TD=t2-t1, k=TG/ T=(T-TD)/T, TG= t3-t1.If differing the time between output level v (t) and the zero crossing of voltage u (t) to be detected is Δ t, then available T/ 2=2 Δ t+TD, Δ t=T/4-TD/2。
It is described below in the embodiment of the present application in voltage magnitude and input voltage to be detected between the duty ratio of high level Relationship.Referring to Fig. 4, the duty cycle relationship that Fig. 4 is the input voltage to be detected of different amplitudes provided by the embodiments of the present application shows It is intended to.As shown in figure 4, u1 (t) and u2 (t) is different ac voltage signal to be detected.The frequency of u1 (t) and u2 (t) and week Phase is identical, if the period is T, the voltage magnitude of u1 (t) is less than the voltage magnitude of u2 (t).As seen from Figure 4, u1 (t) is believed For number, in tDThe output level of voltage threshold detection module is low level in 1, for u2 (t) signal, in tDVoltage in 2 The output level of threshold detection module is low level.For u1 (t) signal, the output of corresponding voltage threshold detection module The duty ratio of high level is k1=(T-t in levelD1)/T, for u2 (t) signal, corresponding voltage threshold detection module Output level in high level duty ratio be k2=(T-tD2)/T.And k1 > k2, it is seen then that in the case where the period is constant, to Detection ac voltage signal amplitude is bigger, and the duty ratio of high level is smaller in the output level of voltage threshold detection module.
Based on above-mentioned rule, the broad inventive concept of the embodiment of the present application is: when carrying out voltage detecting, control module can High electricity in the output level of the corresponding voltage threshold detection module of ac voltage signal to be detected to store normal voltage amplitude Flat duty ratio k0, then by the output level of the corresponding voltage threshold detection module of the ac voltage signal to be detected received The duty ratio k and k0 of middle high level is compared, and as k > k0, shows that ac voltage signal amplitude to be detected is less than normal, in deficient Pressure condition.As k=k0, show that ac voltage signal amplitude to be detected is normal.As k < k0, show alternating voltage to be detected Signal amplitude is bigger than normal, is in overvoltage condition.
It is understood that can permit certain error when carrying out voltage detecting, can be wanted according to measuring accuracy It asks, k is allowed to fluctuate in a certain range.For example, k within the scope of k-k3≤k≤k+k4, shows ac voltage signal to be detected Amplitude is normal.K3 and k4 is positive number, and value is determined according to practical application scene.
It is understood that the scene that foregoing invention principle is related to is not limited to the frequency of AC signal to be detected and the period is Fixed value.In the case that the frequency of AC signal and period are fluctuated in a certain range, can approximation ignore this fluctuation, still Whether ac voltage signal to be detected is so determined according to the duty ratio k of high level in the output level of voltage threshold detection module Over-voltage is under-voltage.
Based on voltage check device structural schematic diagram, the embodiment of the present application described in above-mentioned broad inventive concept and Fig. 1 A kind of voltage detection method is provided.Referring to Fig. 5, Fig. 5 is a kind of process of voltage detection method provided by the embodiments of the present application Schematic diagram.As shown in figure 5, the voltage detection method is including but not limited to step S101- S102.
The target component of S101, voltage check device detection voltage threshold detection module output level.
S102, voltage check device determine alternating voltage to be detected according to the target component of output level and the parameter prestored Size relation between target voltage.
Wherein, target component can be the second electrical level and account for the voltage threshold detection module output level period of change Ratio.Target component can also be that the first level accounts for the ratio of the voltage threshold detection module output level period of change.
The concrete mode for detecting the target component of the voltage threshold detection module output level may is that the detection electricity Press the adjacent jumping moment three times of threshold detection module output level;The adjacent jumping moment three times included the first moment T1, the second moment t2 and third moment t3;Wherein, it is first level that the first moment t1, which is the second electrical level jump, At the time of, the second moment t2 is first level jump at the time of be the second electrical level, and the third moment t3 is At the time of the second electrical level is jumped again as first level;
Calculate the target component of the voltage threshold detection module output level, in the target component, second electricity The flat ratio for accounting for the voltage threshold detection module output level period of change is k=(t3-t2)/(t3-t1), first electricity The flat ratio for accounting for the voltage threshold detection module output level period of change is k=(t2-t1)/(t3- t1).
As shown in figure 3, adjacent jumping moment three times includes the first moment t1, the second moment t3 and third moment t3;Its In, the first moment t1 is second electrical level jump at the time of be the first level, and the second moment t2 is that the first level jump is the second electricity At the time of flat, third moment t3 is that second electrical level is jumped again at the time of be the first level.In addition, adjacent jumping moment three times At the time of can also be that the first level jump is second electrical level, at the time of second electrical level jump is the first level, the first level weight At the time of new jump is second electrical level.
Optionally, the target component of output level can be the duty ratio k of second electrical level in the period of change of output level, K is determined by following formula:
K=(t3-t2)/(t3-t1)
Voltage check device can be by the above-mentioned k being calculated compared with the parameter prestored, and the parameter prestored can be to work as When the alternating voltage is equal to the target voltage, the duty ratio of the second electrical level.For example, in alternating voltage to be detected When signal is alternating current, target voltage can be set to the amplitude 310V of mains voltage.Then voltage check device can be examined It surveys when the amplitude of input ac voltage is 310V, and frequency is 50Hz, corresponding duty ratio, as standard duty ratio k0.Rear The real-time line voltage over-voltage of continuous detection or it is under-voltage when, compare the real-time duty ratio k being calculated and above-mentioned standard duty ratio.When When k > k0, show that ac voltage signal amplitude to be detected is less than normal, is in under-voltage condition.As k=k0, show exchange to be detected Voltage signal magnitude is normal.As k < k0, show that ac voltage signal amplitude to be detected is bigger than normal, is in overvoltage condition.
Optionally, the target component of output level can also be that the first level accounts for a week in the period of change of output level The ratio k of phase, similarly, k is determined by following formula:
K=(t2-t1)/(t3-t1)
Wherein, t1 was the first moment, and t2 was the second moment, and t3 is the third moment.At this point, voltage check device can will be counted For obtained above-mentioned k compared with the parameter prestored, the parameter prestored can be for when the alternating voltage is equal to the target voltage When, first level accounts for the ratio of output level period of change.If alternating voltage is equal to the target voltage, the first level Account for output level period of change ratio be standard proportional k0, subsequent detection input voltage over-voltage to be detected or it is under-voltage when, Compare ratio k and above-mentioned standard ratio k0 that real-time first level being calculated accounts for output level period of change.As k > k0 When, show that ac voltage signal amplitude to be detected is bigger than normal, is in overvoltage condition.As k=k0, show alternating voltage letter to be detected Number amplitude is normal.As k < k0, show that ac voltage signal amplitude to be detected is less than normal, is in under-voltage condition.
In addition, voltage check device simultaneously can be according to the rising edge of output level and failing edge moment and high and low electricity Whether flat duration, the frequency for extrapolating ac voltage signal to be detected are normal.
If detecting the frequency of AC signal and the period being more than preset error range, show the frequency detected and week Period error is excessive.Control module can measure to obtain period and the frequency of current ac voltage signal to be detected, as standard Frequency and the period, for determining the corresponding parameter and standard prestored of target voltage.For example, the frequency of standard and period are respectively 50Hz and 20ms, measurement obtains the period of current ac voltage signal to be detected and frequency is 60Hz and 16.7ms, then is calculating Current duty cycle, standard duty ratio, standard the first level account for output level period of change ratio and real-time first level It, can be using 60Hz, 16.7ms as new standard frequency and period when accounting for the ratio of output level period of change.
In above-mentioned voltage check device and method, the signal for being input to control module is level signal, without controlling mould Block, which carries out analog-to-digital conversion, can reduce the complexity of voltage detecting to save the analog-to-digital conversion interface resource of control module. In addition, when carrying out voltage detecting, the reference voltage that provides without using circuit is come the voltage value that confirmly detects, it is possible to reduce Because the fluctuation for the reference voltage that circuit provides leads to the situation of voltage detecting inaccuracy, so as to improve the standard of voltage detecting True property.
Fig. 6 is referred to, Fig. 6 is the structural schematic diagram of another voltage check device provided by the embodiments of the present application.Such as Fig. 6 Shown, which is used to detect the size relation between alternating voltage and target voltage to be detected;Described device packet Include voltage threshold detection module 10 and control module 20;The voltage threshold detection module 10, for when the voltage amplitude received When value is greater than voltage threshold, the first level is exported;When the voltage magnitude received is less than the voltage threshold, the second electricity of output It is flat;The control module 20 includes:
Detection unit 201, for detecting the target component of the voltage threshold detection module output level, the target ginseng Number be the second electrical level account for the voltage threshold detection module output level period of change ratio or first level Account for the ratio of the voltage threshold detection module output level period of change.
Determination unit 202, it is described to be detected for being determined according to the target component of the output level and the parameter prestored Size relation between alternating voltage and the target voltage.
In a kind of possible embodiment, it is defeated to be specifically used for the detection voltage threshold detection module for detection unit 201 The adjacent jumping moment three times of level out;The adjacent jumping moment three times includes the first moment t1, the second moment t2 and the Three moment t3;Wherein, the first moment t1 is the second electrical level jump at the time of be first level, when described second At the time of carving t2 to be first level jump be the second electrical level, third moment t3 is that the second electrical level is jumped again At the time of becoming first level;
Calculate the target component of the voltage threshold detection module output level, in the target component, second electricity The flat ratio for accounting for the voltage threshold detection module output level period of change is k=(t3-t2)/(t3-t1), first electricity The flat ratio for accounting for the voltage threshold detection module output level period of change is k=(t2-t1)/(t3- t1).
In a kind of possible embodiment, the parameter prestored is when the alternating voltage to be detected is equal to the mesh When marking voltage, the second electrical level accounts for the ratio k0 of the voltage threshold detection module output level period of change, or
The parameter prestored be when the alternating voltage to be detected be equal to the target voltage when, the output level First level described in period of change accounts for the ratio k0 of the voltage threshold detection module output level period of change.
In a kind of possible embodiment, determination unit 202 is specifically used for when the target component being second electricity It is flat when accounting for the ratio of the voltage threshold detection module output level period of change, if the second electrical level accounts for the voltage threshold The ratio k of detection module output level period of change is greater than the k0, it is determined that the alternating voltage to be detected is less than the mesh Mark voltage;If the ratio k that the second electrical level accounts for the voltage threshold detection module output level period of change is equal to the k0, Then determine that the alternating voltage to be detected is equal to the target voltage;If the second electrical level accounts for the voltage threshold detection module The ratio k of output level period of change is less than the k0, it is determined that the alternating voltage to be detected is greater than the target voltage;
When the target component is that first level accounts for the voltage threshold detection module output level period of change When ratio, if the ratio k that first level accounts for the voltage threshold detection module output level period of change is greater than the k0, Then determine that the alternating voltage to be detected is greater than the target voltage: if first level accounts for the voltage threshold detection module The ratio k of output level period of change is equal to the k0, it is determined that the alternating voltage to be detected is equal to the target voltage;If The ratio k that first level accounts for the voltage threshold detection module output level period of change is less than the k0, it is determined that institute Alternating voltage to be detected is stated less than the target voltage.
In a kind of possible embodiment, described device further includes voltage input module 30, for protecting the voltage Excessive pressure damages of the threshold detection module from the alternating voltage to be detected.
In a kind of possible embodiment, the voltage threshold detection module 10 includes triode, the triode Base stage is for receiving the alternating voltage to be detected, and the collector of the triode is via the first resistor and high level phase Even, the emitter of the triode is connected with the low level;The voltage threshold is the conduction threshold of the triode, described First level is low level, and the second electrical level is high level;When the voltage magnitude received is greater than the conducting of the triode When threshold value, the collector of the triode exports low level to the control module;Described in being less than when the voltage magnitude received When the conduction threshold of triode, the collector of the triode exports high level to the control module.
Wherein, the concrete function of each unit described in Fig. 6, can described embodiment referring to figs. 2 and 5, Which is not described herein again.
Fig. 7 is referred to, Fig. 7 is the structural schematic diagram of another voltage check device provided by the embodiments of the present application.Such as Fig. 7 Shown, control module may include: one or more processors 301 in the voltage check device in the present embodiment;One or more A input equipment 302, one or more output equipments 303 and memory 304.Above-mentioned processor 301, input equipment 302, output Equipment 303 and memory 304 are connected by bus 305.Wherein:
Memory 304 include but is not limited to be random access memory (random access memory, RAM), it is read-only Memory (read-only memory, ROM), Erasable Programmable Read Only Memory EPROM (erasable programmable Read only memory, EPROM) or portable read-only memory (compact disc read-only memory, CD- ROM), the memory 304 is for storing dependent instruction and data.It is corresponding to can be also used for storage target voltage for memory 304 Prestore parameter.
Processor 301 can be one or more central processing units (central processing unit, CPU), locate In the case that reason device 301 is a CPU, which can be monokaryon CPU, be also possible to multi-core CPU.
Input equipment 302, for receive voltage threshold detection module output level, the level can be the first level or Person's second electrical level.
Processor 301, for calling the program instruction stored in memory 304 to execute following operation:
The target component of the voltage threshold detection module output level is detected, the target component is the second electrical level The ratio or first level for accounting for the voltage threshold detection module output level period of change account for the voltage threshold inspection Survey the ratio of module output level period of change;
The alternating voltage to be detected and the mesh are determined according to the target component of the output level and the parameter prestored Mark the size relation between voltage.
As a kind of possible implementation, processor 301, specifically for calling the program stored in memory 304 to refer to It enables and executes following operation:
Detect the adjacent jumping moment three times of the voltage threshold detection module output level;The adjacent jump three times Moment includes the first moment t1, the second moment t2 and third moment t3;Wherein, first moment t1 is the second electrical level Jump be first level at the time of, the second moment t2 be first level jump be the second electrical level when It carves, the third moment t3 is that the second electrical level is jumped again at the time of be first level;
Calculate the target component of the voltage threshold detection module output level, in the target component, second electricity The flat ratio for accounting for the voltage threshold detection module output level period of change is k=(t3-t2)/(t3-t1), first electricity The flat ratio for accounting for the voltage threshold detection module output level period of change is k=(t2-t1)/(t3- t1).
As a kind of possible implementation, the parameter prestored is when the alternating voltage to be detected is equal to the mesh When marking voltage, the second electrical level accounts for the ratio k0 of the voltage threshold detection module output level period of change, or
The parameter prestored be when the alternating voltage to be detected be equal to the target voltage when, the output level First level described in period of change accounts for the ratio k0 of the voltage threshold detection module output level period of change.
As a kind of possible implementation, processor 301, specifically for calling the program stored in memory 304 to refer to It enables and executes following operation: when the target component is that the second electrical level accounts for the voltage threshold detection module output level variation When the ratio in period, if the ratio k that the second electrical level accounts for the voltage threshold detection module output level period of change is greater than The k0, it is determined that the alternating voltage to be detected is less than the target voltage;If the second electrical level accounts for the voltage threshold The ratio k of detection module output level period of change is equal to the k0, it is determined that the alternating voltage to be detected is equal to the mesh Mark voltage;If the ratio k that the second electrical level accounts for the voltage threshold detection module output level period of change is less than the k0, Then determine that the alternating voltage to be detected is greater than the target voltage;
When the target component is that first level accounts for the voltage threshold detection module output level period of change When ratio, if the ratio k that first level accounts for the voltage threshold detection module output level period of change is greater than the k0, Then determine that the alternating voltage to be detected is greater than the target voltage;If first level accounts for the voltage threshold detection module The ratio k of output level period of change is equal to the k0, it is determined that the alternating voltage to be detected is equal to the target voltage;If The ratio k that first level accounts for the voltage threshold detection module output level period of change is less than the k0, it is determined that institute Alternating voltage to be detected is stated less than the target voltage.
As a kind of possible implementation, described device further includes voltage input module, for protecting the voltage threshold It is worth detection module from the excessive pressure damages of the alternating voltage to be detected.
As a kind of possible implementation, the voltage threshold detection module includes triode, the base of the triode For receiving the alternating voltage to be detected, the collector of the triode is connected via the first resistor with high level for pole, The emitter of the triode is connected with the low level;The voltage threshold is the conduction threshold of the triode, described the One level is low level, and the second electrical level is high level;When the voltage magnitude received is greater than the conducting threshold of the triode When value, the collector of the triode exports low level to the control module;When the voltage magnitude received is less than described three When the conduction threshold of pole pipe, the collector of the triode exports high level to the control module.
Wherein, the specific function of each unit described in voltage threshold detection module 10 and control module 20 and Fig. 7 Can, can described embodiment referring to figs. 2 and 5, which is not described herein again.
A kind of computer readable storage medium, above-mentioned computer-readable storage medium are provided in another embodiment of the application Matter is stored with computer program, and above-mentioned computer program includes program instruction, and above procedure instructs when being executed by a processor, makes Above-mentioned processor executes method described in Fig. 5.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment above method of the application Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program The medium of code.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should all cover within the scope of protection of this application.Therefore, the protection scope of the application should be with right It is required that protection scope subject to.

Claims (12)

1. a kind of voltage check device, which is characterized in that described device includes voltage threshold detection module and control module, In:
The voltage threshold detection module, for when the voltage magnitude of the voltage to be detected received be greater than voltage threshold when, it is defeated First level out;When the voltage magnitude received is less than the voltage threshold, second electrical level is exported;
The control module, for detecting the target component of the voltage threshold detection module output level, the target component The ratio of the voltage threshold detection module output level period of change is accounted for for the second electrical level or first level accounts for The ratio of the voltage threshold detection module output level period of change;
The control module, the parameter for being also used to the target component according to the output level and prestoring determine the electricity to be detected Size relation between pressure and target voltage.
2. the apparatus according to claim 1, which is characterized in that the control module is specifically used for:
Detect the adjacent jumping moment three times of the voltage threshold detection module output level;The adjacent jumping moment three times Include the first moment t1, the second moment t2 and third moment t3;Wherein, the first moment t1 is that the second electrical level jump is At the time of first level, the second moment t2 is first level jump at the time of be the second electrical level, described Third moment t3 is that the second electrical level is jumped again at the time of be first level;
Calculate the target component of the voltage threshold detection module output level, in the target component, the second electrical level is accounted for The ratio of the voltage threshold detection module output level period of change is k=(t3-t2)/(t3-t1), and first level accounts for The ratio of the voltage threshold detection module output level period of change is k=(t2-t1)/(t3-t1).
3. the apparatus of claim 2, which is characterized in that the parameter prestored is when the alternating voltage is equal to institute When stating target voltage, second electrical level described in the period of change of the output level accounts for the voltage threshold detection module output electricity The ratio k0 of flat period of change, or
The parameter prestored is the variation of the output level when the alternating voltage to be detected is equal to the target voltage First level described in period accounts for the ratio k0 of the voltage threshold detection module output level period of change.
4. device according to claim 3, which is characterized in that the control module is specifically used for, when the target component When accounting for the ratio of the voltage threshold detection module output level period of change for the second electrical level, if the second electrical level accounts for The ratio k of the voltage threshold detection module output level period of change is greater than the k0, it is determined that the alternating current to be detected Pressure is less than the target voltage;If the second electrical level accounts for the ratio of the voltage threshold detection module output level period of change K is equal to the k0, it is determined that the alternating voltage to be detected is equal to the target voltage;If the second electrical level accounts for the voltage The ratio k of threshold detection module output level period of change is less than the k0, it is determined that the alternating voltage to be detected is greater than institute State target voltage;
When the target component is the ratio that first level accounts for the voltage threshold detection module output level period of change When, if the ratio k that first level accounts for the voltage threshold detection module output level period of change is greater than the k0, really The fixed alternating voltage to be detected is greater than the target voltage;If first level accounts for the voltage threshold detection module output The ratio k in level change period is equal to the k0, it is determined that the alternating voltage to be detected is equal to the target voltage;If described First level account for the voltage threshold detection module output level period of change ratio k be less than the k0, it is determined that it is described to It detects alternating voltage and is less than the target voltage.
5. device according to any one of claims 1 to 4, which is characterized in that described device further includes voltage input module, For protecting the voltage threshold detection module from the excessive pressure damages of the alternating voltage to be detected.
6. device according to any one of claims 1 to 4, which is characterized in that the voltage threshold detection module includes three Pole pipe, the base stage of the triode is for receiving the alternating voltage to be detected, and the collector of the triode is via described the One resistance is connected with high level, and the emitter of the triode is connected with the low level;The voltage threshold is three pole The conduction threshold of pipe, first level are low level, and the second electrical level is high level;
When the voltage magnitude received is greater than the conduction threshold of the triode, the collector of the triode is to the control Module exports low level;When the voltage magnitude received is less than the conduction threshold of the triode, the current collection of the triode Pole exports high level to the control module.
7. a kind of voltage detection method, which is characterized in that the voltage detection method is based on voltage check device, described device packet Include voltage threshold detection module;The voltage threshold detection module, the voltage magnitude for working as the voltage to be detected received are big When voltage threshold, the first level is exported;When the voltage magnitude received is less than the voltage threshold, second electrical level is exported; The described method includes:
The target component of the voltage threshold detection module output level is detected, the target component accounts for institute for the second electrical level The ratio or first level for stating voltage threshold detection module output level period of change account for the voltage threshold detection mould The ratio of block output level period of change;
According to the target component of the output level and the parameter prestored determine the alternating voltage to be detected and target voltage it Between size relation.
8. the method according to the description of claim 7 is characterized in that the detection voltage threshold detection module output level Target component, comprising:
Detect the adjacent jumping moment three times of the voltage threshold detection module output level;The adjacent jumping moment three times Include the first moment t1, the second moment t2 and third moment t3;Wherein, the first moment t1 is that the second electrical level jump is At the time of first level, the second moment t2 is first level jump at the time of be the second electrical level, described Third moment t3 is that the second electrical level is jumped again at the time of be first level;
Calculate the target component of the voltage threshold detection module output level, in the target component, the second electrical level is accounted for The ratio of the voltage threshold detection module output level period of change is k=(t3-t2)/(t3-t1), and first level accounts for The ratio of the voltage threshold detection module output level period of change is k=(t2-t1)/(t3-t1).
9. according to the method described in claim 8, it is characterized in that, the parameter prestored is when the alternating voltage to be detected When equal to the target voltage, second electrical level described in the period of change of the output level accounts for the voltage threshold detection module The ratio k0 of output level period of change, or
The parameter prestored is the variation of the output level when the alternating voltage to be detected is equal to the target voltage First level described in period accounts for the ratio k0 of the voltage threshold detection module output level period of change.
10. according to the method described in claim 9, it is characterized in that, the target component according to the output level and pre- The parameter deposited determines the size relation between the alternating voltage to be detected and target voltage, comprising:
When the target component is the ratio that the second electrical level accounts for the voltage threshold detection module output level period of change When, if the ratio k that the second electrical level accounts for the voltage threshold detection module output level period of change is greater than the k0, really The fixed alternating voltage to be detected is less than the target voltage;If the second electrical level accounts for the voltage threshold detection module output The ratio k in level change period is equal to the k0, it is determined that the alternating voltage to be detected is equal to the target voltage;If described Second electrical level account for the voltage threshold detection module output level period of change ratio k be less than the k0, it is determined that it is described to It detects alternating voltage and is greater than the target voltage;
When the target component is the ratio that first level accounts for the voltage threshold detection module output level period of change When, if the ratio k that first level accounts for the voltage threshold detection module output level period of change is greater than the k0, really The fixed alternating voltage to be detected is greater than the target voltage;If first level accounts for the voltage threshold detection module output The ratio k in level change period is equal to the k0, it is determined that the alternating voltage to be detected is equal to the target voltage;If described First level account for the voltage threshold detection module output level period of change ratio k be less than the k0, it is determined that it is described to It detects alternating voltage and is less than the target voltage.
11. according to the described in any item methods of claim 7 to 10, which is characterized in that described device further includes voltage input mould Block, for protecting the voltage threshold detection module from the excessive pressure damages of the alternating voltage to be detected.
12. according to the described in any item methods of claim 7 to 10, which is characterized in that the voltage threshold detection module includes Triode, the base stage of the triode is for receiving the alternating voltage to be detected, and the collector of the triode is via described First resistor is connected with high level, and the emitter of the triode is connected with the low level;The voltage threshold is described three The conduction threshold of pole pipe, first level are low level, and the second electrical level is high level;
When the voltage magnitude received is greater than the conduction threshold of the triode, the collector of the triode is to the control Module exports low level;When the voltage magnitude received is less than the conduction threshold of the triode, the current collection of the triode Pole exports high level to the control module.
CN201810911515.5A 2018-08-10 2018-08-10 Voltage detection method and device Active CN109085414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810911515.5A CN109085414B (en) 2018-08-10 2018-08-10 Voltage detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810911515.5A CN109085414B (en) 2018-08-10 2018-08-10 Voltage detection method and device

Publications (2)

Publication Number Publication Date
CN109085414A true CN109085414A (en) 2018-12-25
CN109085414B CN109085414B (en) 2021-06-11

Family

ID=64834208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810911515.5A Active CN109085414B (en) 2018-08-10 2018-08-10 Voltage detection method and device

Country Status (1)

Country Link
CN (1) CN109085414B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109581033A (en) * 2018-12-29 2019-04-05 深圳和而泰智能控制股份有限公司 Signal supervisory instrument
CN110200527A (en) * 2019-06-24 2019-09-06 九阳股份有限公司 A kind of motor monitoring method of food processor
CN114965878A (en) * 2022-05-11 2022-08-30 一汽解放汽车有限公司 Oxygen sensor detection method, system, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101949988A (en) * 2010-08-24 2011-01-19 浙江中控技术股份有限公司 Detection device of level-type signal disconnection fault
CN102062810A (en) * 2010-12-14 2011-05-18 江苏大学 Detection circuit and method for zero crossing point of alternating current power supply
CN102081116A (en) * 2009-12-01 2011-06-01 广芯电子技术(上海)有限公司 Adaptive digital method for detecting zero crossing point of alternating voltage
CN103499733A (en) * 2013-09-30 2014-01-08 中国科学院微电子研究所 Circuit and method for high-precision voltage detection
CN103605017A (en) * 2013-11-06 2014-02-26 厦门雅迅网络股份有限公司 Detection method of vehicle switch quantity signal
CN204163914U (en) * 2014-10-17 2015-02-18 天津市新阳汽车电子有限公司 A kind of production uses spark coil small voltage detector
CN105652074A (en) * 2014-12-03 2016-06-08 万国半导体(开曼)股份有限公司 Voltage detection circuit and voltage change detection method
CN105720807A (en) * 2014-12-03 2016-06-29 万国半导体(开曼)股份有限公司 Method and apparatus for detecting input voltage and discharging retention voltage
CN107942736A (en) * 2016-10-12 2018-04-20 佛山市顺德区美的电热电器制造有限公司 A kind of control method, main control device and zero-crossing detection circuit
CN207318569U (en) * 2017-08-17 2018-05-04 深圳市科瑞爱特科技开发有限公司 Direct current sample circuit
CN108205100A (en) * 2016-12-16 2018-06-26 深圳市三诺数字科技有限公司 A kind of circuit checker

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081116A (en) * 2009-12-01 2011-06-01 广芯电子技术(上海)有限公司 Adaptive digital method for detecting zero crossing point of alternating voltage
CN101949988A (en) * 2010-08-24 2011-01-19 浙江中控技术股份有限公司 Detection device of level-type signal disconnection fault
CN102062810A (en) * 2010-12-14 2011-05-18 江苏大学 Detection circuit and method for zero crossing point of alternating current power supply
CN103499733A (en) * 2013-09-30 2014-01-08 中国科学院微电子研究所 Circuit and method for high-precision voltage detection
CN103605017A (en) * 2013-11-06 2014-02-26 厦门雅迅网络股份有限公司 Detection method of vehicle switch quantity signal
CN204163914U (en) * 2014-10-17 2015-02-18 天津市新阳汽车电子有限公司 A kind of production uses spark coil small voltage detector
CN105652074A (en) * 2014-12-03 2016-06-08 万国半导体(开曼)股份有限公司 Voltage detection circuit and voltage change detection method
CN105720807A (en) * 2014-12-03 2016-06-29 万国半导体(开曼)股份有限公司 Method and apparatus for detecting input voltage and discharging retention voltage
CN107942736A (en) * 2016-10-12 2018-04-20 佛山市顺德区美的电热电器制造有限公司 A kind of control method, main control device and zero-crossing detection circuit
CN108205100A (en) * 2016-12-16 2018-06-26 深圳市三诺数字科技有限公司 A kind of circuit checker
CN207318569U (en) * 2017-08-17 2018-05-04 深圳市科瑞爱特科技开发有限公司 Direct current sample circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109581033A (en) * 2018-12-29 2019-04-05 深圳和而泰智能控制股份有限公司 Signal supervisory instrument
CN110200527A (en) * 2019-06-24 2019-09-06 九阳股份有限公司 A kind of motor monitoring method of food processor
CN114965878A (en) * 2022-05-11 2022-08-30 一汽解放汽车有限公司 Oxygen sensor detection method, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109085414B (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN109085414A (en) Voltage detection method and device
CN103926553B (en) Self-service single-phase electric energy meter calibrates for error devices and methods therefor
CN106569164A (en) Method and system for synchronization testing of electric quantity of double-core electric energy meter
CN105629052B (en) Chip power-consumption real-time detection method
CN105699897B (en) Motor rotation blockage winding measuring device
CN113311214B (en) Non-contact AC/DC suspension conductor potential measurement system and method
CN202975173U (en) Ground capacitance measuring instrument in transformer substation power distribution system
CN106443567A (en) Real-load test system for electric energy meters
CN202522693U (en) Device for detecting measure accuracy degree of electric energy meter
CN105676049B (en) A kind of circuit detecting imperfect earth
CN101201247B (en) Measuring tool
CN102721878A (en) Intelligentized automatic checkout device of quartz crystal oscillator instrument
CN205608103U (en) Portable electric energy quality monitoring appearance of full touch screen
CN106990381A (en) A kind of transformer magnetic saturation detection means
EP2551682A2 (en) Systems, methods, and apparatus for sensing AC voltage
CN204177955U (en) The self-service calibrating installation of a kind of three-phase electric energy meter based on man-machine touth-interactive
JP5912884B2 (en) Equivalent circuit analysis apparatus and equivalent circuit analysis method
CN104133136A (en) Testing device for rotating table frequency response
JP2015141018A (en) Electronic indicating gauge
CN110927504A (en) Analysis method, device and equipment of combined network based on LCR
CN208955745U (en) A kind of power distribution network switchgear monitor terminal
CN102565518A (en) Current balance test system
CN105445652B (en) A kind of offline contrast test device and method of circuit board based on lissajouf figure
CN203204144U (en) On-site test device with virtual current source
CN103817404A (en) Manual electric arc welder three-phase electricity phase loss detection method and device

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
GR01 Patent grant
GR01 Patent grant