CN211652975U - Voltage sampling circuit and electronic device - Google Patents
Voltage sampling circuit and electronic device Download PDFInfo
- Publication number
- CN211652975U CN211652975U CN201921802322.2U CN201921802322U CN211652975U CN 211652975 U CN211652975 U CN 211652975U CN 201921802322 U CN201921802322 U CN 201921802322U CN 211652975 U CN211652975 U CN 211652975U
- Authority
- CN
- China
- Prior art keywords
- resistor
- voltage sampling
- circuit
- unit
- filter circuit
- 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.)
- Active
Links
Images
Landscapes
- Measurement Of Current Or Voltage (AREA)
Abstract
The utility model relates to a voltage sampling circuit and electron device, include: the PWM processor is connected with a rectification filtering unit of a PWM signal output end of the PWM processor, a voltage sampling unit used for being connected with a sampled circuit and a comparison unit respectively connected with the rectification filtering unit and the voltage sampling unit, and the output end of the comparison unit is connected with the input end of the PWM processor. Implement the utility model discloses can realize realizing voltage sampling through simple circuit.
Description
Technical Field
The utility model relates to a voltage sampling technical field, more specifically say, relate to a voltage sampling circuit and electron device.
Background
In electronic circuit design, some voltage values are often required to be sampled, and the common mode is realized by directly adopting an ADC function of a main control chip. However, when some main control chips do not have the ADC sampling function, an ADC dedicated chip needs to be used, but the ADC chip generally has a higher cost and a relatively complex circuit design.
SUMMERY OF THE UTILITY MODEL
The to-be-solved technical problem of the utility model lies in, to the above-mentioned prior art defect of prior art, a voltage sampling circuit and electron device are provided.
The utility model provides a technical scheme that its technical problem adopted is: constructing a voltage sampling circuit comprising: the PWM processor is connected with a rectification filtering unit of a PWM signal output end of the PWM processor, is used for being connected with a voltage sampling unit of a sampled circuit, is respectively connected with the rectification filtering unit and a comparison unit of the voltage sampling unit, and the output end of the comparison unit is connected with the input end of the PWM processor.
Preferably, the rectification filter unit comprises at least one stage of RC filter circuit.
Preferably, the at least one stage of RC filtering circuit includes three stages of RC filtering circuits connected in cascade.
Preferably, the three-stage RC filter circuit includes a first RC filter circuit, a second RC filter circuit and a third RC filter circuit;
the first RC filter circuit comprises a resistor R1 and a capacitor C1, one end of the resistor R1 is connected with the PWM processor, the other end of the resistor R1 is grounded through the capacitor C1, and the other end of the resistor R1 is also connected with the second RC filter circuit;
the second RC filter circuit comprises a resistor R2 and a capacitor C2, one end of the resistor R2 is connected with the first RC filter circuit, the other end of the resistor R2 is grounded through the capacitor C2, and the other end of the resistor R2 is also connected with the third RC filter circuit;
the third RC filter circuit comprises a resistor R3 and a capacitor C3, one end of the resistor R3 is connected with the second RC filter circuit, the other end of the resistor R3 is grounded through the capacitor C3, and the other end of the resistor R3 is also connected with the comparison unit.
Preferably, the comparing unit comprises a comparator U1, the non-inverting input terminal of the comparator U1 is connected to the rectifying and filtering circuit, the inverting input terminal of the comparator U1 is connected to the voltage sampling unit, and the output terminal of the comparator U1 is connected to the PWM processor.
Preferably, the comparator U1 has a model number SGM 8273.
Preferably, the voltage sampling unit includes a resistor R4 and a resistor R5, one end of the resistor R4 is used for connecting the sampled circuit, the other end of the resistor R4 is grounded via the resistor R5, and the other end of the resistor R4 is further connected to the comparing unit.
Preferably, the model of the PWM processor is Junzhen X1000.
The utility model discloses a still construct an electron device, include above-mentioned arbitrary one the voltage sampling circuit.
Implement the utility model discloses a voltage sampling circuit and electron device has following beneficial effect: voltage sampling is achieved through a simple circuit.
Drawings
The invention will be further explained with reference to the drawings and examples, wherein:
fig. 1 is a circuit block diagram of a voltage sampling circuit according to the present invention;
fig. 2 is a circuit block diagram of an embodiment of a voltage sampling circuit according to the present invention.
Detailed Description
In order to clearly understand the technical features, objects, and effects of the present invention, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
As shown in fig. 1, in a first embodiment of the voltage sampling circuit of the present invention, the voltage sampling circuit includes: the PWM signal sampling circuit comprises a PWM processor 10, a rectifying and filtering unit 20 connected with a PWM signal output end of the PWM processing, a voltage sampling unit 40 used for being connected with a sampled circuit, and a comparison unit 30 respectively connected with the rectifying and filtering unit 20 and the voltage sampling unit 40, wherein the output end of the comparison unit 30 is connected with the input end of the PWM processor 10. Specifically, a PWM signal output pin of the PWM processor 10 outputs a PWM signal, the PWM signal is rectified and filtered by the rectifying and filtering unit 20 to output a reference voltage value, the voltage sampling unit 40 is connected to the sampled circuit, the sampled voltage and the reference voltage are simultaneously input to the comparing unit 30 according to the sampled voltage obtained by the sampled circuit, and the comparing unit 30 compares the sampled voltage and the reference voltage and outputs a corresponding result, which may be a high level or a low level. The PWM processor 10 adjusts the PWM signal so that the reference voltage output by the rectifying and filtering unit 20 of the PWM signal varies within a certain range, and at this time, a variation process occurs between the reference voltage and the sampled voltage through the output of the comparing unit 30, that is, in the variation process of the reference voltage, the reference voltage may vary from a voltage higher than the sampled voltage to a voltage lower than the sampled voltage, or may vary from a voltage lower than the sampled voltage to a voltage higher than the sampled voltage, and then in the variation process, the PWM processor 10 may obtain a level variation value output by the comparing unit 30, where the reference voltage and the sampled voltage corresponding to the level variation value are equal. Through the PWM signal corresponding to the reference voltage, the value of the reference voltage can be obtained, so that the sampling result of the sampling voltage is finally obtained, and the final sampling voltage of the voltage sampling circuit is obtained.
Optionally, as shown in fig. 2, the rectifying and filtering unit 20 includes at least one stage of RC filtering circuit. Specifically, the rectifying and filtering unit 20 may implement the filtering function by using the simplest RC filter circuit.
Further, the at least one stage of RC filter circuit comprises three stages of RC filter circuits which are connected in cascade. Specifically, in order to ensure the filtering effect, three stages of RC filter circuits may be connected in series.
Optionally, the three-stage RC filter circuit includes a first RC filter circuit, a second RC filter circuit, and a third RC filter circuit; the first RC filter circuit comprises a resistor R1 and a capacitor C1, one end of the resistor R1 is connected with the PWM processor 10, the other end of the resistor R1 is grounded through the capacitor C1, and the other end of the resistor R1 is also connected with the second RC filter circuit; the second RC filter circuit comprises a resistor R2 and a capacitor C2, one end of the resistor R2 is connected with the first RC filter circuit, the other end of the resistor R2 is grounded through the capacitor C2, and the other end of the resistor R2 is also connected with the third RC filter circuit; the third RC filter circuit comprises a resistor R3 and a capacitor C3, one end of the resistor R3 is connected with the second RC filter circuit, the other end of the resistor R3 is grounded through the capacitor C3, and the other end of the resistor R3 is also connected with the comparison unit 30. Specifically, rectification filtering is realized by a three-stage RC filter circuit consisting of a resistor R1, a resistor R2, a resistor R3, a capacitor C1, a capacitor C2 and a capacitor C3.
Optionally, the comparing unit 30 includes a comparator U1, the inverting input terminal of the comparator U1 is connected to the rectifying and filtering circuit, the inverting input terminal of the comparator U1 is connected to the voltage sampling unit 40, and the output terminal of the comparator U1 is connected to the PWM processor 10. Specifically, the comparing unit 30 adopts a comparator U1, the same-direction input end of which inputs a reference voltage, the reverse-direction input end of which inputs a sampling voltage, when the reference voltage is higher than the sampling voltage, the output end of the comparator U1 outputs a low level, when the reference voltage is lower than the sampling voltage, the output end of the comparator U1 outputs a high level, in the process of adjusting the reference voltage, when the level of the output end of the comparator U1 changes, it is indicated that the reference voltage is equal to the sampling voltage, that is, the sampling voltage can be obtained according to the reference voltage.
Further, the comparator U1 has a model number SGM 8273.
Optionally, the voltage sampling unit 40 includes a resistor R4 and a resistor R5, one end of the resistor R4 is used for connecting the sampled circuit, the other end of the resistor R4 is grounded via a resistor R5, and the other end of the resistor R4 is further connected to the comparing unit 30. Specifically, the voltage is divided by the resistor R4 and the resistor R4 to obtain the sampling voltage of the sampled circuit.
Optionally, the model of the PWM processor 10 is junzhen X1000. Specifically, a PWM signal output is provided through the positive X1000, and the output level of the comparison unit 30 is detected to obtain the final sampling voltage.
Additionally, the present invention is directed to an electronic device including the voltage sampling circuit of any one of the above aspects. Namely, the voltage sampling function in the electronic device can be realized by the above voltage sampling circuit.
It is to be understood that the foregoing examples merely represent preferred embodiments of the present invention, and that the description thereof is more specific and detailed, but not intended to limit the scope of the invention; it should be noted that, for those skilled in the art, the above technical features can be freely combined, and several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention; therefore, all changes and modifications that come within the meaning and range of equivalency of the claims are to be embraced within their scope.
Claims (9)
1. A voltage sampling circuit, comprising: the PWM processor is connected with a rectification filtering unit of a PWM signal output end of the PWM processor, is used for being connected with a voltage sampling unit of a sampled circuit, is respectively connected with the rectification filtering unit and a comparison unit of the voltage sampling unit, and the output end of the comparison unit is connected with the input end of the PWM processor.
2. The voltage sampling circuit of claim 1, wherein the rectifying-filtering unit comprises at least one stage of an RC filtering circuit.
3. The voltage sampling circuit of claim 2, wherein the at least one stage of RC filtering circuitry comprises a cascade connection of three stages of RC filtering circuitry.
4. The voltage sampling circuit of claim 3, wherein the three-stage RC filter circuit comprises a first RC filter circuit, a second RC filter circuit, and a third RC filter circuit;
the first RC filter circuit comprises a resistor R1 and a capacitor C1, one end of the resistor R1 is connected with the PWM processor, the other end of the resistor R1 is grounded through the capacitor C1, and the other end of the resistor R1 is also connected with the second RC filter circuit;
the second RC filter circuit comprises a resistor R2 and a capacitor C2, one end of the resistor R2 is connected with the first RC filter circuit, the other end of the resistor R2 is grounded through the capacitor C2, and the other end of the resistor R2 is also connected with the third RC filter circuit;
the third RC filter circuit comprises a resistor R3 and a capacitor C3, one end of the resistor R3 is connected with the second RC filter circuit, the other end of the resistor R3 is grounded through the capacitor C3, and the other end of the resistor R3 is also connected with the comparison unit.
5. The voltage sampling circuit according to claim 1, wherein the comparing unit comprises a comparator U1, a non-inverting input terminal of the comparator U1 is connected to the rectifying and filtering unit, an inverting input terminal of the comparator U1 is connected to the voltage sampling unit, and an output terminal of the comparator U1 is connected to the PWM processor.
6. The voltage sampling circuit of claim 5, wherein the comparator U1 is model SGM 8273.
7. The voltage sampling circuit according to claim 1, wherein the voltage sampling unit comprises a resistor R4 and a resistor R5, one end of the resistor R4 is used for connecting the sampled circuit, the other end of the resistor R4 is connected to ground through the resistor R5, and the other end of the resistor R4 is further connected to the comparison unit.
8. The voltage sampling circuit of claim 1, wherein the PWM processor is of a model of junzhen X1000.
9. An electronic device comprising the voltage sampling circuit of any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201921802322.2U CN211652975U (en) | 2019-10-22 | 2019-10-22 | Voltage sampling circuit and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201921802322.2U CN211652975U (en) | 2019-10-22 | 2019-10-22 | Voltage sampling circuit and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN211652975U true CN211652975U (en) | 2020-10-09 |
Family
ID=72690962
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201921802322.2U Active CN211652975U (en) | 2019-10-22 | 2019-10-22 | Voltage sampling circuit and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN211652975U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112666384A (en) * | 2020-12-30 | 2021-04-16 | 温州雅麦柯自动化科技有限公司 | Low-cost sampling circuit based on FPGA and sampling method thereof |
CN117990982A (en) * | 2024-04-02 | 2024-05-07 | 成都金诺信高科技有限公司 | Same-frequency signal phase measuring circuit, chip and device based on trigger |
-
2019
- 2019-10-22 CN CN201921802322.2U patent/CN211652975U/en active Active
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112666384A (en) * | 2020-12-30 | 2021-04-16 | 温州雅麦柯自动化科技有限公司 | Low-cost sampling circuit based on FPGA and sampling method thereof |
CN117990982A (en) * | 2024-04-02 | 2024-05-07 | 成都金诺信高科技有限公司 | Same-frequency signal phase measuring circuit, chip and device based on trigger |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN211652975U (en) | Voltage sampling circuit and electronic device | |
CN103675421A (en) | Power burr signal detection circuit and detection method thereof | |
CN101334429B (en) | Surge electric current test circuit | |
CN104122970A (en) | Power circuit | |
CN108490241B (en) | High-bandwidth small-signal high-precision peak detection device | |
CN203933540U (en) | A kind of amplifier | |
CN206993087U (en) | A kind of signal conversion interface circuit | |
CN104716959A (en) | Analog-to-digital converting device and analog-to-digital converting method | |
CN117054832A (en) | Arc discharge detection device and method and direct current system | |
CN208479168U (en) | A kind of under-voltage protecting circuit | |
CN212259135U (en) | Computer image acquisition device | |
CN110504940B (en) | Low-pass filter circuit and method | |
CN114113988A (en) | Signal loss real-time detection circuit and method | |
CN213934849U (en) | Infrared signal processing circuit and infrared touch screen | |
CN115389811A (en) | Zero crossing point detection circuit | |
CN109548410A (en) | Audio signal sample circuit | |
CN220084961U (en) | Voltage signal amplitude limiting judging device | |
CN205844510U (en) | Pulse check photometer head | |
WO2015165074A1 (en) | Apparatus and method for filtering noises in signal | |
CN109117682A (en) | A kind of integrating circuit | |
CN218724238U (en) | Sensor conditioning circuit and sensor | |
CN211348398U (en) | Current sampling circuit | |
CN220154819U (en) | Digital input/output processing system | |
CN203574635U (en) | Signal conversion equipment | |
CN210742293U (en) | Signal processing circuit of spinning frame spindle speed sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |