CN113114209A - Analog voltage conversion circuit capable of adjusting input and output voltage range - Google Patents

Analog voltage conversion circuit capable of adjusting input and output voltage range Download PDF

Info

Publication number
CN113114209A
CN113114209A CN202110322320.9A CN202110322320A CN113114209A CN 113114209 A CN113114209 A CN 113114209A CN 202110322320 A CN202110322320 A CN 202110322320A CN 113114209 A CN113114209 A CN 113114209A
Authority
CN
China
Prior art keywords
input
circuit
analog voltage
output
analog
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
CN202110322320.9A
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.)
Xian Fast Auto Drive Co Ltd
Original Assignee
Xian Fast Auto Drive 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 Xian Fast Auto Drive Co Ltd filed Critical Xian Fast Auto Drive Co Ltd
Priority to CN202110322320.9A priority Critical patent/CN113114209A/en
Publication of CN113114209A publication Critical patent/CN113114209A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/0175Coupling arrangements; Interface arrangements
    • H03K19/017509Interface arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

The invention discloses an analog voltage conversion circuit capable of adjusting the range of input and output voltages, which comprises a singlechip, wherein an ADC (analog-to-digital converter) port of the singlechip is connected with an input signal conditioning circuit, and a TIMER (TIMER interface) of the singlechip is connected with a PWM (pulse-width modulation) signal conversion analog voltage circuit; the single chip microcomputer is also connected to an upper computer; the circuit is a modular level conversion scheme, can complete conversion between levels by simply setting an input level range and an output level range through an upper computer, and is simple to operate and high in transportability.

Description

Analog voltage conversion circuit capable of adjusting input and output voltage range
Technical Field
The invention belongs to the technical field of voltage conversion, and particularly relates to an analog voltage conversion circuit capable of adjusting the range of input and output voltages.
Background
In circuit design, an analog signal output by a sensor usually needs to be converted into a digital signal through a/D conversion of an ADC before being input to an MCU for processing. Typically, the voltage range of the analog signal does not meet the voltage input requirements of the ADC, and signal conditioning is required.
The signal conditioning is usually an active voltage adjusting circuit designed by using an operational amplifier, and the circuit not only realizes the adjustment of voltage, but also meets the requirement of impedance matching, but has no universality. For a designed and debugged circuit, once the sensor or ADC is replaced, i.e., the input voltage (output of the sensor) or output voltage (input voltage of the ADC) range of the signal conditioning circuit is changed, circuit parameters need to be modified, and even the circuit needs to be redesigned.
Disclosure of Invention
The present invention is directed to overcome the above disadvantages of the prior art, and to provide a conversion circuit capable of adjusting a voltage range, so as to solve the problem that a front-end signal conditioning circuit needs to change in real time or an active voltage conditioning circuit needs to modify circuit parameters when a sensor or an ADC in the prior art is converted.
In order to achieve the purpose, the invention adopts the following technical scheme to realize the purpose:
an analog voltage conversion circuit capable of adjusting input and output voltage ranges comprises a single chip microcomputer, wherein an ADC port of the single chip microcomputer is connected with an input signal conditioning circuit, and a TIMER interface of the single chip microcomputer is connected with a PWM signal to analog voltage conversion circuit; the single chip microcomputer is also connected to an upper computer;
the input signal conditioning circuit is connected to a signal input end of analog voltage conversion, and the PWM signal to analog voltage conversion circuit is connected to a signal output end of analog voltage conversion.
The invention is further improved in that:
preferably, the single chip microcomputer is an STM32F030 single chip microcomputer.
Preferably, the input level setting range of the upper computer is 0-10V.
Preferably, the output level setting range of the upper computer is 0-10V.
Preferably, the input range of the ADC is 0-3.3V.
Preferably, the PWM signal conversion analog voltage circuit is an inverse integration circuit.
Preferably, when the output voltage of the singlechip is 10V, the duty ratio of the PWM signal-to-analog voltage circuit is 0%; when the output voltage of the singlechip is 5V, the duty ratio of the PWM signal-to-analog voltage circuit is 50 percent; when the output voltage of the singlechip is 0V, the duty ratio of the PWM signal-to-analog voltage circuit is 100 percent.
Preferably, the single chip microcomputer is provided with a UART port, and the UART port is communicated with the upper computer.
Preferably, the input signal conditioning circuit comprises a voltage follower and an inverting amplifier connected.
Preferably, the input signal conditioning circuit and the PWM signal conversion analog circuit both use LM324 chips.
Compared with the prior art, the invention has the following beneficial effects:
the invention discloses an analog voltage conversion circuit capable of adjusting the range of input and output voltages, which comprises a singlechip, wherein an ADC (analog-to-digital converter) port of the singlechip is connected with an input signal conditioning circuit, and a TIMER (TIMER interface) of the singlechip is connected with a PWM (pulse-width modulation) signal conversion analog voltage circuit; the single chip microcomputer is also connected to an upper computer; the circuit is a modular level conversion scheme, can complete conversion between levels by simply setting an input level range and an output level range through an upper computer, and is simple to operate and high in transportability.
Drawings
FIG. 1 is a circuit block diagram of the present invention;
FIG. 2 is a diagram of an input signal conditioning circuit according to the present invention;
FIG. 3 is a diagram of an input interface of the host computer according to the present invention;
FIG. 4 is a circuit diagram of converting PWM signals to analog voltages according to the present invention;
wherein: 1-a single chip microcomputer; 2-an input signal conditioning circuit; 3-converting the PWM signal into an analog voltage circuit; 4-an upper computer.
Detailed Description
The invention is described in further detail below with reference to the accompanying drawings:
referring to fig. 1, the invention discloses an analog voltage conversion circuit capable of adjusting the range of input and output voltages, which comprises an input signal conditioning circuit 2, a single chip microcomputer 1, a PWM signal to analog voltage conversion circuit 3, a PC upper computer 4 and four main parts.
The STM32F030 is used as a single chip microcomputer and has rich peripheral equipment, and a communication port, a plurality of paths of ADCs and a plurality of paths of TIMERs are integrated in the single chip microcomputer. In addition, 4-path operational amplifiers are integrated in the selected chip LM324, and multi-path level conversion is easy to realize according to the method described by the invention.
The input voltage range of the whole circuit setting design is 0-10V, the output voltage range is 0-10V, namely the input and output voltage range is 0-10V and is adjusted through upper computer software.
The input end of the input signal conditioning circuit 2 is connected with an input signal, and the output end of the input signal conditioning circuit 2 is connected to the STM32F030 single chip microcomputer. The STM32F030 singlechip is through the mutual of built-in ADC port collection input signal, and the inside UART mouth of STM32F030 singlechip communicates and data with host computer 4, and the inside TIMER interface connection of STM32F030 singlechip has PWM signal to analog voltage circuit 3, and PWM signal changes analog voltage circuit 3 and is connected to the signal output part of whole circuit.
Referring to fig. 3, the input and output level range set by the upper computer 4 converts the data collected from the ADC port into PWM signals with different duty ratios and fixed frequencies output from the TIMER port. The output PWM signal passes through a PWM signal voltage conversion circuit to output a final signal. The ADC is an analog-digital conversion module. The upper computer 4 can be an input terminal such as a computer terminal.
Specifically, regarding the input signal conditioning circuit, the input range of the internal ADC of the STM32F030 is 0-3.3V. The input voltage range designed by the invention is 0-10V, so that the voltage of 0-10V needs to be adjusted to 0-3.3V, and meanwhile, the requirement of impedance matching is considered, the input signal conditioning circuit is set to adopt two-stage operational amplifier cascade connection, as shown in figure 2, the operational amplifier uses an LM324 chip. In the two-stage operational amplifier, the first stage is a voltage follower, namely a homodromous amplifier, the amplification factor is 1, the second stage is a reverse amplifier, the amplification factor is-2/3, and the output of the whole signal conditioning circuit is as follows:
VO=(1-2/3)*VI
specifically, the single chip microcomputer 1 communicates with the upper computer 4 through a UART, and an input and output level range is set through the upper computer 4; the software interface of the upper computer is shown in figure 3;
specifically, the single chip microcomputer 1 reads input data through an ADC, and outputs PWM signals with fixed frequency and different duty ratios through a TIMER port according to an input and output signal range set by the upper computer 4 and a linear relation fixed by the input signal conditioning circuit 2.
Because the output range of the circuit designed by the invention is 0-10V, the backward PWM signal-to-analog voltage circuit 3 adopts an inverse integration circuit, when the voltage of 10V needs to be output, the duty ratio of the output PWM signal is 0%, when 5V is output, the duty ratio of the PWM signal is 50%, and when 0V is output, the duty ratio of the PWM signal is 100%.
Examples
The upper computer 4 sets the input range to be 0-5V, and the output range to be 0-10V for example, namely the whole output voltage is 2 times of the input voltage. When the voltage of 1V is read by the single chip microcomputer 4, the actual analog signal is input to the single chip microcomputer 1 through the signal conditioning circuit, so that the actual analog signal should be 1 × 3 — 3V, the output voltage should be 6V, and the single chip microcomputer 1 should output a PWM signal with a duty ratio of 40% from the TIMER.
Specifically, the PWM signal-to-voltage circuit converts a PWM signal output by the TIMER into a voltage signal; as shown in fig. 4, the circuit is implemented by an integrating circuit composed of an operational amplifier, and the operational amplifier uses an LM324 chip.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. An analog voltage conversion circuit capable of adjusting the range of input and output voltages is characterized by comprising a single chip microcomputer (1), wherein an ADC port of the single chip microcomputer (1) is connected with an input signal conditioning circuit (2), and a TIMER interface of the single chip microcomputer (1) is connected with a PWM signal-to-analog voltage circuit (3); the single chip microcomputer (1) is also connected to an upper computer (4);
the input signal conditioning circuit (2) is connected to a signal input end of analog voltage conversion, and the PWM signal conversion analog voltage circuit (3) is connected to a signal output end of analog voltage conversion.
2. The analog voltage conversion circuit capable of adjusting the input and output voltage range according to claim 1, wherein the single chip microcomputer (1) is an STM32F030 single chip microcomputer.
3. The analog voltage conversion circuit capable of adjusting the input and output voltage range according to claim 1, wherein the input level of the upper computer (4) is set to be in the range of 0-10V.
4. The analog voltage conversion circuit capable of adjusting the input and output voltage range according to claim 1, wherein the output level of the upper computer (4) is set to be in the range of 0-10V.
5. The analog voltage conversion circuit of claim 4, wherein the input range of the ADC is 0-3.3V.
6. The analog voltage conversion circuit capable of adjusting the input-output voltage range according to claim 5, wherein the PWM signal conversion analog voltage circuit (3) is an inverse integration circuit.
7. The analog voltage conversion circuit capable of adjusting the input and output voltage range according to claim 6, wherein when the output voltage of the single chip microcomputer (4) is 10V, the duty ratio of the PWM signal conversion analog voltage circuit (3) is 0%; when the output voltage of the singlechip (4) is 5V, the duty ratio of the PWM signal-to-analog voltage circuit (3) is 50 percent; when the output voltage of the singlechip (4) is 0V, the duty ratio of the PWM signal-to-analog voltage circuit (3) is 100 percent.
8. The analog voltage conversion circuit capable of adjusting the input and output voltage range according to claim 1, wherein the single chip microcomputer (1) is provided with a UART port, and the UART port is communicated with the upper computer (4).
9. The analog-to-voltage conversion circuit with adjustable input-output voltage range according to any of claims 1-8, characterized in that the input signal conditioning circuit (2) comprises a voltage follower and an inverting amplifier connected.
10. The analog voltage conversion circuit capable of adjusting the input-output voltage range according to claim 9, wherein the input signal conditioning circuit (2) and the PWM signal conversion analog voltage circuit (3) both use LM324 chip.
CN202110322320.9A 2021-03-25 2021-03-25 Analog voltage conversion circuit capable of adjusting input and output voltage range Pending CN113114209A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110322320.9A CN113114209A (en) 2021-03-25 2021-03-25 Analog voltage conversion circuit capable of adjusting input and output voltage range

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110322320.9A CN113114209A (en) 2021-03-25 2021-03-25 Analog voltage conversion circuit capable of adjusting input and output voltage range

Publications (1)

Publication Number Publication Date
CN113114209A true CN113114209A (en) 2021-07-13

Family

ID=76712325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110322320.9A Pending CN113114209A (en) 2021-03-25 2021-03-25 Analog voltage conversion circuit capable of adjusting input and output voltage range

Country Status (1)

Country Link
CN (1) CN113114209A (en)

Similar Documents

Publication Publication Date Title
CN111277236B (en) Front-end circuit based on gain self-adaptive adjustment and dynamic range improving method
CN109787633A (en) The Σ Δ ADC suitable for mixed type ADC structure with chopped wave stabilizing
CN109639282A (en) A kind of low-power consumption SYN register type successive approximation analog to digital C of single ended input
CN101692603A (en) Gain bootstrap type C class reverser and application circuit thereof
CN110086470A (en) The control method of analog-digital converter and analog-digital converter
CN102045044B (en) Comparator and A/D converter
CN106972860B (en) Successive approximation type analog-to-digital converter and switching method thereof
TWI307213B (en) Reference voltage generating circuit
CN101420611A (en) Video input decoding chip
CN113114209A (en) Analog voltage conversion circuit capable of adjusting input and output voltage range
US8274419B2 (en) Analog-digital converter with pipeline architecture associated with a programmable gain amplifier
CN107181490A (en) Analog to digital conversion circuit
CN204807622U (en) Detection circuitry
CN110518889A (en) A kind of single supply power supply digital resources obtainment amplifying circuit and its control method
Geng et al. A 10-bit 1kS/s-30kS/s successive approximation register analog-to-digital converter for biological signal acquisition
CN112564708B (en) Analog-to-digital conversion circuit
US20110169676A1 (en) Analog-to-digital converter
CN210273983U (en) Single-power-supply digital automatic gain control amplifying circuit
CN210518267U (en) Low-rate level conversion circuit
CN111711452A (en) Active-passive noise shaping successive approximation ADC
Jotschke et al. Flexible multi-channel analog-frontend for ultra-low power environmental sensing
CN101567981B (en) Time-interleaved analog-digital commutator
CN216486100U (en) 0-10V analog output circuit for industrial field
CN201417179Y (en) Low-noise numerical control bias voltage generating circuit for infrared imaging detector
CN217063704U (en) Miniaturized low-power consumption C-R hybrid SAR-ADC circuit

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