16-channel 4-20mA analog quantity output circuit
By using a third-order Butterworth low-pass filter and voltage-current conversion circuit in the 16-channel 4-20mA analog output circuit, the problems of high cost, high complexity and high power consumption are solved, and high efficiency and low cost are achieved. 4-20mA analog output, suitable for high resolution and low power consumption application scenarios.
Patent Information
- Application Number
- CN202420632536.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2034-03-29
AI Technical Summary
The existing 16-channel 4-20mA analog output circuits have problems such as high cost, high complexity, large space occupation and high power consumption, especially in application scenarios where high-precision output and low power consumption are required.
The third-order Butterworth low-pass filter and voltage-current conversion circuit are used to convert the PWM signal generated by the microcontroller into 0-5V DC voltage, and the voltage and current are converted into 4-20mA current output, simplifying the circuit structure and reducing power consumption.
Achieve 4-20mA analog output with high linearity, low ripple and high harmonic rejection, reducing costs, suitable for application scenarios with high resolution requirements and general establishment time requirements, and suitable for space and power consumption Sensitive environment.
Smart Images

Figure CN222053044U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the technical field of analog circuits, and in particular relates to a 16-way multi-channel 4-20mA analog output circuit. Background Art
[0002] In the application field, if the signal is conditioned into a voltage signal and is transmitted over a long line, the following problems will arise: since the transmitted signal is a voltage signal, the transmission line is easily interfered by noise; the distributed resistance of the transmission line will produce a voltage drop, and there is a problem of providing the operating voltage to the instrument amplifier on site.
[0003] In order to solve the above problems and avoid the influence of related noise, 4-20mA current is widely used to transmit signals in industrial sites. The reason for using current signals is that they are not easily interfered with, and the internal resistance of the current source is infinite. The wire resistance is connected in series in the loop without affecting the accuracy, and it can be transmitted for hundreds of meters on ordinary twisted pair cables.
[0004] A typical 16-channel 4-20mA analog output product usually consists of the following components:
[0005] Microcontroller (MCU): used to control the operation of the entire system, including data processing, output control, etc.
[0006] Digital-to-Analog Converter (DAC): A key component that converts digital signals into analog current signals. Multi-channel DACs are usually used, with each channel corresponding to an output signal.
[0007] Power module: provides the stable power required by the system, including power for digital circuits and analog circuits.
[0008] Output port: An interface connected to an external device, usually a terminal block, used to output analog current signals.
[0009] Control interface: used to communicate or control with external systems.
[0010] The working principle of this 16-channel 4-20mA analog output product is: the microcontroller controls the DAC to output the corresponding digital signal through the program, and the DAC converts the digital signal into the corresponding analog current signal and outputs it to each channel, finally forming 16-channel 4-20mA analog output.
[0011] Problems and shortcomings of existing technologies:
[0012] (1) High cost: In the existing technical solutions, the number of DAC channels is large and a higher-precision DAC is required, which is costly. Especially in application scenarios that require high-precision output, the cost pressure is relatively high.
[0013] (2) Complex circuits: Since a large number of analog signal output channels need to be processed, the system structure is relatively complex, maintenance and debugging are difficult, and high requirements are placed on technical personnel.
[0014] (3) Large space occupation: In the existing technical solutions, a large number of electronic components are required to achieve 16-channel output, resulting in a large product size, which is not conducive to application in scenarios with limited space.
[0015] (4) High power consumption: Since the system needs to have many channels working simultaneously, the overall power consumption is high, which has certain limitations for some power-sensitive application scenarios. Utility Model Content
[0016] In view of this, in order to solve the above-mentioned problems existing in the prior art, the purpose of the utility model is to provide a 16-way multi-channel 4-20mA analog output circuit to solve the problem of high cost of using dedicated DAC chips or PAC chips, so as to achieve a cost-effective solution and be adaptable to application scenarios with high resolution requirements and general setup time requirements.
[0017] The technical solution adopted by the utility model is: a 16-way multi-channel 4-20mA analog output circuit, the circuit comprising:
[0018] A third-order low-pass filter, wherein the input end of the third-order low-pass filter is connected to the PWM signal generated by the single-chip microcomputer, and the PWM signal is converted into a 0-5V DC voltage through the third-order low-pass filter;
[0019] A voltage-to-current conversion circuit, wherein the input end of the voltage-to-current conversion circuit is connected to the output end of the third-order low-pass filter, and the voltage-to-current conversion circuit converts a 0-5V DC voltage into a 4-20mA current and outputs it through the output end of the voltage-to-current conversion circuit.
[0020] Furthermore, the third-order low-pass filter adopts a third-order Butterworth low-pass filter.
[0021] Furthermore, the PWM signal generated by the single chip microcomputer includes at least a PWM1 signal and a PWM2 signal which are a group of each other, and the third-order low-pass filter includes:
[0022] A first inverter and a second inverter, wherein input ends of the first inverter and the second inverter are respectively connected to a PWM1 signal and a PWM2 signal generated by a single chip microcomputer;
[0023] A first operational amplifier, wherein the input end of the first operational amplifier is respectively connected to the first inverter and the second inverter, and the output end of the first operational amplifier is two 0-5V DC voltages.
[0024] Furthermore, each of the 0-5V DC voltages is connected to the voltage-to-current conversion circuit respectively.
[0025] Furthermore, the voltage-current conversion circuit comprises:
[0026] A second operational amplifier, wherein a non-inverting input terminal of the second operational amplifier is connected to the 0-5V DC voltage via a first resistor;
[0027] A second resistor, a third resistor and a fourth resistor connected in series from the in-phase input terminal of the second operational amplifier to the inverting input terminal, wherein the connection point between the second resistor and the third resistor is the output terminal of the voltage-current conversion circuit;
[0028] A transistor, wherein the base of the transistor is connected in series to the output end of the second operational amplifier via a fifth resistor, and the emitter of the transistor is connected to the connection point between the third resistor and the fourth resistor.
[0029] The beneficial effects of the utility model are:
[0030] 1. The 16-way multi-channel 4-20mA analog output circuit provided by the utility model is used to generate a PWM signal with a frequency of 10kHz and a variable duty cycle by using the PWM generator inside the single-chip microcomputer. After the signal is sent to a third-order Butterworth low-pass filter, the PWM signal is converted into a 0-5V DC voltage. The voltage filtering is fed back to the second operational amplifier through the sampling resistor. The signal output by the second operational amplifier controls the magnitude of the transistor conduction current, forming a loop to generate 4-20mA current. The conversion circuit of this scheme has high linearity, small ripple, and high harmonic suppression.
[0031] 2. The 16-way multi-channel 4-20mA analog output circuit provided by the utility model has high linearity, small ripple and high harmonic suppression. Compared with dedicated DAC chips or PAC chips, this solution is cost-effective and can be adapted to application scenarios with high resolution requirements and general settling time requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is the overall architecture flow chart of the 16-way multi-channel 4-20mA analog output circuit provided by the utility model;
[0033] Figure 2 It is a circuit diagram of a third-order low-pass filter in a 16-way multi-channel 4-20mA analog output circuit provided by the utility model;
[0034] Figure 3 The utility model discloses a schematic diagram of a voltage-current conversion circuit in a 16-channel multi-channel 4-20mA analog output circuit. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical scheme and advantages of the embodiments of the utility model clearer, the technical scheme in the embodiments of the utility model will be clearly and completely described below in conjunction with the drawings in the embodiments of the utility model. Obviously, the described embodiments are part of the embodiments of the utility model, not all of the embodiments. Generally, the components of the embodiments of the utility model described and shown in the drawings here can be arranged and designed in various different configurations.
[0036] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the present invention to be protected, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present invention can be combined with each other. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0038] In the description of the embodiments of the present utility model, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "setting" and "connection" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present utility model can be understood according to specific circumstances; the drawings in the embodiments are used to clearly and completely describe the technical solutions in the embodiments of the present utility model. Obviously, the described embodiments are part of the embodiments of the present utility model, not all of the embodiments. The components of the embodiments of the present utility model described and shown in the drawings here can be arranged and designed in various different configurations.
[0039] Example 1
[0040] In this embodiment, a 16-way multi-channel 4-20mA analog output circuit is specifically provided, which aims to solve the problems of high DAC cost, complex system structure, difficult maintenance and debugging, large product size caused by a large number of electronic components, and high system power consumption in the prior art. The 16-way multi-channel 4-20mA analog output circuit designed in this embodiment can meet more low-power consumption scenarios.
[0041] like Figure 1As shown, the 16-way multi-channel 4-20mA analog output circuit includes two parts: a third-order low-pass filter and a voltage-current conversion circuit. The specific design is as follows:
[0042] The third-order low-pass filter adopts a third-order Butterworth low-pass filter. The input end of the third-order low-pass filter is connected to the PWM signal generated by the single-chip microcomputer, and the PWM signal is converted into a 0-5V DC voltage through the third-order low-pass filter; the 12-bit resolution PWM generator inside the STM32 single-chip microcomputer is used to generate 16 PWM signals with a frequency of 10kHz and a variable duty cycle. The 16 PWM signals are PWM1 signal, PWM2 signal...PWM16 signal, and the 16 PWM signals are divided into 8 groups. The same group of PWM signals (such as: PWM1 signal and PWM2 signal) share the same third-order Butterworth low-pass filter.
[0043] Based on the above, the STM32 microcontroller generates 16 PWM signals. In this embodiment, one group of PWM signals (PWM1 signal + PWM2 signal) is used for explanation, and the other 8 groups of circuit principles are the same, such as Figure 2 As shown, the third-order Butterworth low-pass filter includes: a first inverter U10, a second inverter U14 and a first operational amplifier U12. The first inverter U10 and the second inverter U14 both use SN74LVC1G14 chips. The input ends (A ports) of the first inverter U10 and the second inverter U14 are respectively connected to a PWM1 signal and another PWM2 signal generated by the single-chip microcomputer.
[0044] The first operational amplifier U12 uses an operational amplifier model MCP6002T. The Y port of the first inverter U10 is connected to the +INA port of the first operational amplifier U12 via resistors R4, R5, and R6. At the same time, the output end of resistor R5 is connected to the -INA port of the first operational amplifier U12 via capacitor C10. Similarly, the Y port of the second inverter U14 is connected to the +INB port of the first operational amplifier U12 via resistors R16, R17, and R18. At the same time, the output end of resistor R17 is connected to the -INB port of the first operational amplifier U12 via capacitor C20. The OUTA port and OUTB port of the first operational amplifier U12 output two 0-5V DC voltages respectively.
[0045] like Figure 3 As shown, the design of one of the voltage-to-current conversion circuits is as follows:
[0046] The input end of the voltage-current conversion circuit is connected to the output end of the third-order low-pass filter, and the two 0-5V DC voltages are respectively connected to a voltage-current conversion circuit, and the voltage-current conversion circuit converts the 0-5V DC voltage into a 4-20mA current, and outputs the 4-20mA current through the output end of the voltage-current conversion circuit. To achieve the conversion and generate 4-20mA current, the voltage-current conversion circuit includes: a second operational amplifier U1, a first resistor R7, a second resistor R55, a third resistor R45, a fourth resistor R31 and a fifth resistor R11, the second operational amplifier adopts a model LM321, the in-phase input end of the second operational amplifier is connected to the 0-5V DC voltage through the first resistor, and the first resistor is connected in parallel with a sixth resistor R21 and a first capacitor C24, and the other ends of the sixth resistor and the first capacitor are grounded.
[0047] The second resistor, the third resistor and the fourth resistor are connected in series in sequence by the non-inverting input terminal of the second operational amplifier, and the other end of the fourth resistor is connected to the reverse input terminal of the second operational amplifier, wherein the connection point between the second resistor R55 and the third resistor R45 is the output terminal of the voltage-current conversion circuit, and the output terminal generates a 4-20mA current.
[0048] The base of the transistor Q1 is connected in series to the output end of the second operational amplifier U1 via the fifth resistor R11, the emitter of the transistor is connected to the connection point between the third resistor and the fourth resistor, and the collector of the transistor is connected to a 12V power supply. When working, the 0-5V DC voltage output by the third-order low-pass filter is fed back to the second operational amplifier via the sampling resistor (resistor R7), and the signal output by the second operational amplifier controls the magnitude of the transistor conduction current and forms a loop to generate a 4-20mA current.
[0049] Based on the capacitor designed in this embodiment, a Butterworth low-pass filter is used to form a PWM to DAC design. The voltage filter is fed back to the second operational amplifier U1 through a sampling resistor (resistor R7). The signal output by the second operational amplifier U1 controls the magnitude of the conduction current of the transistor Q1, forming a loop to generate a 4-20mA current, thereby solving the high cost problem of using a dedicated DAC chip or PAC chip, and can be adapted to application scenarios with high resolution requirements and general settling time requirements.
[0050] The present utility model is not limited to the above-mentioned optional implementation modes. Anyone can derive other various forms of products under the inspiration of the present utility model. However, no matter what changes are made in the shape or structure, all technical solutions that fall within the scope defined by the claims of the present utility model fall within the protection scope of the present utility model.
Claims
1. A 16-way multi-channel 4-20mA analog output circuit, characterized in that: The circuit includes: A third-order low-pass filter, wherein the input end of the third-order low-pass filter is connected to the PWM signal generated by the single-chip microcomputer, and the PWM signal is converted into a 0-5V DC voltage through the third-order low-pass filter; A voltage-to-current conversion circuit, wherein the input end of the voltage-to-current conversion circuit is connected to the output end of the third-order low-pass filter, and the voltage-to-current conversion circuit converts a 0-5V DC voltage into a 4-20mA current and outputs it through the output end of the voltage-to-current conversion circuit.
2. The 16-way multi-channel 4-20mA analog output circuit according to claim 1, characterized in that: The third-order low-pass filter is a third-order Butterworth low-pass filter.
3. The 16-way multi-channel 4-20mA analog output circuit according to claim 1, characterized in that: The PWM signal generated by the single chip microcomputer includes at least a PWM1 signal and a PWM2 signal which are a group of each other, and the third-order low-pass filter includes: A first inverter and a second inverter, wherein input ends of the first inverter and the second inverter are respectively connected to a PWM1 signal and a PWM2 signal generated by a single chip microcomputer; A first operational amplifier, wherein the input end of the first operational amplifier is respectively connected to the first inverter and the second inverter, and the output end of the first operational amplifier is two 0-5V DC voltages.
4. The 16-way multi-channel 4-20mA analog output circuit according to claim 3, characterized in that: Each of the 0-5V DC voltages is connected to the voltage-to-current conversion circuit respectively.
5. The 16-way multi-channel 4-20mA analog output circuit according to claim 1, characterized in that: The voltage-current conversion circuit comprises: A second operational amplifier, wherein a non-inverting input terminal of the second operational amplifier is connected to the 0-5V DC voltage via a first resistor; A second resistor, a third resistor and a fourth resistor are connected in series from the in-phase input terminal of the second operational amplifier to the inverting input terminal, and the connection point between the second resistor and the third resistor is the voltage-current conversion circuit. Output terminal; A transistor, wherein the base of the transistor is connected in series to the output end of the second operational amplifier via a fifth resistor, and the emitter of the transistor is connected to the connection point between the third resistor and the fourth resistor.
