Multipath sensor diagnosis circuit
By designing a multi-channel sensor diagnostic circuit and using fault diagnosis and fault location circuits for extreme signal comparison and fault location, the problem of resource waste at the MCU input port and high hardware cost is solved, and resource saving and cost reduction are achieved.
Patent Information
- Application Number
- CN202323415542.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2033-12-14
AI Technical Summary
Existing multi-channel sensor diagnostic circuits occupy a large amount of MCU input port resources and increase hardware costs, resulting in resource waste and high costs.
A multi-channel sensor diagnostic circuit is designed, including a fault diagnosis circuit and a fault location circuit. By comparing the extreme voltage signal with the voltage signal threshold, the level signal is output to the micro control unit, and the micro control unit is used to control the fault location circuit to connect the sensors one by one. Perform fault location and reduce the dependence on the MCU input port and the number of comparators.
It saves MCU input port resources, reduces hardware costs, avoids the problem of frequent fault diagnosis and location when there is no fault, and improves diagnosis efficiency and cost-effectiveness.
Smart Images

Figure CN221859616U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of sensor diagnosis, in particular to a multi-channel sensor diagnosis circuit. Background Art
[0002] In industrial production, various data are often collected, stored and transmitted through data collectors, which requires the application of multi-channel sensors. Multiple sensors output the collected data to the collection equipment in the form of analog signals or digital signals, and have the characteristics of strong data processing capabilities. Therefore, it is necessary to monitor the status of the multi-channel sensors. When short circuits, open circuits and other faults are diagnosed in the multi-channel sensors, timely alarms are required for maintenance to keep the multi-channel sensors in a normal state at all times.
[0003] In the related art, in the circuit for fault monitoring and diagnosis of multiple sensors, generally one sensor is connected to one comparator, and the signal of each sensor channel is processed by the corresponding comparator. If a sensor signal is higher or lower than the set threshold, the corresponding comparator outputs a corresponding signal to the MCU (Micro Control Unit). After processing, the MCU outputs an alarm signal to complete the diagnosis of the multiple sensors. However, the above circuit not only occupies a large amount of MCU input port resources, but also increases a lot of hardware costs. Utility Model Content
[0004] In view of the above-mentioned shortcomings of the prior art, the utility model provides a multi-channel sensor diagnostic circuit to solve the technical problems in the prior art that the multi-channel sensor diagnostic circuit needs to occupy a large number of MCU input port resources and requires a large amount of hardware cost.
[0005] The utility model provides a multi-channel sensor diagnosis circuit, the circuit comprises a fault diagnosis circuit, a fault location circuit and a micro control unit; the fault diagnosis circuit is connected to each channel of sensors and the micro control unit, and is used to compare the extreme voltage signal in each channel of the sensors with the voltage signal threshold, and output a first level signal to the micro control unit; the micro control unit is connected to the fault location circuit, and is used to input a control signal to the fault location unit according to the address signal corresponding to each channel of the sensors when the first level signal is high; the fault location circuit is used to connect to each channel of the sensors in sequence according to the control signal, compare the first voltage signal corresponding to each channel of the sensors with the voltage signal threshold respectively, and input a second level signal to the micro control unit; the micro control unit is also used to determine the fault sensor according to each of the second level signals.
[0006] In one embodiment of the utility model, the fault diagnosis circuit includes an extreme value circuit and a first comparator unit; the extreme value circuit has an input end connected to each sensor and an output end connected to the input end of the first comparator unit, and is used to collect the extreme value voltage signals in each sensor and input them into the first comparator unit; the first comparator unit has an output end connected to the first input end of the micro control unit, and is used to compare the extreme value voltage signal with a voltage signal threshold, and output the first level signal to the micro control unit according to the comparison result.
[0007] In one embodiment of the utility model, the fault location circuit includes a channel multiplexer and a second comparator unit; the channel multiplexer has a first input end connected to each of the sensors, a second input end connected to the first output end of the micro control unit, and an output end connected to the input end of the second comparator unit, and is used to sequentially collect the first voltage signals of the sensors of each channel according to each of the control signals and input them into the second comparator unit; the second comparator unit has an output end connected to the second input end of the micro control unit, and is used to compare each of the first voltage signals with the voltage signal threshold, determine the second level signal of each of the sensors, and input it into the micro control unit.
[0008] In one embodiment of the present utility model, the extreme value circuit includes a maximum value detection circuit and a minimum value detection circuit, the first comparator unit includes a first comparator and a second comparator, the maximum value detection circuit and the first comparator cooperate to perform open circuit diagnosis on the multi-channel sensor, and the minimum value detection circuit and the second comparator cooperate to perform short circuit diagnosis on the multi-channel sensor.
[0009] In one embodiment of the utility model, the maximum value detection circuit includes multiple first resistors, multiple first diodes, a first amplifier and a first voltage divider circuit, wherein the first amplifier is a voltage follower; the multiple first diodes, the input ends are respectively connected to one of the sensors through one of the first resistors, for collecting the maximum voltage signal in each of the sensors; the first amplifier, the positive input end is connected to the multiple first diodes, and the output end is connected to the positive input end of the first comparator, for inputting the maximum voltage signal into the first comparator; the first voltage divider circuit, the output end is connected to the negative input end of the first comparator, for inputting the maximum voltage threshold into the first comparator, so that the first comparator outputs a third level signal according to the maximum voltage signal and the maximum voltage threshold.
[0010] In an embodiment of the present invention, the micro control unit includes a first diagnosis subunit, which is used to diagnose the fault sensor as being open circuit when it is determined that the first level signal is the third level signal.
[0011] In an embodiment of the present invention, the first voltage divider circuit includes a second resistor and a third resistor, the second resistor and the third resistor are connected in series, the second resistor is connected to a power source, and the third resistor is grounded.
[0012] In one embodiment of the utility model, the minimum value detection circuit includes multiple second amplifiers, multiple second diodes and a second voltage divider circuit, wherein the second amplifier is a voltage follower and the second diode is a clamping diode; the multiple second amplifiers, the positive input end is connected to one of the sensors, and the output end is connected to the input end of one of the second diodes, for inputting the second voltage signals in each of the sensors into the second diode; the multiple second diodes are connected to the negative input end of the second comparator, for inputting the minimum voltage signal in the second voltage signals into the second comparator; the second voltage divider circuit, the output end is connected to the positive input end of the second comparator, for inputting the minimum voltage threshold into the second comparator, so that the second comparator outputs a fourth level signal according to the minimum voltage signal and the minimum voltage threshold.
[0013] In an embodiment of the present invention, the micro control unit further includes a second diagnosis subunit, which is used to diagnose the fault sensor as being short-circuited when it is determined that the first level signal is the fourth level signal.
[0014] In an embodiment of the present invention, the second voltage divider circuit includes a fourth resistor and a fifth resistor, the fourth resistor and the fifth resistor are connected in series, the fourth resistor is connected to a power source, and the fifth resistor is grounded.
[0015] Beneficial effects of the utility model:
[0016] The multi-channel sensor diagnosis circuit includes a fault diagnosis circuit, a fault location circuit and a micro control unit; the fault diagnosis circuit connects each channel of sensors and the micro control unit, compares the extreme voltage signal in each channel of sensors with the voltage signal threshold, and outputs a first level signal to the micro control unit; the micro control unit is connected to the fault location circuit, and when the first level signal is high, inputs a control signal to the fault location unit according to the address signal corresponding to each channel of sensors; the fault location circuit sequentially connects each channel of sensors according to the control signal, compares the first voltage signal corresponding to each channel of sensors with the voltage signal threshold, and inputs a second level signal to the micro control unit; the micro control unit determines the fault sensor according to each second level signal. In this circuit, the MCU no longer sets a large number of input ports to connect with the comparators corresponding to each channel of sensors, but directly connects the fault diagnosis circuit and the fault location circuit, which saves MCU input port resources, and also correspondingly reduces the number of comparators, reduces hardware costs, and in addition, first performs fault diagnosis, and then polls each channel of sensors for fault location when a fault occurs in the multi-channel sensors, avoiding the problem that the circuit is always performing fault diagnosis and location on each channel of sensors when there is no fault in the multi-channel sensors.
[0017] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present utility model, and together with the specification, are used to explain the principles of the present utility model. Obviously, the drawings described below are only some embodiments of the present utility model, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0019] Figure 1 It is a schematic diagram of a multi-channel sensor diagnostic circuit in the prior art;
[0020] Figure 2 It is a schematic diagram of a multi-channel sensor diagnostic circuit shown in an exemplary embodiment of the utility model;
[0021] Figure 3 is a schematic diagram of another multi-channel sensor diagnostic circuit shown in an exemplary embodiment of the utility model;
[0022] Figure 4 is a schematic diagram of a maximum value detection circuit shown in an exemplary embodiment of the present utility model;
[0023] Figure 5 is a schematic diagram of a minimum value detection circuit shown in an exemplary embodiment of the present utility model;
[0024] Figure 6 It is a structural schematic diagram of a micro control unit shown in an exemplary embodiment of the present utility model. DETAILED DESCRIPTION
[0025] The following will describe the implementation of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific implementations, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0026] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0027] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0028] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of a multi-channel sensor diagnostic circuit in the prior art. Figure 1 As shown, the circuit includes multiple sensors (1, 2, 3...n), multiple comparators (1, 2, 3...n) and MCU, wherein each sensor is connected to a comparator, all comparators are connected to MCU, and the voltage signal of each sensor channel is processed by the comparator. When the voltage signal is higher or lower than the set threshold, each comparator outputs a corresponding signal to the MCU, and the MCU outputs an alarm signal after processing. However, the utility model of the present application has found that in the diagnostic circuit, the MCU is connected to a large number of comparators, which occupies a large number of MCU input port resources, and each sensor is connected to a comparator, which increases a lot of hardware costs.
[0029] Therefore, the utility model proposes a multi-channel sensor diagnosis circuit to solve the technical problems in the prior art that the multi-channel sensor diagnosis circuit needs to occupy a large number of MCU input port resources and needs to spend a lot of hardware costs.
[0030] See also Figure 2 , Figure 2 FIG. 1 is a schematic diagram of a multi-channel sensor diagnostic circuit according to an exemplary embodiment of the present invention. Figure 2 As shown, the circuit at least includes a fault diagnosis circuit 210, a fault location circuit 220 and a micro control unit 230, which are described in detail as follows:
[0031] The fault diagnosis circuit 210 is connected to each sensor (1, 2, 3...n) and a micro control unit (MCU) 230, and is used to compare the extreme voltage signal in each sensor (1, 2, 3...n) with the voltage signal threshold, and output a first level signal to the micro control unit (MCU) 230.
[0032] It should be noted that the extreme voltage signal includes a maximum voltage signal and a minimum voltage signal, and the voltage signal threshold includes a maximum voltage threshold and a minimum voltage threshold, which corresponds to comparing the maximum voltage signal with the maximum voltage threshold and comparing the minimum voltage signal with the minimum voltage threshold. The maximum voltage threshold and the minimum voltage threshold can be preset based on experience and are used to determine whether the maximum voltage signal and the minimum voltage signal meet the required thresholds.
[0033] In addition, the first level signal includes a high level signal and a low level signal. In an embodiment of the present application, when the maximum voltage signal is less than the maximum voltage threshold, a low level signal is output; when the maximum voltage signal is greater than the maximum voltage threshold, a high level signal is output; similarly, when the minimum voltage signal is greater than the minimum voltage threshold, a low level signal is output; and when the minimum voltage signal is less than the minimum voltage threshold, a high level signal is output.
[0034] The micro control unit (MCU) 230 is connected to the fault location circuit 220 and is used to input a control signal to the fault location unit 230 according to the address signal corresponding to each sensor when the first level signal is at a high level.
[0035] In the embodiment of the present application, when MCU230 receives a high-level signal, it indicates that a fault has occurred in multiple sensors (1, 2, 3...n), and it is further necessary to determine the source of the fault. Therefore, it is necessary to control the positioning unit 230 to check each sensor (1, 2, 3...n) one by one. Specifically, MCU230 sends a control signal to the fault positioning unit 230 to control the positioning unit 230 to check the multiple sensors (1, 2, 3...n) one by one, wherein the control signal carries an address signal corresponding to each sensor (1, 2, 3...n), and controls the fault positioning unit 230 to connect with each sensor (1, 2, 3...n) in turn, so as to determine which sensor or sensors are faulty, thereby determining the source of the fault.
[0036] The fault location circuit 230 is used to connect the sensors (1, 2, 3...n) in sequence according to the control signal, compare the first voltage signal corresponding to the sensors (1, 2, 3...n) with the voltage signal threshold, and input the second level signal to the micro control unit.
[0037] It should be noted that there are multiple first voltage signals and multiple second level signals, and each sensor (1, 2, 3...n) corresponds to a first voltage signal, and each first voltage signal is compared with the voltage signal threshold to obtain a second level signal, wherein the second level signal also includes a high level signal and a low level signal. In addition, whether the voltage signal threshold here is the maximum voltage signal threshold or the minimum voltage signal threshold corresponds to the fault diagnosis circuit 210. For example, in the fault diagnosis circuit 210, when the extreme voltage signal is the maximum voltage signal, the fault location circuit 220 compares the first voltage signal of each sensor with the maximum voltage signal threshold. If the first voltage signal of one sensor is greater than the maximum voltage signal threshold, the second level signal corresponding to the one sensor is a high level signal and is input to the MCU 230 accordingly. If the first voltage signal of two sensors is less than the maximum voltage signal threshold, the second level signal corresponding to the two sensors is a low level signal and is input to the MCU 230 accordingly.
[0038] The micro control unit (MCU) 230 is further configured to determine a faulty sensor according to each second level signal.
[0039] In the embodiment of the present application, the MCU 230 determines the sensor corresponding to the high level signal in each second level signal as a fault sensor. There may be multiple fault sensors.
[0040] Specifically, see Figure 3 , Figure 3 FIG. 1 is a schematic diagram of another multi-channel sensor diagnostic circuit according to an exemplary embodiment of the present invention. Figure 3As shown, the fault diagnosis circuit 210 at least includes an extreme value circuit 1 and a first comparator unit 2; wherein, the input end of the extreme value circuit 1 is connected to each sensor (1, 2, 3...n), and its output end is connected to the input end of the first comparator unit 2, for collecting the extreme value voltage signal in each sensor (1, 2, 3...n) and inputting it into the first comparator unit 2; the output end of the first comparator unit 2 is connected to the first input end of the MCU230, for comparing the extreme value voltage signal with the voltage signal threshold, and outputting a first level signal to the MCU230 according to the comparison result, so that the MCU230 determines whether the multi-channel sensors (1, 2, 3...n) are faulty according to the first level signal.
[0041] For details, please continue to see Figure 3 The fault location circuit 220 at least includes a channel multiplexer 3 and a second comparator unit 4; wherein the first input end of the channel multiplexer 3 is connected to each sensor (1, 2, 3...n), the second input end thereof is connected to the first output end of the MCU230, and the output end thereof is connected to the input end of the second comparator unit 4, and is used to sequentially collect the first voltage signals of each sensor (1, 2, 3...n) according to each control signal and input them into the second comparator unit 4; the output end of the second comparator unit 4 is connected to the second input end of the MCU230, and is used to compare each first voltage signal with a voltage signal threshold, respectively, determine the second level signal of each sensor (1, 2, 3...n), and input each second level signal into the MCU230, so that the MCU230 determines the fault source, i.e., the faulty sensor, in the multi-channel sensor (1, 2, 3...n) according to the second level signal.
[0042] In one embodiment, the extreme value circuit 1 includes a maximum value detection circuit and a minimum value detection circuit, the first comparator unit 2 includes a first comparator and a second comparator, the maximum value detection circuit and the first comparator cooperate to perform open circuit diagnosis on multiple sensors, and the minimum value detection circuit and the second comparator cooperate to perform short circuit diagnosis on multiple sensors.
[0043] As a possible embodiment, a maximum value detection circuit and a minimum value detection circuit are set in the extreme value circuit 1, which are respectively used for open circuit diagnosis and short circuit diagnosis of multi-channel sensors. In addition, in order to obtain the comparison results of the maximum value voltage signal and the maximum voltage signal threshold, and the minimum value voltage signal and the minimum voltage signal threshold, respectively, a first comparator and a second comparator are set in the first comparator unit 2 corresponding to the maximum value detection circuit and the minimum value detection circuit.
[0044] Specifically, see Figure 4The maximum value detection circuit at least includes a plurality of first resistors (R11, R12, R13 ... R1n), a plurality of first diodes (D11, D12, D13 ... D1n), a first amplifier (amplifier 1) and a first voltage divider circuit (R14-R15); the input ends of the plurality of first diodes (D11, D12, D13 ... D1n) are respectively connected to a sensor (1, 2, 3 ... n) through a first resistor (R11, R12, R13 ... R1n) to collect the maximum voltage signal of each sensor (1, 2, 3 ... n); the first amplifier The positive input terminal of the amplifier (amplifier 1) is connected to a plurality of first diodes (D11, D12, D13 ... D1n), and the output terminal thereof is connected to the positive input terminal of a first comparator (comparator 11) for inputting a maximum voltage signal into the first comparator (comparator 11); the output terminal of a first voltage divider circuit (R14-R15) is connected to the negative input terminal of the first comparator (comparator 11) for inputting a maximum voltage threshold into the first comparator (comparator 11), so that the first comparator (comparator 11) outputs a third level signal according to the maximum voltage signal and the maximum voltage threshold.
[0045] In this embodiment, if the input voltage of the n-way sensor is the largest, the first diode D1n corresponding to this channel will be in the on state, and the first diodes (D11, D12, D13...D1n-1) of the corresponding channels will not be turned on because the output voltage of other channels is lower than that of the n-way. It should be noted that the amplifier 1 acts as a voltage follower. According to the virtual disconnection principle, that is, almost no current flows through the positive input end of the amplifier 1, so the on-state voltage drop of the diode D1n can be ignored, and the voltage at the positive input end of the input amplifier 1 is the maximum value of the signal voltage of all channels. In addition, multiple first resistors (R11, R12, R13...R1n) play a circuit protection role. It should also be noted that the first voltage divider circuit (R14-R15) is used to set the high threshold voltage, that is, the maximum voltage signal threshold. When the maximum voltage signal corresponding to the n-way sensor exceeds the maximum voltage signal threshold, the comparator 11 will output a high level to the MCU. Among them, the third level signal is the level signal corresponding to the maximum voltage signal in the first level signal.
[0046] In one embodiment, the first voltage divider circuit (R14-R15) includes a second resistor R14 and a third resistor R15, the second resistor R14 and the third resistor R15 are connected in series, the second resistor R14 is connected to a power source V, and the third resistor is grounded GND.
[0047] It should be noted that in this embodiment, the first voltage divider circuit uses a resistor voltage divider circuit. Of course, the embodiment of the present application does not limit the specific type of the first voltage divider circuit. For example, it can also be a DC / DC power supply, a voltage reference, etc.
[0048] Specifically, see Figure 5 , Figure 5 Schematic diagram of a minimum value detection circuit shown in an exemplary embodiment of the present utility model. Figure 5 As shown, the minimum value detection circuit includes a plurality of second amplifiers (21, 22, 23 ... 2n), a plurality of second diodes (D21, D22, D23 ... D2n) and a second voltage divider circuit (R24-R25); the positive input ends of the plurality of second amplifiers (21, 22, 23 ... 2n) are respectively connected to a sensor (1, 2, 3 ... n), and the output ends thereof are connected to the input end of a second diode (D21, D22, D23 ... D2n), so as to input the second voltage signal in each sensor (1, 2, 3 ... n) into the second diode (D21, D22, D23...D2n); a plurality of second diodes (D21, D22, D23...D2n) are connected to the negative input terminal of the second comparator (comparator 21) for inputting the minimum voltage signal in the second voltage signals into the second comparator (comparator 21); the output terminal of the second voltage divider circuit (R24-R25) is connected to the positive input terminal of the second comparator (comparator 21) for inputting the minimum voltage threshold into the second comparator (comparator 21) so that the second comparator (comparator 21) outputs a fourth level signal according to the minimum voltage signal and the minimum voltage threshold.
[0049] In this embodiment, the second amplifiers (21, 22, 23 ... 2n) all act as voltage followers, and their output signals are the output voltage values of the corresponding channel sensors. The second diodes (D21, D22, D23 ... D2n) are all clamping diodes, and the clamping effect is that if the output signal voltage of the n-way sensor is the smallest, the second diode D2n will clamp the voltage at the negative input end of the input comparator 21 to the same voltage. Since the output voltage values of other channels are greater than those of the n-way sensor, the second diodes of the corresponding channels will be in a cut-off state. In addition, the second voltage divider circuit (R24-R25) is used to set the low threshold voltage, that is, the minimum voltage signal threshold. When the minimum voltage signal of the signal input to the comparator 21 is lower than the minimum voltage signal threshold, the comparator 21 will output a high level to the MCU. Among them, the fourth level signal is the level signal corresponding to the minimum voltage signal in the first level signal.
[0050] Specifically, the second voltage divider circuit (R24-R25) includes a fourth resistor R24 and a fifth resistor R25, the fourth resistor R24 and the fifth resistor R25 are connected in series, the fourth resistor R24 is connected to the power source V, and the fifth resistor R25 is grounded GND.
[0051] It should be noted that in this embodiment, the second voltage divider circuit uses a resistor voltage divider circuit. Of course, the embodiment of the present application does not limit the specific type of the second voltage divider circuit. For example, it can also be a DC / DC power supply, a voltage reference, etc.
[0052] In one embodiment, see Figure 6 , Figure 6 FIG. 1 is a schematic diagram of the structure of a microcontroller unit according to an exemplary embodiment of the present invention. Figure 6 As shown, the MCU 230 includes a first diagnosis subunit 231 for diagnosing that the fault sensor is open circuit when the first level signal is a third level signal.
[0053] It should be understood that when the n-way sensor is in an open circuit, the voltage represented by the corresponding maximum voltage signal is close to the power supply voltage, so it can be detected whether the sensor has an open circuit fault.
[0054] In one embodiment, please continue to refer to Figure 6 , MCU230 further includes a second diagnosis subunit 232, which is used to diagnose that the fault sensor is short-circuited when the first level signal is a fourth level signal.
[0055] It should be understood that when the n-way sensor is in a short circuit, the voltage represented by the corresponding minimum voltage signal will be close to 0, and thus can be used to detect whether the sensor has a short circuit fault.
[0056] In a possible embodiment, please continue to refer to Figure 6 An alarm unit 233 may be provided in the MCU 230, and the first diagnostic subunit 231 and the second diagnostic subunit 232 are both connected to the alarm unit 233. When the first diagnostic subunit 231 and the second diagnostic subunit 232 determine the fault source and the corresponding fault type, a corresponding fault signal (carrying the fault source and fault type information) is sent to the alarm unit 233, so that the alarm unit 233 sends a corresponding alarm signal (carrying the fault source and fault type information), thereby realizing rapid repair of the faulty sensor.
[0057] The above-mentioned multi-channel sensor diagnosis circuit includes a fault diagnosis circuit, a fault location circuit and a micro control unit; the fault diagnosis circuit connects each channel of sensors and the micro control unit, compares the extreme voltage signal in each channel of sensors with the voltage signal threshold, and outputs a first level signal to the micro control unit; the micro control unit is connected to the fault location circuit, and when the first level signal is high, inputs a control signal to the fault location unit according to the address signal corresponding to each channel of sensors; the fault location circuit sequentially connects each channel of sensors according to the control signal, compares the first voltage signal corresponding to each channel of sensors with the voltage signal threshold, and inputs a second level signal to the micro control unit; the micro control unit determines the fault sensor according to each second level signal. In this circuit, the MCU no longer sets a large number of input ports to connect with the comparators corresponding to each channel of sensors, but directly connects the fault diagnosis circuit and the fault location circuit, which saves MCU input port resources, and also correspondingly reduces the number of comparators, reducing hardware costs. In addition, fault diagnosis is performed first, and when a multi-channel sensor fails, each channel of sensor is polled for fault location, avoiding the problem that the circuit is always performing fault diagnosis and location on each channel of sensor when there is no fault in the multi-channel sensor.
[0058] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person with ordinary knowledge in the relevant technical field without departing from the spirit and technical ideas disclosed in the present invention shall still be covered by the claims of the present invention.
Claims
1. A multi-channel sensor diagnostic circuit, characterized in that: The circuit includes a fault diagnosis circuit, a fault location circuit and a micro control unit; The fault diagnosis circuit is connected to each sensor and the micro control unit, and is used to compare the extreme voltage signal in each sensor with the voltage signal threshold, and output a first level signal to the micro control unit; The micro control unit is connected to the fault locating circuit and is used to input a control signal to the fault locating circuit according to the address signal corresponding to each of the sensors when the first level signal is at a high level; The fault location circuit is used to sequentially connect the sensors according to the control signal, compare the first voltage signals corresponding to the sensors with the voltage signal threshold, and input the second level signal to the micro control unit; The micro control unit is further used to determine the fault sensor according to each of the second level signals.
2. The multi-channel sensor diagnostic circuit according to claim 1, characterized in that: The fault diagnosis circuit includes an extreme value circuit and a first comparator unit; The extreme value circuit has an input end connected to each sensor and an output end connected to the input end of the first comparator unit, and is used to collect the extreme value voltage signals from each sensor and input them into the first comparator unit; The first comparator unit has an output end connected to the first input end of the micro control unit, and is used to compare the extreme voltage signal with a voltage signal threshold, and output the first level signal to the micro control unit according to the comparison result.
3. The multi-channel sensor diagnostic circuit according to claim 1, characterized in that: The fault locating circuit comprises a channel multiplexer and a second comparator unit; The channel multiplexer has a first input end connected to each of the sensors, a second input end connected to the first output end of the microcontroller unit, and an output end connected to the input end of the second comparator unit, and is used to sequentially collect the first voltage signals of the sensors of each channel according to each of the control signals and input them into the second comparator unit; The output end of the second comparator unit is connected to the second input end of the micro control unit, and is used to compare each of the first voltage signals with the voltage signal threshold, determine the second level signal of each sensor, and input the second level signal to the micro control unit.
4. The multi-channel sensor diagnostic circuit according to claim 2, characterized in that: The extreme value circuit includes a maximum value detection circuit and a minimum value detection circuit, the first comparator unit includes a first comparator and a second comparator, the maximum value detection circuit and the first comparator cooperate to perform open circuit diagnosis on the multi-channel sensor, and the minimum value detection circuit and the second comparator cooperate to perform short circuit diagnosis on the multi-channel sensor.
5. The multi-channel sensor diagnostic circuit according to claim 4, characterized in that: The maximum value detection circuit includes a plurality of first resistors, a plurality of first diodes, a first amplifier and a first voltage divider circuit, wherein the first amplifier is a voltage follower; The input ends of the plurality of first diodes are respectively connected to one of the sensors through one of the first resistors, so as to collect the maximum voltage signal of each of the sensors; The first amplifier has a positive input terminal connected to the plurality of the first diodes and an output terminal connected to the positive input terminal of the first comparator, and is used to input the maximum voltage signal into the first comparator; The output end of the first voltage divider circuit is connected to the negative input end of the first comparator, and is used to input a preset maximum voltage threshold into the first comparator so that the first comparator outputs a third level signal according to the maximum voltage signal and the maximum voltage threshold.
6. The multi-channel sensor diagnostic circuit according to claim 5, characterized in that: The micro control unit includes a first diagnosis subunit, which is used to diagnose the fault sensor as being open circuit when determining that the first level signal is the third level signal.
7. The multi-channel sensor diagnostic circuit according to claim 5, characterized in that: The first voltage divider circuit includes a second resistor and a third resistor, the second resistor and the third resistor are connected in series, the second resistor is connected to a power source, and the third resistor is grounded.
8. The multi-channel sensor diagnostic circuit according to claim 4, characterized in that: The minimum value detection circuit includes a plurality of second amplifiers, a plurality of second diodes and a second voltage divider circuit, wherein the second amplifier is a voltage follower and the second diode is a clamping diode; A plurality of the second amplifiers, the positive input end of which is connected to one of the sensors, the output end of which is connected to the input end of one of the second diodes, and which is used to input the second voltage signal in each of the sensors into the second diode; a plurality of the second diodes connected to the negative input terminal of the second comparator, and used for inputting the minimum voltage signal among the second voltage signals into the second comparator; The output end of the second voltage divider circuit is connected to the positive input end of the second comparator, and is used to input a preset minimum voltage threshold into the second comparator so that the second comparator outputs a fourth level signal according to the minimum voltage signal and the minimum voltage threshold.
9. The multi-channel sensor diagnostic circuit according to claim 8, characterized in that: The micro control unit further includes a second diagnosis subunit, configured to diagnose the fault sensor as being short-circuited when it is determined that the first level signal is the fourth level signal.
10. The multi-channel sensor diagnostic circuit according to claim 8, characterized in that: The second voltage divider circuit includes a fourth resistor and a fifth resistor, the fourth resistor and the fifth resistor are connected in series, the fourth resistor is connected to a power source, and the fifth resistor is grounded.
