Smart voltmeter for electric fence
09709606 ยท 2017-07-18
Assignee
Inventors
Cpc classification
International classification
Abstract
The present disclosure provides an electric fence voltmeter having a peak detection type voltage divider. The peak detection type voltage divider has an extremely simple configuration composed of two capacitor voltage dividers and two rectifier diodes for detecting the positive and the negative peak voltages of a high voltage pulse with an additional pulse state voltage having information on the moments the high voltage pulse starts and peaks. Thus, the voltmeter has reduced number of parts with simplified circuits, and is able to measure the peak voltage accurately with a reliable and efficient manner using the pulse state voltage. Thereby the voltmeter has benefits of improved measurement accuracy, reduced production cost, and low battery consumption.
Claims
1. An electric fence voltmeter, comprising: a peak detection type voltage divider, comprising: a first voltage divider composed of a capacitor (C1) of which the first electrode (C1a) is connected to a probe (11) to which a high voltage pulse is applied, and a capacitor (C2) of which one electrode is connected to a ground (Gnd); a first rectifier diode (D1) of which the anode is connected to the second electrode (C1b) of the capacitor (C1), and the cathode is connected to the other electrode of the capacitor (C2); and a second rectifier diode (D2) of which the cathode is connected to the second electrode (C1b) of the capacitor (C1), and the anode is connected to the ground (Gnd), whereby a first divided peak voltage (V2) is detected across the capacitor (C2), and a pulse state voltage (Vs) is detected at the second electrode (C1b) of the capacitor (C1); a first A/D conversion channel (22a) for converting the first divided peak voltage (V2) into a digital value; a display unit (30) for displaying the digital value; and a control unit (21) for controlling the display unit (30), and reading the peak detection type voltage divider.
2. The electric fence voltmeter of claim 1, further comprising: a second voltage divider composed of the capacitor (C1) and a capacitor (C3) of which one electrode is connected to the anode of the second diode (D2) and the other electrode is connected to the ground (Gnd), whereby a second divided peak voltage (V3) is detected across the capacitor (C3); and a second A/D conversion channel (22b) for converting the second divided peak voltage (V3) into a digital value.
3. The electric fence voltmeter of claim 2, further comprising: a first comparator (23a) and a second comparator (23b) connected between the second electrode (C1b) of the capacitor (C1) and the control unit (21).
4. The electric fence voltmeter of claim 3, wherein the comparators (23a) and (23b) analyze the information contained in the pulse state voltage (Vs) to provide a signal indicating the moments the high voltage pulse starts and peaks to the control unit (21) in an interrupt mode.
5. The electric fence voltmeter of claim 4, wherein the control unit (21) recognizes the polarity and the occurrence of the high voltage pulse via the interrupt initiated at the start of the pulse, and converts the first divided peak voltage (V2) or the second divided peak voltage (V3) into a digital value through the first A/D conversion channel (22a) or the second A/D conversion channel (22b) depending on the polarity of the high voltage pulse via the interrupt initiated at the peak of the pulse.
6. The electric fence voltmeter of claim 2, further comprising: a first bias resistor (R1) connected to the capacitor (C2) in parallel; and a second bias resistor (R2) connected to the capacitor (C3) in parallel.
7. The electric fence voltmeter of claim 2, further comprising: a first bias resistor (R1) connected to the capacitor (C2) in parallel; a second bias resistor (R2) of which one end is connected to the capacitor (C3); a first D/A converter (24a) of which the output is connected to the other end of the second bias resistor (R2) for supplying the bias voltage (Vb); and a coupling capacitor (C4) connected between the second rectifier diode (D2) and the capacitor (C3) for blocking a current flowing through the second rectifier diode (D2) by the bias voltage (Vb).
8. The electric fence voltmeter of claim 7, wherein the first D/A converter (24a) is set to output the bias voltage (Vb) of which the voltage potential is identical to that of the reference voltage (ADC reference voltage) of the A/D conversion channels (22a) and (22b).
9. The electric fence voltmeter of claim 2, wherein the control unit (21), the A/D conversion channels (22a) and (22b), and the comparators (23a) and (23b) are integrated in an MCU (micro controller unit) (20).
10. The electric fence voltmeter of claim 9, wherein the first and the second divided peak voltages (V2) and (V3) detected from the capacitors (C2) and (C3) are directly inputted to the A/D conversion channels (22a) and (22b) of the MCU (20).
11. The electric fence voltmeter of claim 1, wherein the display unit (30) further displays the start of the high voltage pulse, and the start of the pulse and the digital value are displayed in the form of sound, light, characters, or a combination thereof.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
DETAILED DESCRIPTION OF THE INVENTION
(13) The present disclosure may be understood more readily by reference to the following detailed description of embodiments and the accompanying drawings. However, the present disclosure may be embodied in many different forms, and should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concept of the invention to those skilled in the art, and the present disclosure will only be defined by the appended claims.
(14) The terminology used herein is defined in consideration of the function of corresponding elements used in the present disclosure and may be varied according to users, operator's intention, or practices. In addition, an arbitrarily defined terminology may be used in a specific case and will be described in detail in a corresponding description paragraph. Therefore, the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
(15)
(16) In addition, the peak detection type voltage divider 10 provides a pulse state voltage Vs having information on the moments the high voltage pulse starts and peaks. Owing to the pulse state voltage Vs, the control unit 21 is able to measure the divided peak voltages V2 and V3 accurately in an efficient way with the comparator 23 and the A/D conversion channel 22.
(17) The measured peak voltage is displayed on the display unit 30.
(18) A power supply unit 40 is provided to supply necessary electric power to the elements constituting the voltmeter 1.
(19) Now, the embodiments of the present disclosure will be described in detail.
(20) In the first embodiment, an electric fence voltmeter 1A capable of measuring only the peak voltage having a positive polarity is provided.
(21) Referring to
(22) a peak detection type voltage divider 10A including:
(23) a first voltage divider composed of a capacitor C1 of which the first electrode C1a is connected to a probe 11 to which a high voltage pulse is applied and a capacitor C2 of which one electrode is connected to a ground Gnd;
(24) a first rectifier diode D1 of which the anode is connected to the second electrode C1b of the capacitor C1, and the cathode is connected to the other electrode of the capacitor C2; and
(25) a second rectifier diode D2 of which the cathode is connected to the second electrode C1b of the capacitor C1, and the anode is connected to the ground Gnd,
(26) whereby a first divided peak voltage V2 is detected across the capacitor C2, and a pulse state voltage Vs is detected at the second electrode C1b of the capacitor C1;
(27) a first A/D conversion channel 22a for converting the first divided peak voltage V2 into a digital value;
(28) a display unit 30 for displaying the digital value; and
(29) a control unit 21 for controlling the display unit 30, and reading the peak detection type voltage divider.
(30) The information contained in the pulse state voltage Vs is utilized for assisting the control unit 21 during the measurement of a peak voltage, and the information is displayed with the measured peak voltage on the display unit 30.
(31) The voltmeter 1A may further include:
(32) a first bias resistor R1 connected to the capacitor C2 in parallel; and
(33) a first comparator 23a connected between the second electrode C1b of the capacitor C1 and the control unit 21.
(34) The computer simulation of the divided peak voltage V2 and the pulse state voltage Vs are shown in
(35) Referring to
(36) In the second embodiment, an electric fence voltmeter 1B capable of measuring the peak voltages regardless of the polarity is provided.
(37) Referring to
(38) a second voltage divider composed of the capacitor C1, and a capacitor C3 of which one electrode is connected to the anode of the second diode D2 and the other electrode is connected to the ground Gnd, whereby a second divided peak voltage V3 is detected across the capacitor C3; and
(39) a second A/D conversion channel 22b for converting the second divided peak voltage V3 into a digital value,
(40) on the electric fence voltmeter 1A.
(41) The voltmeter 1B may further include:
(42) a second bias resistor R2 connected to the capacitor C3 in parallel; and
(43) a second comparator 23b connected between the second electrode C1b of the capacitor C1 and the control unit 21.
(44) The comparators 23a and 23b analyze the information contained in the pulse state voltage Vs to provide signals indicating the moments the high voltage pulse starts and peaks to the control unit 21 in an interrupt mode.
(45) Thus, the controller 21 is able to read the divided peak voltage at the peak of the pulse without need to determine whether the peak is reached. Accordingly, the computing program of the MCU 20 can be simplified, and the measurement error can also be reduced.
(46) Referring to
(47) At this time, the capacitors C1 and C2 are charged with the same amount of electric charge (Q). Thus, the capacitors C1 and C2 have the voltage potential of V1=Q/C1, and V2=Q/C2. In the formula, C1 and C2 represent the capacitances of the capacitors C1 and C2, respectively.
(48) The voltage division ratio Rd is expressed as the divided peak voltage V2 divided by the input voltage Vp. In other words, the voltage division ratio Rd is V2/Vp, or if we ignore the forward voltage drop of a diode (about 0.6V, very small compared to Vp) that appears across the first rectifier diode D1, the voltage division ratio Rd becomes V2/(V1+V2). The voltage division ratio Rd can be expressed with the capacitance of the capacitors C1 and C2, as shown in equation (1).
(49)
(50) In contrast, when an input voltage Vp having negative polarity is applied, a circulating current flows through the capacitor C1 and the second rectifier diode D2 for charging the capacitor C3. At this time, the capacitor C3 is charged to have negative potential with the voltage division ratio of C1/(C1+C3). Therefore, in order to make the voltage division ratio identical, regardless of the polarity of a pulse, the capacitance of the capacitor C2 and that of the capacitor C3 must be same.
(51) The computer simulation of the divided peak voltages V2 and V3 with the pulse state voltage Vs are shown in
(52)
(53) The divided peak voltages V2 and V3 are affected by the consecutive residual pulses as shown in the interval between (C) and (D) of
(54) As shown in
(55) As a solution, in the third embodiment of the present disclosure, a bias voltage Vb is applied to the capacitor C3 via a bias resistor. In this way, the second divided peak voltage V3 having the negative potential is shifted to have a positive potential to meet the input range of the A/D conversion channel.
(56) Referring to
(57) a second bias resistor R2 of which one end is connected to the capacitor C3;
(58) a first D/A converter 24a of which the output is connected to the other end of the second bias resistor R2 for supplying the bias voltage Vb; and
(59) a coupling capacitor C4 connected between the second rectifier diode D2 and the capacitor C3 for blocking a current flowing through the second rectifier diode D2 by the bias voltage Vb,
(60) on the electric fence voltmeter 1B.
(61) The first D/A converter 24a is set to output the bias voltage Vb of which the voltage potential is identical to that of the reference voltage (ADC reference voltage) of the A/D conversion channels 22a and 22b. In the embodiments of the present disclosure, the reference voltage is chosen to be 2.048V.
(62) The coupling capacitor C4 will have negligibly small influence on the voltage division ratio Rd, if the capacitance of the coupling capacitor C4 is chosen to be over two times greater than that of the capacitor C3.
(63) As previously mentioned, the capacitor C2 is biased to 0V via the first bias resistor R1 connected to the capacitor C2 in parallel. Accordingly, the capacitors C2 and C3 are biased to 0V and the bias voltage Vb, respectively. Thus, the divided peak voltages V2 and V3 are returned to 0V and the bias voltage Vb, respectively, in a predetermined period of time, after they are disturbed by the peak voltages detected. Note that the bias resistors R1 and R2 have the high resistance value of about 10 M.
(64)
(65)
(66) Consequently, it can be observed from the
Vact=Cf.Math.(VadcVbias)(2)
(67) In equation (2), Vact is an actual voltage, Vadc is the A/D conversion value of the voltage to be measured, Vbias represents the A/D conversion value of the bias voltage Vb. Conversion ratio Cf is obtained by multiplying the A/D reference voltage Vref and the resolution of the A/D conversion channel. In the embodiments of the present disclosure, the Vref is 2.048V and the resolution is 1/1,024, thus the conversion ratio Cf becomes 0.002.
(68)
(69) From now on, the pulse state voltage Vs which provides information about the high voltage pulse is described.
(70) Referring to
(71) In addition, the pulse state voltage Vs changes its sign at the every single peak of the input voltage Vp ((B)-(E) in
(72) In connection with the pulse state voltage Vs, the measuring sequence of the electric fence voltmeter 1B and 1C is described with the role of the comparators 23a and 23b.
(73) The second and the third embodiments of the present disclosure are to measure the high voltage pulses regardless of the polarity. Thus, it is necessary to detect the polarity of a pulse at the first step of a measuring sequence. In this reason, the reference voltages of the comparators 23a and 23b are set variably depending on the situation.
(74) The reference voltage of a comparator is determined by the threshold voltage of the comparator having hysteresis characteristics. In the embodiments of the present disclosure, the threshold voltage of 65 mV is applied to the comparator when the output state of the comparator is low, and 65 mV is applied when the output state of the comparator is high. In other words, the comparator changes its output state if the pulse state voltage Vs is greater than 65 mV when the output state is low, or if the pulse state voltage Vs is lower than 65 mV when the output state is high.
(75) For the first comparator 23a, the non-inverting input (+), the inverting input () and the output are connected to the pulse state voltage Vs, ground Gnd, and the control unit 21, respectively. And, its output state (Q1) is set to low as an initial condition for the measuring sequence.
(76) In this condition, if the pulse state voltage Vs rises in excess of the reference voltage ((A) in
(77) At this time, since the first comparator 23a is set to low state as the initial condition, it responses only to the high voltage pulse having positive peak to initiate the first interrupt. In this way, the control unit 21 recognizes the occurrence of a high voltage pulse having positive peak, in the first interrupt. In the second interrupt, the control unit 21 converts the first divided peak voltage V2 through the first A/D conversion channel 22a into a digital value to measure the positive peak voltage.
(78) On the other hand, the second comparator 23b is connected in the same way as the first comparator 23a. But, its output state (Q2) is set to high as an initial condition for the measuring sequence.
(79) In this condition, if the pulse state voltage Vs falls below the reference voltage ((A) in
(80) At this time, since the second comparator 23b is set to the high state as the initial condition, it responses only to the high voltage pulse having negative peak to initiate the third interrupt. The control unit 21 recognizes the occurrence of a high voltage pulse having negative peak, in the third interrupt. In the fourth interrupt, the control unit 21 converts the second divided peak voltage V3 through the second A/D conversion channel 22b into a digital value to measure the negative peak voltage.
(81) As a single measuring sequence is finished by the second or the fourth interrupt, the next valid interrupt will appear after 0.75 to 1.5 seconds that is the high voltage pulse cycle. Therefore, in order to prevent the repeated unnecessary interrupts initiated by the residual vibrations ((C)-(E) in
(82) The peak voltage measuring sequences are summarized in the flow charts shown in
(83) In the flow charts, the variable nINT represents the interrupt number. If nINT remains 0 (zero), it means the measuring sequence is not started yet, that is, a high voltage pulse has not appeared yet. Also, the variable Pulse_Type is set to POS if the high voltage pulse has a positive peak, or it is set to NEG if the high voltage pulse has a negative peak.
(84) Meanwhile, the measurement sequence of the first embodiment which measures only the high voltage pulse having a positive peak may employ the same sequence that the second and the third embodiments have. That is, the sequence of the first embodiments can be executed by the interrupt service routine program shown in
(85) The digital value converted via the second or fourth interrupt is transmitted to the display unit 30 from the control unit 21 after converted to have an engineering unit values, such as volts (V) or kilovolts (kV).
(86) The display unit 30 receives the digital value and the start of the high voltage pulse signal provided by the pulse state voltage Vs from the control unit 21, and may indicate them in the form of sound, light, characters, or a combination thereof.
(87) For example, a buzzer (not shown) or an LED (not shown) can be used to make sound or emit light for indicating the occurrence of a high voltage pulse. In addition, it is possible to light a plurality of lamps (not shown) selectively depending on the strength of a measured voltage. Also, the measured voltage can be displayed in the form of characters through a character display unit (not shown).
(88) Meanwhile, in the embodiments of the present disclosure, a micro controller unit of PIC16F1828 or other similar ones may be applied for the MCU 20.
(89) The MCU 20 contains built-in A/D conversion channels, control unit, comparators, and D/A converter. The MCU 20 having this feature is applicable for the construction of the voltmeter according to the present disclosure, because the complexity of the circuit can be significantly simplified.
(90) In addition, the sample and hold capacitance of the A/D conversion channel of the MCU (PIC16F1828) 20 is only 10 pF.
(91) Since the capacitances of the capacitors C2 and C3 having both 1 nF are sufficiently large compared to that of the sample and hold capacitor, it becomes possible to directly input the divided peak voltages V2 and V3 into the A/D conversion channels 22a and 22b of the MCU 20, without going through additional buffers.
(92) According to the specifications described so far, an electric fence voltmeter that improves a measurement accuracy, becomes cost-effective, and draws less power from a battery, can be provided.
(93) While this invention has been described in connection with what is presently considered to be practical exemplary embodiments, it is to be understood that the invention is not limited to the discovered embodiments, but, on the contrary, is intended to cover various modifications and equivalent arrangements.
LIST OF REFERENCE NUMERALS
(94) 1 electric fence voltmeter 10 peak detection type voltage divider 11 probe 20 MCU (micro controller unit) 21 control unit 22 A/D (analog to digital) conversion channel 23 comparator 24 D/A (digital to analog) converter 30 display unit 40 power supply unit 41 battery 42 switch C1 high voltage side voltage dividing capacitor C2, C3 low voltage side first and second voltage dividing capacitors C4 coupling capacitor D1, D2 first and second rectifier diodes R1, R2 first and second bias resistors V1 voltage across capacitor C1 V2, V3 first and second divided peak voltages Vp probe voltage Vs pulse state voltage Gnd ground