CN115372685A - Voltage measurement method, voltage measurement device and test pencil - Google Patents

Voltage measurement method, voltage measurement device and test pencil Download PDF

Info

Publication number
CN115372685A
CN115372685A CN202210908020.3A CN202210908020A CN115372685A CN 115372685 A CN115372685 A CN 115372685A CN 202210908020 A CN202210908020 A CN 202210908020A CN 115372685 A CN115372685 A CN 115372685A
Authority
CN
China
Prior art keywords
value
peak
voltage
sampling
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210908020.3A
Other languages
Chinese (zh)
Inventor
杨晓峰
李发友
卢嘉祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Huabo Precision Measuring Instrument Technology Co ltd
Original Assignee
Dongguan Huabo Precision Measuring Instrument Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Huabo Precision Measuring Instrument Technology Co ltd filed Critical Dongguan Huabo Precision Measuring Instrument Technology Co ltd
Priority to CN202210908020.3A priority Critical patent/CN115372685A/en
Publication of CN115372685A publication Critical patent/CN115372685A/en
Pending legal-status Critical Current

Links

Images

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
    • G01R19/16566Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533
    • G01R19/16576Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533 comparing DC or AC voltage with one threshold
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/04Measuring peak values or amplitude or envelope of ac or of pulses

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

The application belongs to the technical field of test pens, and provides a voltage measurement method, a voltage measurement device and a test pen, wherein the voltage measurement method comprises the following steps: contacting with an object to be measured and generating a measuring signal; sampling the electricity testing signal to obtain a plurality of sampling voltage values, and calculating a peak value according to the plurality of sampling voltage values; the peak-to-peak value and the preset voltage value are compared, and the corresponding calculation formula is selected according to the comparison result to calculate the voltage value to be measured.

Description

Voltage measurement method, voltage measurement device and test pencil
Technical Field
The application belongs to the technical field of test pens, and particularly relates to a voltage measuring method, a voltage measuring device and a test pen.
Background
The test pencil is a common electrician tool used to determine whether an object is charged. The inside of the pen is usually a small bulb or a liquid crystal screen, one pole of the small bulb is connected to a pen point contact, and the other pole of the small bulb is connected with a high resistance in series and then connected to the other end of the pen. When the voltage between two poles of the small bulb reaches a certain value, glow is generated between the two poles, and the intensity of the glow is in direct proportion to the voltage between the two poles. When the voltage of the charged body to earth is greater than the initial glow voltage of the small bulb and the tip of the test pencil is contacted with it, the other end is earthed through human body, so that the test pencil can emit light.
At present, when people use the test pencil, whether an object has electricity or not can be prompted only through a small bulb or a liquid crystal screen simulation strip during measurement, at most, an approximate voltage gear can only be displayed, the error range is up to more than 100v, and an accurate voltage measurement value cannot be provided for a user.
In summary, when the conventional test pencil measures voltage, the measurement error is large, and the accurate value of the voltage cannot be measured.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present application provide a voltage measurement method, a voltage measurement apparatus, and a test pencil, which can solve the problem that when the existing test pencil measures voltage, the measurement error is large, and the accurate value of the voltage cannot be measured.
A first aspect of an embodiment of the present application provides a voltage measurement method, including:
contacting with an object to be measured and generating a measuring signal;
sampling the electricity testing signal to obtain a plurality of sampling voltage values, and calculating a peak-to-peak value according to the plurality of sampling voltage values;
and comparing the peak-to-peak value with a preset voltage value, and selecting a corresponding calculation formula according to a comparison result to calculate the voltage value to be measured.
In one embodiment, the sampling the electricity measurement signal to obtain a plurality of sampling voltage values, and calculating a peak-to-peak value according to the plurality of sampling voltage values includes:
counting the number of the sampling voltage values to obtain a sampling count value;
and when the sampling count value is larger than a preset count value, calculating the peak-to-peak value according to the plurality of sampling voltage values, wherein the preset count value is more than or equal to 10.
In one embodiment, said calculating a peak-to-peak value from a plurality of said sampled voltage values comprises:
selecting a maximum sampling voltage value from the plurality of sampling voltage values as a first preset peak value, and selecting a minimum sampling voltage value as a second preset peak value;
and calculating the peak-to-peak value according to the absolute values of the first preset peak value and the second preset peak value.
In one embodiment, selecting a maximum sampled voltage value as a first preset peak value and a minimum sampled voltage value as a second preset peak value from a plurality of said sampled voltage values comprises:
and selecting the maximum sampling voltage value and the minimum sampling voltage value from the plurality of sampling voltage values according to a bubbling method.
In one embodiment, the comparing the peak-to-peak value with a preset voltage value and selecting a corresponding calculation formula according to the comparison result to calculate the voltage value to be measured includes:
when the peak-to-peak value is larger than a preset voltage value, calculating the voltage value to be measured according to a first calculation formula;
when the peak-to-peak value is smaller than or equal to a preset voltage value, calculating the voltage value to be measured according to a second calculation formula; wherein the content of the first and second substances,
the first calculation formula is:
Ud=(D1-(D1-Dac)/3)/101;
wherein, D1 is the peak-to-peak value, dac is the preset voltage value, and Ud is the voltage value to be measured;
the second calculation formula is:
Ud=(D1+(Dac-D1)/20)/101;
wherein, D1 is the peak-to-peak value, dac is the preset voltage value, and Ud is the voltage value to be measured.
A second aspect of embodiments of the present application provides a voltage measurement device, including:
the electricity testing module is used for contacting with an object to be tested to generate an electricity testing signal;
the peak-to-peak value calculation module is used for sampling the electricity detection signal to obtain a plurality of sampling voltage values and calculating a peak-to-peak value according to the plurality of sampling voltage values;
and the voltage calculation module is used for comparing the peak-to-peak value with a preset voltage value and selecting a corresponding calculation formula according to a comparison result to calculate the voltage value to be measured.
In one embodiment, the peak-to-peak value calculation module comprises:
the sampling unit is used for sampling the electricity testing signal to obtain a plurality of sampling voltage values;
and the calculating unit is used for calculating a peak-to-peak value according to the plurality of sampling voltage values.
In an embodiment, the computing unit is specifically configured to:
selecting a maximum sampling voltage value from the plurality of sampling voltage values as a first preset peak value, and selecting a minimum sampling voltage value as a second preset peak value;
and calculating the peak-to-peak value according to the absolute values of the first preset peak value and the second preset peak value.
In one embodiment, the voltage calculation module comprises:
the first voltage calculation unit is used for calculating the voltage value to be measured according to a first calculation formula when the peak-to-peak value is larger than a preset voltage value; wherein, the first and the second end of the pipe are connected with each other,
the first calculation formula is:
Ud=(D1-(D1-Dac)/3)/101;
wherein, D1 is the peak-to-peak value, dac is the preset voltage value, and Ud is the voltage value to be measured;
the second voltage calculation unit is used for calculating the voltage value to be measured according to a second calculation formula when the peak-to-peak value is smaller than or equal to a preset voltage value; wherein, the first and the second end of the pipe are connected with each other,
the second calculation formula is:
Ud=(D1+(Dac-D1)/20)/101;
wherein, D1 is the peak-to-peak value, dac is the preset voltage value, and Ud is the voltage value to be measured.
A third aspect of embodiments of the present application provides a test pencil including a voltage measurement device as claimed in any one of the preceding claims.
The embodiment of the application provides a voltage measuring method, a voltage measuring device and a test pencil, wherein the voltage measuring method comprises the following steps: contacting with an object to be detected and generating a detection signal; sampling the electricity testing signal to obtain a plurality of sampling voltage values, and calculating a peak-to-peak value according to the plurality of sampling voltage values; the peak-to-peak value is compared with the preset voltage value, and the corresponding calculation formula is selected according to the comparison result to calculate the voltage value to be measured.
Drawings
FIG. 1 is a schematic diagram illustrating steps of a voltage measurement method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a test pencil according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating steps of a voltage measurement method according to another embodiment of the present application;
FIG. 4 is a schematic diagram illustrating steps of a voltage measurement method according to another embodiment of the present application;
FIG. 5 is a schematic diagram illustrating steps of a voltage measurement method according to another embodiment of the present application;
FIG. 6 is a schematic diagram illustrating steps of a voltage measurement method according to another embodiment of the present application;
FIG. 7 is a schematic structural diagram of a voltage measurement device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a voltage measurement device according to another embodiment of the present application.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
It will be understood that when an element is referred to as being "secured to" or "disposed on" another element, it can be directly on the other element or be indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or be indirectly connected to the other element.
It will be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like are used in an orientation or positional relationship indicated in the drawings to facilitate the description of the application and to simplify the description, and are not intended to indicate or imply that the device or element so referred to must have a particular orientation, be constructed in a particular orientation, and be constructed in operation as a limitation of the application.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means one or more unless specifically limited otherwise.
The test pencil is a common electrician tool for determining whether an object is charged. The inside of the pen is usually a small bulb or a liquid crystal screen, one pole of the small bulb is connected to a pen point contact, and the other pole of the small bulb is connected with a high resistance in series and then connected to the other end of the pen. When the voltage between two poles of the small bulb reaches a certain value, glow is generated between the two poles, and the intensity of the glow is in direct proportion to the voltage between the two poles. When the voltage of the charged body to earth is greater than the initial glow voltage of the small bulb and the tip of the test pencil is contacted with it, the other end is earthed through human body, so that the test pencil can emit light.
At present, when people use the test pencil, whether an object has electricity or not can be prompted only through a small bulb or a liquid crystal screen simulation strip, at most, an approximate voltage gear can only be displayed, the error range is up to more than 100v, and an accurate voltage measurement value cannot be provided for a user.
In summary, when the conventional test pencil measures voltage, the measurement error is large, and the accurate value of the voltage cannot be measured.
An embodiment of the present application provides a voltage measurement method, and as shown in fig. 1, the voltage measurement method includes: steps S100-S300.
Specifically, step S100: contacting with the object to be measured and generating a measurement signal.
Step S200: and sampling the electricity testing signal to obtain a plurality of sampling voltage values, and calculating a peak-to-peak value according to the plurality of sampling voltage values.
Step S300: and comparing the peak-to-peak value with a preset voltage value, and selecting a corresponding calculation formula according to the comparison result to calculate the voltage value to be measured.
In step S100, in the embodiment, referring to fig. 2, the test pencil is in contact with the object to be measured, it can be understood that one end of the test tip of the test pencil is in contact with the object to be measured, and one end of the tail of the test pencil forms a loop with the ground through the human body, at this time, the microprocessor inside the test pencil detects a voltage signal, so as to form a test signal on the test pencil. The object to be tested can be electric equipment or an electric wire and the like, wherein the test pencil can be a pen-type test pencil or a screwdriver-type test pencil.
In step S200, after the test pencil detects the test signal, the test signal may be sampled and a sampling voltage value may be generated according to a sampling result, in this embodiment, the test pencil may sample the test signal according to different frequencies and generate a sampling voltage value, it may be understood that the test pencil generates different sampling voltage values according to different frequencies of the test signal, and the obtained sampling voltage values are also different, and then the peak-to-peak value is calculated according to the multiple sampling voltage values.
In one embodiment, the test pencil can sample the electrical signal according to different application requirements at a first sampling frequency or a second sampling frequency to obtain a plurality of sampling voltage values, wherein the sampling speed of the first sampling frequency is lower than that of the second sampling frequency.
In step S300, according to the comparison result between the peak-to-peak value and the preset voltage value, and according to the comparison result, different calculation formulas are selected, so that the voltage value to be measured can be calculated, the voltage value to be measured is displayed on the display screen, and the voltage value to be measured is accurately calculated and displayed, which can be distinguished from the conventional test pencil that only can display whether the object to be measured is electrified.
In one embodiment, referring to fig. 3, before contacting the object to be measured and generating the electrical signal, the method further includes:
step S110: the power-on initialization is carried out, and the working state of the key is detected, wherein the detection of the working state of the key comprises the following steps: step S111: checking the working state of the side power key, and step S112: detecting the operating state of the on button and step S113: and detecting the working state of the frequency key.
Specifically, in step S111, before the test pencil is used to perform the test, the test pencil is first powered on, where the power pencil may be powered on by directly performing a key operation through the power key, for example, a microprocessor of the test pencil may detect whether the power key is pressed in real time, when detecting that the power key is not pressed, the detection of the working state of the key is completed, when detecting that the power key is pressed, detect a time when the power key is pressed to generate a power key time signal, compare a voltage value of the power key time signal with a voltage value of a preset time signal, when the voltage value of the power key time signal is less than the voltage value of the preset time signal, light an illumination lamp at a side of the test pencil is turned on to provide illumination light for a user to use at night, when the voltage value of the power key time signal is greater than or the voltage value of the preset time signal, detect that the test pencil is in a powered on state or powered off state, and when the test pencil is in the powered off state.
In this embodiment, through carrying out the operating condition detection to the button, can control the operating condition of test pencil to the test pencil has the function of lighting up, very big promotion the security of work at night.
In one embodiment, in step S112, detecting the operation state of the on key includes: the microprocessor of the test pencil can detect whether the conduction key is pressed or not in real time, when the conduction key is not pressed, the working state of the conduction key is detected to be completed, when the conduction key is pressed, the microprocessor controls the first analog-to-digital converter to sample the electricity detection signal according to the preset conduction frequency to generate a conduction sampling signal, then the reference voltage, the sampling channel and the amplification factor of the amplifier of the first analog-to-digital converter and the filter parameter of the first filter are configured, whether the object to be detected is conducted or not is judged according to the conduction sampling signal, and therefore whether the object to be detected is conducted or not can be detected when the voltage is measured by the test pencil.
In one embodiment, the specific method for determining whether the object to be tested is turned on according to the turn-on sampling signal is to determine whether the turn-on sampling signal is stabilized at a value, and if the turn-on sampling signal is stabilized at the same value, determine that the object to be tested is turned on, and conversely, if the turn-on sampling signal is not stabilized at the same value, determine that the object to be tested is not turned on.
In one embodiment, in step S113, the detecting the operating state of the frequency key includes: the microprocessor of the test pencil can detect whether the frequency key is pressed in real time, when the frequency key is not pressed, the microprocessor controls the second analog-to-digital converter to sample the electricity detection signal according to the first sampling frequency to generate a plurality of sampling voltage values, when the frequency key is pressed, the microprocessor controls the second analog-to-digital converter to sample the electricity detection signal according to the second sampling frequency to generate a plurality of sampling voltage values, then the reference voltage of the second analog-to-digital converter is configured, a sampling channel is configured, the amplification factor of the amplifier and the filtering parameter of the second filter are configured, wherein the sampling speed of the second sampling frequency is greater than the sampling speed of the first sampling frequency.
In one embodiment, the sampling rate of the second sampling frequency is greater than the sampling rate of the first sampling frequency, wherein the sampling rate of the second sampling frequency is at least 10 times the sampling rate of the first sampling frequency. Specifically, when the test pencil is in contact with an object to be measured, a test signal is generated, the test signal is sampled to obtain a plurality of sampling voltage values, and a peak value is calculated according to the plurality of sampling voltage values, when the test signal is weak, the sampling speed of the second sampling frequency can be sampled to obtain the plurality of sampling voltage values, specifically, the method for judging that the test signal is weak can be that the test signal is compared with a preset standard signal, when the voltage value of the test signal is smaller than the voltage value of the preset standard signal, an alarm can be given to remind a user that the test signal is weak, so that the user can press a frequency button, the microprocessor controls the second analog-to-digital converter to sample the test signal according to the second sampling frequency, a plurality of sampling voltage values are generated, the sampling speed of the second sampling frequency is at least 10 times of the sampling speed of the first sampling frequency, the voltage value of the test signal can be accurately sampled, the generated plurality of sampling voltage values are more accurate, the voltage value to be measured can be accurately calculated, the application speed of the test pencil is increased, the problem that the current measurement situation cannot accurately measure voltage in the measurement error of the test pencil is solved.
In one embodiment, referring to FIG. 4, step S200: sampling the electricity measurement signal to obtain a plurality of sampling voltage values, and calculating a peak-to-peak value according to the plurality of sampling voltage values, including:
step S210: counting the number of the sampling voltage values to obtain a sampling count value;
step S220: and when the sampling count value is larger than the preset count value, calculating a peak-to-peak value according to the plurality of sampling voltage values, wherein the preset count value is more than or equal to 10.
In this embodiment, since the peak-to-peak value is calculated according to the plurality of sampled voltage values, it is necessary to count the number of sampled voltage values and calculate the peak-to-peak value according to the plurality of sampled voltage values when the sampled count value is greater than a preset count value. For example, the preset count value may be 10, it can be understood that, after the test pencil contacts with the object to be tested and generates the test signal, the second analog-to-digital converter samples the test signal to generate a sampling voltage value, when the number of the generated sampling voltage values is less than 10, the test signal is always sampled, the sampling voltage value is continuously generated, when the number of the generated sampling voltage values is equal to 10, the sampling is stopped, then the peak-to-peak value is calculated according to the 10 sampling voltage values, the number of the sampling voltage values is counted by setting, the problem that the finally calculated voltage value to be tested is inaccurate due to too few sampling voltage values is avoided, and the accuracy of the voltage value to be tested can be improved by setting the number of the sampling voltage values to be counted.
In one embodiment, referring to fig. 5, step S200: calculating a peak-to-peak value from the plurality of sampled voltage values, comprising:
step S230: selecting a maximum sampling voltage value from the plurality of sampling voltage values as a first preset peak value, and selecting a minimum sampling voltage value as a second preset peak value;
step S240: and calculating a peak-to-peak value according to the absolute values of the first preset peak value and the second preset peak value.
In this embodiment, the maximum sampled voltage value is selected from the plurality of sampled voltage values as the first preset peak value, and the minimum sampled voltage value is selected as the second preset peak value. Specifically, the maximum sampling voltage value and the minimum voltage value may be selected by a sorting method, for example, the sampling voltage values are sorted in descending order by a one-by-one comparison method, a first sampling voltage value in the sequence is used as a first preset peak value, a last sampling voltage value in the sequence is used as a second preset peak value, the first preset peak value and the second preset peak value are subjected to difference operation, an absolute value is obtained and output as a peak-to-peak value, the variation range of the sampling voltage value can be known by calculating the peak-to-peak value of the sampling voltage values, the voltage value to be measured can be accurately calculated according to the peak-to-peak value, an application scenario of the test pencil is increased, measurement accuracy is increased, and the problem that the current test pencil cannot measure the accurate value of the voltage due to a large measurement error is solved.
In one embodiment, selecting a maximum sampled voltage value from a plurality of sampled voltage values as a first preset peak value and selecting a minimum sampled voltage value as a second preset peak value comprises: and selecting a maximum sampling voltage value and a minimum sampling voltage value from the plurality of sampling voltage values according to a bubbling method.
Specifically, the specific method for selecting the maximum sampling voltage value and the minimum sampling voltage value from the plurality of sampling voltage values by the bubbling method is as follows: and comparing two adjacent sampling voltage values, adjusting the small sampling voltage value forwards, and circulating the operation until no exchangeable sampling voltage value exists, wherein the first sampling voltage value is the minimum sampling voltage value, and the last sampling voltage value is the maximum sampling voltage value. The maximum sampling voltage value and the minimum sampling voltage value are selected from the multiple sampling voltage values by using a bubbling method, the sampling voltage values are relatively stable, the maximum sampling voltage value and the minimum sampling voltage value can be accurately found, the peak-to-peak value is further calculated, and the voltage value to be measured is accurately calculated.
In one embodiment, referring to FIG. 6, step S300: comparing the peak-to-peak value with a preset voltage value, and selecting a corresponding calculation formula according to a comparison result to calculate a voltage value to be measured, wherein the calculation formula comprises the following steps:
step S310: and when the peak-to-peak value is larger than the preset voltage value, calculating the voltage value to be measured according to a first calculation formula.
Step S320: and when the peak-to-peak value is smaller than or equal to the preset voltage value, calculating the voltage value to be measured according to a second calculation formula.
Wherein the first calculation formula is: ud = (D1-Dac)/3)/101; wherein D1 is a peak-to-peak value, dac is a preset voltage value, and Ud is a voltage value to be measured; the second calculation formula is: ud = (D1 + (Dac-D1)/20)/101; wherein D1 is a peak-to-peak value, dac is a preset voltage value, and Ud is a voltage value to be measured.
In this embodiment, a maximum sampling voltage value and a minimum sampling voltage value are selected from a plurality of sampling voltage values, a peak-to-peak value is calculated according to the maximum voltage value and the minimum voltage value, and the peak-to-peak value is compared with a preset voltage value, in one embodiment, the preset voltage value is ac 220V, and the comparison result between the peak-to-peak value and the preset voltage value is divided into two calculation formulas to calculate the voltage value to be measured, respectively, wherein when the peak-to-peak value is greater than the preset voltage value, the voltage value to be measured is calculated according to a first calculation formula, and when the peak-to-peak value is less than or equal to the preset voltage value, the voltage value to be measured is calculated according to a second calculation formula. The problem of current test pencil when measuring voltage, measuring error is great, can not measure the accurate numerical value of voltage is solved.
An embodiment of the present application further provides a voltage measurement apparatus, and as shown in fig. 7, the voltage measurement apparatus includes: electricity measuring module 10, peak-to-peak value calculating module 20 and voltage calculating module 30.
Specifically, the electricity measuring module 10 is used for contacting with an object to be measured to generate an electricity measuring signal; the peak-to-peak value calculating module 20 is configured to sample the power measurement signal to obtain a plurality of sampling voltage values, and calculate a peak-to-peak value according to the plurality of sampling voltage values; the voltage calculating module 30 is configured to compare the peak-to-peak value with a preset voltage value, and select a corresponding calculation formula according to the comparison result to calculate the voltage value to be measured.
In this embodiment, the test pencil contacts with the object that awaits measuring, and it can be understood that, the test probe one end and the object contact that awaits measuring of test pencil, afterbody one end forms the return circuit through human body and earth, and the inside microprocessor of test pencil can detect voltage signal this moment to form survey electric signal on the test pencil. The object to be measured can be electric equipment or an electric wire and the like.
In this embodiment, after the test pencil detected the electricity signal, can sample the electricity signal to generate the sampling voltage value according to the sampling result, specifically, the test pencil can sample the electricity signal according to the frequency of difference, generates the sampling voltage value, and it can be understood that, the test pencil generates the frequency difference of sampling voltage value according to the electricity signal, and the sampling voltage value that obtains is also different, then calculates the peak-to-peak value according to a plurality of sampling voltage values.
In this embodiment, the test pencil can sample the electrical signal according to different application requirements and according to a first sampling frequency or a second sampling frequency to obtain a plurality of sampling voltage values, wherein a sampling speed of the first sampling frequency is lower than a sampling speed of the second sampling frequency.
In this embodiment, according to the comparison result of the peak-to-peak value and the preset voltage value, and according to the comparison result, different calculation formulas are selected for use, so that the voltage value to be measured can be calculated, the voltage value to be measured can be displayed through a display screen, and the voltage value to be measured can be accurately calculated and displayed through accurately calculating and displaying the voltage value to be measured, so that the method can be distinguished from the conventional test pencil that only can display whether an object to be measured is electrified.
In one embodiment, referring to fig. 8, the peak-to-peak value calculation module 20 includes: a sampling unit 21 and a calculation unit 22.
Specifically, the sampling unit 21 is configured to sample the electricity measurement signal to obtain a plurality of sampling voltage values; the calculation unit 22 is configured to calculate a peak-to-peak value according to the plurality of sampled voltage values.
In this embodiment, since the peak-to-peak value is calculated according to a plurality of sampling voltage values, the sampling unit 21 is required to sample the electricity measurement signal to obtain a plurality of sampling voltage values, wherein the number of the sampling voltage values may be counted, and the peak-to-peak value is calculated according to the plurality of sampling voltage values when the sampling count value is greater than the preset count value. For example, the preset count value may be 10, it can be understood that, after the test pencil contacts the object to be tested and generates the test signal, the second analog-to-digital converter samples the test signal to generate a sampling voltage value, when the number of the generated sampling voltage values is less than 10, the test signal is always sampled, the sampling voltage value is continuously generated, when the number of the generated sampling voltage values is equal to 10, the sampling is stopped, then the calculating unit 22 calculates the peak value according to the 10 sampling voltage values, and the number of the sampling voltage values is counted by setting, so that the problem that the finally calculated voltage value to be tested is inaccurate due to too few sampling voltage values is avoided, and the accuracy of the voltage value to be tested can be improved by setting to count the number of the sampling voltage values.
In one embodiment, the computing unit 22 is specifically configured to: selecting a maximum sampling voltage value from the plurality of sampling voltage values as a first preset peak value, and selecting a minimum sampling voltage value as a second preset peak value; and calculating a peak-to-peak value according to the absolute values of the first preset peak value and the second preset peak value.
In this embodiment, the maximum sampling voltage value is selected from the plurality of sampling voltage values as a first preset peak value, and the minimum sampling voltage value is selected as a second preset peak value. Specifically, the maximum sampling voltage value and the minimum voltage value may be selected by a sorting method, for example, the sampling voltage values are sorted in descending order by a one-by-one comparison method, a first sampling voltage value in the sequence is used as a first preset peak value, a last sampling voltage value in the sequence is used as a second preset peak value, the first preset peak value and the second preset peak value are subjected to difference operation, an absolute value is obtained and output as a peak-to-peak value, the variation range of the sampling voltage value can be known by calculating the peak-to-peak value of the sampling voltage values, the voltage value to be measured can be accurately calculated according to the peak-to-peak value, an application scenario of the test pencil is increased, measurement accuracy is increased, and the problem that the current test pencil cannot measure the accurate value of the voltage due to a large measurement error is solved.
In one embodiment, the maximum sampled voltage value and the minimum sampled voltage value are selected from a plurality of sampled voltage values according to a bubbling method. Specifically, the specific method for selecting the maximum sampling voltage value and the minimum sampling voltage value from the plurality of sampling voltage values by the bubbling method is as follows: and comparing two adjacent sampling voltage values, adjusting the small sampling voltage value forwards, and circulating the operation until no exchangeable sampling voltage value exists, wherein the first sampling voltage value is the minimum sampling voltage value, and the last sampling voltage value is the maximum sampling voltage value. The maximum sampling voltage value and the minimum sampling voltage value are selected from the multiple sampling voltage values by using a bubbling method, the sampling voltage values are relatively stable, the maximum sampling voltage value and the minimum sampling voltage value can be accurately found, the peak-to-peak value is further calculated, and the voltage value to be measured is accurately calculated.
In one embodiment, referring to fig. 8, the voltage calculation module 30 includes: a first voltage calculation unit 31 and a second voltage calculation unit 32.
Specifically, the first voltage calculating unit 31 is configured to calculate a voltage value to be measured according to a first calculation formula when the peak-to-peak value is greater than a preset voltage value; the first calculation formula is: ud = (D1-Dac)/3)/101; wherein D1 is a peak-to-peak value, dac is a preset voltage value, and Ud is a voltage value to be measured; the second voltage calculating unit 32 is configured to calculate a voltage value to be measured according to a second calculation formula when the peak-to-peak value is smaller than or equal to the preset voltage value; wherein the second calculation formula is: ud = (D1 + (Dac-D1)/20)/101; wherein D1 is a peak-to-peak value, dac is a preset voltage value, and Ud is a voltage value to be measured.
In the embodiment, a maximum sampling voltage value and a minimum sampling voltage value are selected from a plurality of sampling voltage values, a peak-to-peak value is calculated according to the maximum voltage value and the minimum voltage value, and the peak-to-peak value is compared with a preset voltage value, in one embodiment, the preset voltage value is alternating current 220V, and the comparison result of the peak-to-peak value and the preset voltage value is divided into two calculation formulas to calculate the voltage values to be measured respectively, wherein when the peak-to-peak value is greater than the preset voltage value, the voltage value to be measured is calculated according to a first calculation formula, and when the peak-to-peak value is less than or equal to the preset voltage value, the voltage value to be measured is calculated according to a second calculation formula. The problem of current test pencil when measuring voltage, measuring error is great, can not measure the accurate numerical value of voltage is solved.
The embodiment of the application further provides a test pencil, which comprises the voltage measuring device or the test pencil used for executing the voltage measuring method.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A voltage measurement method, comprising:
contacting with an object to be detected and generating a detection signal;
sampling the electricity testing signal to obtain a plurality of sampling voltage values, and calculating a peak-to-peak value according to the plurality of sampling voltage values;
and comparing the peak-to-peak value with a preset voltage value, and selecting a corresponding calculation formula according to a comparison result to calculate the voltage value to be measured.
2. The voltage measurement method of claim 1, wherein the sampling the electrical signal under test to obtain a plurality of sampled voltage values and calculating a peak-to-peak value from the plurality of sampled voltage values comprises:
counting the number of the sampling voltage values to obtain a sampling count value;
and when the sampling count value is greater than a preset count value, calculating the peak-to-peak value according to the plurality of sampling voltage values, wherein the preset count value is greater than or equal to 10.
3. The voltage measurement method of claim 1, wherein said calculating a peak-to-peak value from a plurality of said sampled voltage values comprises:
selecting a maximum sampling voltage value from the plurality of sampling voltage values as a first preset peak value, and selecting a minimum sampling voltage value as a second preset peak value;
and calculating the peak-to-peak value according to the absolute values of the first preset peak value and the second preset peak value.
4. The voltage measurement method of claim 3, wherein selecting a maximum sampled voltage value as a first preset peak value and a minimum sampled voltage value as a second preset peak value from a plurality of the sampled voltage values comprises:
and selecting the maximum sampling voltage value and the minimum sampling voltage value from the plurality of sampling voltage values according to a bubbling method.
5. The voltage measurement method according to claim 3, wherein the comparing the peak-to-peak value with a preset voltage value and selecting a corresponding calculation formula according to the comparison result to calculate the voltage value to be measured comprises:
when the peak-to-peak value is larger than a preset voltage value, calculating the voltage value to be measured according to a first calculation formula;
when the peak-to-peak value is smaller than or equal to a preset voltage value, calculating the voltage value to be measured according to a second calculation formula; wherein the content of the first and second substances,
the first calculation formula is:
Ud=(D1-(D1-Dac)/3)/101;
wherein, D1 is the peak-to-peak value, dac is the preset voltage value, and Ud is the voltage value to be measured;
the second calculation formula is:
Ud=(D1+(Dac-D1)/20)/101;
wherein, D1 is the peak-to-peak value, dac is the preset voltage value, and Ud is the voltage value to be measured.
6. A voltage measurement device, characterized in that the voltage measurement device comprises:
the electricity testing module is used for contacting with an object to be tested to generate an electricity testing signal;
the peak-to-peak value calculation module is used for sampling the electricity detection signal to obtain a plurality of sampling voltage values and calculating a peak-to-peak value according to the plurality of sampling voltage values;
and the voltage calculation module is used for comparing the peak-to-peak value with a preset voltage value and selecting a corresponding calculation formula according to a comparison result to calculate the voltage value to be measured.
7. The voltage measurement apparatus of claim 6, wherein the peak-to-peak value calculation module comprises:
the sampling unit is used for sampling the electricity testing signal to obtain a plurality of sampling voltage values;
and the calculating unit is used for calculating a peak-to-peak value according to the plurality of sampling voltage values.
8. The voltage measurement device of claim 7, wherein the computing unit is specifically configured to:
selecting a maximum sampling voltage value from the plurality of sampling voltage values as a first preset peak value, and selecting a minimum sampling voltage value as a second preset peak value;
and calculating the peak-to-peak value according to the absolute values of the first preset peak value and the second preset peak value.
9. The voltage measurement apparatus of claim 6, wherein the voltage calculation module comprises:
the first voltage calculation unit is used for calculating the voltage value to be measured according to a first calculation formula when the peak-to-peak value is larger than a preset voltage value; wherein, the first and the second end of the pipe are connected with each other,
the first calculation formula is:
Ud=(D1-(D1-Dac)/3)/101;
wherein D1 is the peak-to-peak value, dac is the preset voltage value, and Ud is the voltage value to be measured;
the second voltage calculation unit is used for calculating the voltage value to be measured according to a second calculation formula when the peak-to-peak value is smaller than or equal to a preset voltage value; wherein the content of the first and second substances,
the second calculation formula is:
Ud=(D1+(Dac-D1)/20)/101;
wherein, D1 is the peak-to-peak value, dac is the preset voltage value, and Ud is the voltage value to be measured.
10. A test pencil comprising a voltage measuring device according to any one of claims 6 to 9.
CN202210908020.3A 2022-07-29 2022-07-29 Voltage measurement method, voltage measurement device and test pencil Pending CN115372685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210908020.3A CN115372685A (en) 2022-07-29 2022-07-29 Voltage measurement method, voltage measurement device and test pencil

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210908020.3A CN115372685A (en) 2022-07-29 2022-07-29 Voltage measurement method, voltage measurement device and test pencil

Publications (1)

Publication Number Publication Date
CN115372685A true CN115372685A (en) 2022-11-22

Family

ID=84063258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210908020.3A Pending CN115372685A (en) 2022-07-29 2022-07-29 Voltage measurement method, voltage measurement device and test pencil

Country Status (1)

Country Link
CN (1) CN115372685A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980029A (en) * 2010-09-14 2011-02-23 海洋王照明科技股份有限公司 Voltage sampling method and device
US20150381045A1 (en) * 2014-06-30 2015-12-31 Skyworks Solutions, Inc. Mode control device, voltage converter, and mode control method
CN106597075A (en) * 2016-12-13 2017-04-26 合肥美的暖通设备有限公司 Alternating voltage detection device and method
CN107833643A (en) * 2017-10-16 2018-03-23 中核核电运行管理有限公司 Totally digitilized rod position measuring device and its method
CN212060395U (en) * 2020-02-27 2020-12-01 武汉大学 Digital oscilloscope supporting real-time sampling and equivalent sampling
CN214585688U (en) * 2021-02-22 2021-11-02 广州视源电子科技股份有限公司 Sampling device and power supply equipment of voltage doubling rectifying circuit
US20210341351A1 (en) * 2018-10-10 2021-11-04 Huawei Technologies Co., Ltd. Water Ingress Detection Method and Circuit, and Electric Device
CN113834965A (en) * 2021-09-15 2021-12-24 广东电网有限责任公司 Ripple voltage measuring device and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980029A (en) * 2010-09-14 2011-02-23 海洋王照明科技股份有限公司 Voltage sampling method and device
US20150381045A1 (en) * 2014-06-30 2015-12-31 Skyworks Solutions, Inc. Mode control device, voltage converter, and mode control method
CN106597075A (en) * 2016-12-13 2017-04-26 合肥美的暖通设备有限公司 Alternating voltage detection device and method
CN107833643A (en) * 2017-10-16 2018-03-23 中核核电运行管理有限公司 Totally digitilized rod position measuring device and its method
US20210341351A1 (en) * 2018-10-10 2021-11-04 Huawei Technologies Co., Ltd. Water Ingress Detection Method and Circuit, and Electric Device
CN212060395U (en) * 2020-02-27 2020-12-01 武汉大学 Digital oscilloscope supporting real-time sampling and equivalent sampling
CN214585688U (en) * 2021-02-22 2021-11-02 广州视源电子科技股份有限公司 Sampling device and power supply equipment of voltage doubling rectifying circuit
CN113834965A (en) * 2021-09-15 2021-12-24 广东电网有限责任公司 Ripple voltage measuring device and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张学明;宓韵萍;江军;黄鹰;陈海清;江源;: "光纤电压传感器信号处理电路的设计", 光学仪器, no. 02 *
张彩荣等: "《电路实验与实训教程》", 31 October 2008, 东南大学出版社, pages: 1 *

Similar Documents

Publication Publication Date Title
US5240010A (en) Fertility probe
EP0236434B1 (en) Wave shape chemical analysis apparatus and method
CN107368768A (en) Suitable for the user identification method and scale of scale
US9329226B2 (en) Method for ascertaining at least one malfunction of a conductive conductivity sensor
CN201503341U (en) Sulfur hexafluoride gas leak detector
CN109633404B (en) PXI-based avalanche photodetector electrical characteristic test system
CN110530408A (en) A kind of Transducer-fault Detecting Method, detection circuit and detector
CN115372685A (en) Voltage measurement method, voltage measurement device and test pencil
CN201237520Y (en) Level detector
CN109900970A (en) A kind of multi channel detector capacitor automatic measurement system
CN206147064U (en) Hall assembly detection device
CN110118630B (en) Calibration judgment method for magnetic control vacuum gauge
CN210181590U (en) MCU parameter testing system
RU179241U1 (en) Mobile express food analysis device
CN220188616U (en) Induction type electricity inspection device
CN204142837U (en) Portable online resistance conductance detector
RU195087U1 (en) Individual device for determination of nitrates in products, water hardness and radiation background
CN216248915U (en) Metering device for 16-way ignition delay time of program controller detection equipment
CN204203359U (en) The proving installation of conductivity and consumer
CN209280787U (en) A kind of electrical dedicated multimeter
CN211741386U (en) Device for optimizing voltage probe error of oscilloscope
CN220603363U (en) Portable alternating current impedance analyzer, system and electrochemical sensor
CN219676064U (en) Battery detector
CN112834996B (en) Radar sensing module testing method and device
CN218512537U (en) A test subassembly for detecting ground resistance

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