Voltage and current signal acquisition circuit and fault diagnosis method thereof

By designing voltage and current signal acquisition circuits and fault diagnosis methods, the problem of single function and low reliability of signal acquisition circuits in the existing technology is solved, more reliable signal acquisition and fault detection are achieved, and the stability of the system is ensured.

CN118549700APending Publication Date: 2024-08-27JIANGSU ADVANCED CONSTR MASCH INNOVATION CENT LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410780613.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The existing signal acquisition circuit has a single function and low reliability. Changes in component parameters cause the output signal to drift, making it difficult to effectively diagnose faults.

Method used

A voltage and current signal acquisition circuit is designed, using two acquisition units and a switching enable unit, supporting voltage and current signal acquisition modes, and improving signal quality through EMC filter circuits and signal conditioning circuits, combined with a reference source detection circuit. Troubleshooting.

Benefits of technology

It improves the reliability and diversity of signal collection, enables periodic fault diagnosis, and ensures stable operation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118549700A
    Figure CN118549700A
Patent Text Reader

Abstract

The invention discloses a voltage and current signal acquisition circuit and a fault diagnosis method thereof, the circuit comprises a processing terminal and two acquisition units, the input end and the output end of each acquisition unit are respectively connected to a signal source to be acquired and the processing terminal, and the two acquisition units at least comprise a same voltage acquisition enabling unit; any acquisition unit comprises a current acquisition enabling unit, and the current acquisition enabling unit is used for switching a current signal acquisition mode; the method comprises the following steps: disconnecting a signal source to be acquired, and accessing a reference source VREF; acquiring voltage signals output by the two acquisition units, calculating absolute values of difference values between the voltage signals and a reference source VREF, and recording the absolute values as a first voltage difference value and a second voltage difference value; if the first voltage difference value and / or the second voltage difference value are / is greater than a preset detection difference value threshold value, the acquisition unit corresponding to the first voltage difference value and / or the second voltage difference value has a fault; the method has high flexibility and reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric signal acquisition, and in particular to a voltage and current signal acquisition circuit and a fault diagnosis method thereof. Background Art

[0002] The existing signal acquisition circuit usually inputs a sensor, filtering circuit, and conditioning circuit into the ADC of the MCU for processing. The function is relatively simple. At the same time, in actual use, any changes in component parameters, such as fluctuations in power supply voltage, aging of components, changes in semiconductor component parameters with temperature, etc., will cause output signal drift, and the reliability is not high. Summary of the invention

[0003] The purpose of the present invention is to overcome the deficiencies in the prior art, to provide a voltage and current signal acquisition circuit and a fault diagnosis method thereof, and to solve the technical problems of the existing signal acquisition circuit having a single function and low reliability.

[0004] To achieve the above object, the present invention is implemented by adopting the following technical solutions: In the first aspect, the present invention provides a voltage and current signal acquisition circuit, comprising a processing terminal and two acquisition units, wherein the input and output ends of the acquisition units are respectively connected to a signal source to be acquired and the processing terminal, and the two acquisition units include at least one identical voltage acquisition enabling unit, which is used to switch the voltage signal acquisition mode; any of the acquisition units includes a current acquisition enabling unit, which is used to switch the current signal acquisition mode.

[0005] Optionally, a filter circuit is further provided at the input end of the acquisition unit; the filter circuit is an EMC filter circuit, including a transient voltage suppressor D1 and a capacitor C1, one end of the transient voltage suppressor D1 and the capacitor C1 are both grounded, and the other ends are connected to the input end of the acquisition unit.

[0006] Optionally, a signal conditioning circuit is also provided at the output end of the acquisition unit; the signal conditioning circuit includes a resistor R3, a capacitor C2, an operational amplifier U1A, a resistor R4 and a capacitor C3; the resistor R3 and the capacitor C2 form an RC filter circuit, which is connected to the positive input end of the operational amplifier U1A, the resistor R4 and the capacitor C3 form an RC filter circuit, which is connected to the output end of the operational amplifier U1A, and the negative input end of the operational amplifier U1A is also connected to its output end.

[0007] Optionally, the acquisition units are respectively recorded as a first acquisition unit and a second acquisition unit, the first acquisition unit includes a resistor R2 and a resistor R5, the second acquisition unit includes a resistor R8 and a resistor R11, one end of the resistor R2 and the resistor R8 are connected to the processing terminal, the other end of the resistor R2 is grounded via the resistor R5 and the resistor R11, and the other end of the resistor R8 is connected to the common end of the resistor R5 and the resistor R11.

[0008] Optionally, the voltage switching enabling unit includes a resistor R6 and a MOS tube Q3; the gate of the MOS tube Q3 is connected to an enabling signal V_EN; the drain of the MOS tube Q3 is connected to between the resistor R2 and the processing terminal via the resistor R6; and the source of the MOS tube Q3 is grounded.

[0009] Optionally, the current switching enabling unit includes a resistor R15, a resistor R16, a MOS tube Q5 and a resistor R14; the resistor R15 and the resistor R16 are connected in series between the gate and the source of the MOS tube Q5, and the common end of the resistor R15 and the resistor R16 is connected to the enable signal mA_EN; the resistor R11 is grounded via the resistor R14, the source and the drain of the MOS tube Q5 are respectively connected to the two ends of the resistor R14, and the source of the MOS tube Q5 is grounded.

[0010] Optionally, the processing terminal adopts a single-chip microcomputer chip.

[0011] Optionally, the signal acquisition circuit also includes a reference source detection circuit, which includes a reference source VREF and a MOS tube Q7, wherein the gate of the MOS tube Q7 is connected to an enable signal CHECK_EN; the source and drain of the MOS tube Q7 are respectively connected to the reference source VREF and the input end of the acquisition unit.

[0012] In a second aspect, the present invention provides a fault diagnosis method for a signal acquisition circuit. Based on the above-mentioned voltage and current signal acquisition circuit, the fault diagnosis method comprises: Disconnect the signal source to be collected, set the enable signal CHECK_EN to a high level, and connect the reference source VREF; Obtaining the voltage signals output by the two acquisition units, and calculating the absolute value of the difference between the voltage signal and the reference source VREF, which are recorded as the first voltage difference and the second voltage difference; If the first voltage difference and / or the second voltage difference is greater than a preset detection difference threshold, then a collection unit corresponding to the first voltage difference and / or the second voltage difference is faulty.

[0013] Optionally, the fault diagnosis method is started periodically.

[0014] Compared with the prior art, the present invention has the following beneficial effects: The present invention provides a voltage and current signal acquisition circuit and a fault diagnosis method thereof. 1) The signal acquisition circuit switches the voltage / current signal acquisition mode through a voltage / current acquisition enabling unit to support more acquisition input signals; two acquisition units are used at the same time, and signal acquisition is more reliable through a dual redundant signal acquisition circuit; 2) The fault diagnosis method can periodically perform fault diagnosis on the signal acquisition circuit to ensure the reliability of system operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 is a circuit schematic diagram of a voltage and current signal acquisition circuit provided by an embodiment of the present invention; Figure 2 is a structural block diagram of a voltage and current signal acquisition circuit provided by an embodiment of the present invention; Figure 3 It is a flow chart of a fault diagnosis method of a signal acquisition circuit provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0016] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0017] Embodiment 1:

[0018] like Figure 1 and Figure 2 As shown, an embodiment of the present invention provides a voltage and current signal acquisition circuit, including a processing terminal and two acquisition units, the input end and the output end of the acquisition unit are respectively connected to the signal source to be acquired and the processing terminal, the two acquisition units include at least one identical voltage acquisition enabling unit, and the voltage acquisition enabling unit is used to switch the voltage signal acquisition mode; any acquisition unit includes a current acquisition enabling unit, and the current acquisition enabling unit is used to switch the current signal acquisition mode.

[0019] In order to suppress electromagnetic interference and ensure the electromagnetic compatibility of the equipment, a filtering circuit is also provided at the input end of the acquisition unit; the filtering circuit is an EMC filtering circuit, including a transient voltage suppression tube D1 and a capacitor C1, one end of the transient voltage suppression tube D1 and the capacitor C1 are both grounded, and the other ends are connected to the input end of the acquisition unit.

[0020] In order to filter out signal interference on the link, a signal conditioning circuit is also provided at the output end of the acquisition unit; the signal conditioning circuit connected to one acquisition unit includes resistor R3, capacitor C2, operational amplifier U1A, resistor R4 and capacitor C3; resistor R3 and capacitor C2 form an RC filter circuit, which is connected to the positive input end of the operational amplifier U1A, resistor R4 and capacitor C3 form an RC filter circuit, which is connected to the output end of the operational amplifier U1A, and the negative input end of the operational amplifier U1A is also connected to its output end. The signal conditioning circuit connected to another acquisition unit includes resistor R9, capacitor C4, operational amplifier U1B, resistor R10 and capacitor C5, and the connection method is the same as the above signal conditioning circuit.

[0021] The acquisition units are respectively recorded as a first acquisition unit and a second acquisition unit. The first acquisition unit includes a resistor R2 and a resistor R5, and the second acquisition unit includes a resistor R8 and a resistor R11. One end of the resistor R2 and the resistor R8 is connected to the processing terminal, the other end of the resistor R2 is grounded via the resistor R5 and the resistor R11, and the other end of the resistor R8 is connected to the common end of the resistor R5 and the resistor R11.

[0022] Specifically in this embodiment, the voltage switching enabling unit is set to 10V and 32V, and the current switching enabling unit is set to 20mA.

[0023] The 10V voltage switching enabling unit of the first acquisition unit includes a resistor R6 and a MOS tube Q3; the gate of the MOS tube Q3 is connected to the enabling signal 10V_EN; the drain of the MOS tube Q3 is connected to the resistor R2 and the processing terminal through the resistor R6; the source of the MOS tube Q3 is grounded. The 32V voltage switching enabling unit includes a resistor R7 and a MOS tube Q2; the gate of the MOS tube Q2 is connected to the enabling signal 32V_EN; the drain of the MOS tube Q2 is connected to the resistor R2 and the processing terminal through the resistor R7; the source of the MOS tube Q2 is grounded.

[0024] The 10V voltage switching enabling unit of the second acquisition unit includes a resistor R12 and a MOS tube Q6; the gate of the MOS tube Q6 is connected to the enabling signal 10V_EN; the drain of the MOS tube Q6 is connected to the resistor R8 and the processing terminal via the resistor R12; the source of the MOS tube Q6 is grounded. The 32V voltage switching enabling unit includes a resistor R13 and a MOS tube Q4; the gate of the MOS tube Q4 is connected to the enabling signal 32V_EN; the drain of the MOS tube Q4 is connected to the resistor R8 and the processing terminal via the resistor R13; the source of the MOS tube Q4 is grounded.

[0025] The current switching enabling unit includes a resistor R15, a resistor R16, a MOS tube Q5 and a resistor R14; the resistor R15 and the resistor R16 are connected in series between the gate and the source of the MOS tube Q5, and the common end of the resistor R15 and the resistor R16 is connected to the enabling signal 20mA_EN; the resistor R11 is grounded via the resistor R14, the source and the drain of the MOS tube Q5 are respectively connected to the two ends of the resistor R14, and the source of the MOS tube Q5 is grounded.

[0026] In order to realize the fault diagnosis function, the signal acquisition circuit also includes a reference source detection circuit, which includes a reference source VREF and a MOS tube Q7, wherein the gate of the MOS tube Q7 is connected to the enable signal CHECK_EN; the source and drain of the MOS tube Q7 are respectively connected to the reference source VREF and the input end of the acquisition unit.

[0027] The processing terminal adopts a single-chip microcomputer chip, and the enable signals CHECK_EN, 10V_EN, 32V_EN and 20mA_EN can all be sent out through the single-chip microcomputer chip.

[0028] The working principle of a voltage and current signal acquisition circuit provided in this embodiment is as follows: When collecting 0-5V voltage signals, the MCU control signals 10V_EN, 32V_EN, and 20mA_EN are at low level, and MOS tubes Q2, Q3, Q4, Q5, and Q6 are turned off. The input signal Vin is transmitted to the ADC1 pin of the MCU through resistor R2 and signal conditioning circuit 1, and its Vadc1=Vin. The other way is transmitted to the ADC2 pin of the MCU through resistor R5, resistor R8, and signal conditioning circuit 2, and its Vadc2=Vin.

[0029] When collecting 0-10V voltage signals, the MCU control signal 10V_EN pin is high, 32V_EN and 20mA_EN are low, MOS tubes Q2, Q4, and Q5 are turned off, and MOS tubes Q3 and Q6 are turned on. The input signal Vin is divided by resistors R2 and R6, and then connected to ADC1 of the MCU through signal conditioning circuit 1, and its Vadc1= Vin*R6 / (R2+R6). The other way is divided by resistors R5, R8, and R12, and then input to the ADC pin of the MCU through signal conditioning circuit 2, and its Vadc2= Vin*R12 / (R5+R8+R12).

[0030] When collecting 0-32V voltage signals, the MCU control signal 32V_EN pin is high, 10V_EN and 20mA_EN are low, MOS tubes Q3, Q5, and Q6 are turned off, and MOS tubes Q2 and Q4 are turned on. The input signal Vin is divided by resistors R2 and R7, and then connected to ADC1 of the MCU through signal conditioning circuit 1, and its Vadc1= Vin*R6 / (R2+R7). The other way is divided by resistors R5, R8, and R13, and then input to the ADC pin of the MCU through signal conditioning circuit 2, and its Vadc2= Vin*R13 / (R5+R8+R13).

[0031] When collecting 4-20mA current signal, the microcontroller MCU control signal 20mA_EN is high, 10V_EN and 32V_EN are low, MOS tube Q5 is turned on, MOS tubes Q2, Q3, Q4, and Q6 are turned off, and the input signal 4-20mA is sampled by R5 and R11. The current signal is converted into a voltage signal, one way is connected to the microcontroller through R2 and signal conditioning circuit 1, and its Vadc1=(4-20mA)*(R5+R11), and the other way is connected to the microcontroller through resistor R8 and signal conditioning circuit 2, and its Vadc2=(4-20mA)*R11.

[0032] Embodiment 2:

[0033] like Figure 3 As shown, an embodiment of the present invention provides a fault diagnosis method for a signal acquisition circuit. Based on the voltage and current signal acquisition circuit provided in the above embodiment 1, the fault diagnosis method includes: Periodically perform the following steps: Step S1, disconnect the signal source to be collected, set the enable signal CHECK_EN to a high level, and connect the reference source VREF; Step S2, obtaining the voltage signals output by the two acquisition units, and calculating the absolute value of the difference between the voltage signal and the reference source VREF, which is recorded as the first voltage difference and the second voltage difference; Step S3: If the first voltage difference and / or the second voltage difference is greater than a preset detection difference threshold, then a collection unit corresponding to the first voltage difference and / or the second voltage difference is faulty.

[0034] If only one of the two acquisition units is faulty, the acquisition result of the acquisition unit without fault is used.

[0035] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0036] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0037] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0038] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0039] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A voltage and current signal acquisition circuit, characterized in that: It includes a processing terminal and two acquisition units, the input end and the output end of the acquisition unit are respectively connected to the signal source to be acquired and the processing terminal, the two acquisition units include at least one identical voltage acquisition enabling unit, and the voltage acquisition enabling unit is used to switch the voltage signal acquisition mode; any of the acquisition units includes a current acquisition enabling unit, and the current acquisition enabling unit is used to switch the current signal acquisition mode.

2. The voltage and current signal acquisition circuit according to claim 1, characterized in that: The input end of the acquisition unit is also provided with a filter circuit; the filter circuit is an EMC filter circuit, including a transient voltage suppressor D1 and a capacitor C1, one end of the transient voltage suppressor D1 and the capacitor C1 are both grounded, and the other ends are connected to the input end of the acquisition unit.

3. The voltage and current signal acquisition circuit according to claim 1, characterized in that: The output end of the acquisition unit is also provided with a signal conditioning circuit; the signal conditioning circuit includes a resistor R3, a capacitor C2, an operational amplifier U1A, a resistor R4 and a capacitor C3; the resistor R3 and the capacitor C2 form an RC filter circuit, which is connected to the positive input end of the operational amplifier U1A, the resistor R4 and the capacitor C3 form an RC filter circuit, which is connected to the output end of the operational amplifier U1A, and the negative input end of the operational amplifier U1A is also connected to its output end.

4. The voltage and current signal acquisition circuit according to claim 1, characterized in that: The acquisition units are respectively recorded as a first acquisition unit and a second acquisition unit, the first acquisition unit includes a resistor R2 and a resistor R5, the second acquisition unit includes a resistor R8 and a resistor R11, one end of the resistor R2 and the resistor R8 are connected to the processing terminal, the other end of the resistor R2 is grounded via the resistor R5 and the resistor R11, and the other end of the resistor R8 is connected to the common end of the resistor R5 and the resistor R11.

5. The voltage and current signal acquisition circuit according to claim 4, characterized in that: The voltage switching enabling unit includes a resistor R6 and a MOS tube Q3; the gate of the MOS tube Q3 is connected to an enabling signal V_EN; the drain of the MOS tube Q3 is connected between the resistor R2 and the processing terminal via the resistor R6; and the source of the MOS tube Q3 is grounded.

6. The voltage and current signal acquisition circuit according to claim 4, characterized in that: The current switching enabling unit includes a resistor R15, a resistor R16, a MOS tube Q5 and a resistor R14; the resistor R15 and the resistor R16 are connected in series between the gate and the source of the MOS tube Q5, and a common end of the resistor R15 and the resistor R16 is connected to an enabling signal mA_EN; the resistor R11 is grounded via the resistor R14, the source and the drain of the MOS tube Q5 are respectively connected to two ends of the resistor R14, and the source of the MOS tube Q5 is grounded.

7. The voltage and current signal acquisition circuit according to claim 1, characterized in that: The processing terminal adopts a single-chip microcomputer chip.

8. The voltage and current signal acquisition circuit according to claim 1, characterized in that: The signal acquisition circuit also includes a reference source detection circuit, which includes a reference source VREF and a MOS tube Q7, wherein the gate of the MOS tube Q7 is connected to an enable signal CHECK_EN; the source and drain of the MOS tube Q7 are respectively connected to the reference source VREF and the input end of the acquisition unit.

9. A fault diagnosis method for a signal acquisition circuit, characterized in that: Based on the voltage and current signal acquisition circuit of claim 8, the fault diagnosis method comprises: Disconnect the signal source to be collected, set the enable signal CHECK_EN to a high level, and connect the reference source VREF; Obtaining the voltage signals output by the two acquisition units, and calculating the absolute value of the difference between the voltage signal and the reference source VREF, which are recorded as the first voltage difference and the second voltage difference; If the first voltage difference and / or the second voltage difference is greater than a preset detection difference threshold, then a collection unit corresponding to the first voltage difference and / or the second voltage difference is faulty.

10. The fault diagnosis method of the signal acquisition circuit according to claim 9, characterized in that: The fault diagnosis method is started periodically.