CN107084749B - Detection control method and device of sensor - Google Patents

Detection control method and device of sensor Download PDF

Info

Publication number
CN107084749B
CN107084749B CN201710273663.4A CN201710273663A CN107084749B CN 107084749 B CN107084749 B CN 107084749B CN 201710273663 A CN201710273663 A CN 201710273663A CN 107084749 B CN107084749 B CN 107084749B
Authority
CN
China
Prior art keywords
voltage
resistor
output state
control
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710273663.4A
Other languages
Chinese (zh)
Other versions
CN107084749A (en
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.)
Midea Group Co Ltd
GD Midea Heating and Ventilating Equipment Co Ltd
Original Assignee
Midea Group Co Ltd
GD Midea Heating and Ventilating Equipment 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 Midea Group Co Ltd, GD Midea Heating and Ventilating Equipment Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201710273663.4A priority Critical patent/CN107084749B/en
Publication of CN107084749A publication Critical patent/CN107084749A/en
Application granted granted Critical
Publication of CN107084749B publication Critical patent/CN107084749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D3/00Indicating or recording apparatus with provision for the special purposes referred to in the subgroups

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)

Abstract

The invention discloses a detection control method of a sensor, which comprises the following steps: acquiring the voltage of an acquisition end and the current output state of the first control end; when the acquired voltage is smaller than a first preset voltage and the output state of the first control end is a high-impedance state, adjusting the output state of the first control port to a low level; and acquiring the current voltage of the acquisition end so as to obtain the detection result of the sensor according to the current voltage of the acquisition port. The invention also discloses a detection control resistance value of the sensor. According to the invention, the output state of the first control end is adjusted to a low level, so that only the first resistor with a smaller resistance value exists in the effective divider resistor in the control circuit, the influence of the resistance value of the control circuit on the acquisition end voltage can be further reduced, and the accuracy of the detection result of the sensor obtained by acquiring the voltage of the port is improved.

Description

Detection control method and device of sensor
Technical Field
The invention relates to the technical field of sensors, in particular to a detection control method and device of a sensor.
Background
At present, with the rapid development of electronic technology, sensors have been widely used in various fields of social development and human life, such as industrial automation, agricultural modernization, aerospace technology, military engineering, robotics, resource development, marine exploration, environmental monitoring, security, medical diagnosis, transportation, home appliances, and the like.
When the sensor is used, firstly, the analog quantity detection needs to be performed on the sensor by using a detection circuit to ensure the accuracy of the sensor, for example, the analog quantity detection is performed on the sensor by using a resistance voltage division detection circuit. However, when analog quantity detection is performed on a sensor with a very large resistance span, it is impossible to distinguish whether the current detection circuit is an open circuit or not under the conditions that the resistance of the sensor is small and the divider resistor is too large, so that the detection result of the sensor is inaccurate.
Disclosure of Invention
The invention provides a detection control method and a detection control device for a sensor, and aims to solve the technical problem that a detection result is inaccurate when the sensor with very large resistance span is used for analog quantity detection.
In order to achieve the above object, the detection control method of the sensor provided by the present invention includes a control circuit connected to the sensor, wherein the control circuit includes a voltage division module and a first control end, and the control circuit is provided with a collection end; the voltage division module comprises a series circuit formed by a first resistor and a second resistor; a node at the joint of the first resistor and the second resistor is connected with a first control end; the state of the first control end comprises a high-impedance state and a low level, and the first resistance is smaller than the second resistance;
the detection control method of the sensor comprises the following steps:
acquiring the voltage of an acquisition end and the current output state of the first control end;
when the acquired voltage is smaller than a first preset voltage and the output state of the first control end is a high-impedance state, adjusting the output state of the first control port to a low level;
and acquiring the current voltage of the acquisition end so as to obtain the detection result of the sensor according to the current voltage of the acquisition port.
Preferably, after the step of acquiring the voltage of the acquisition end and the current output state of the first control end, the detection control method of the sensor further includes:
when the acquired voltage is greater than a second preset voltage and the output state of the first control end is a low level, adjusting the output state of the first control port to a high-resistance state, wherein the second preset voltage is greater than the first preset voltage;
and acquiring the current voltage of the acquisition end so as to obtain the detection result of the sensor according to the current voltage of the acquisition port.
Preferably, the series circuit further comprises a fourth resistor, and the fourth resistor is connected with the second resistor in series and then grounded; a node at the connection position of the fourth resistor and the second resistor is connected with a second control end, wherein the state of the second control end comprises a high-impedance state and a low level;
when the acquired voltage is greater than a second preset voltage and the output state of the first control end is a low level, the step of adjusting the output state of the first control port to a high impedance state comprises the following steps:
acquiring the output state of the second control end;
and when the acquired voltage is greater than a second preset voltage, adjusting the output state of the first control end and/or the output state of the second control end so as to enable the output state of the first control end and the output state of the second control end to be high-impedance states.
Preferably, when the obtained voltage is greater than a second preset voltage, the step of adjusting the output state of the first control end and/or the output state of the second control end so that the output state of the first control end and the output state of the second control end are both in a high impedance state includes:
when the acquired voltage is greater than a second preset voltage, determining whether the acquired voltage is less than or equal to a third preset voltage, wherein the third preset voltage is greater than the second preset voltage;
and when the acquired voltage is greater than a third preset voltage, adjusting the output state of the first control end and/or the output state of the second control end so that the output state of the first control end and the output state of the second control end are both in a high-impedance state.
Preferably, after the step of determining whether the acquired voltage is less than or equal to a third preset voltage, the method further includes:
when the acquired voltage is less than or equal to a third preset voltage, adjusting the output state of the first control end and/or the output state of the second control end so that the output state of the first control end is a high-impedance state and the output state of the second control end is a low level.
In addition, in order to achieve the above object, the present invention further provides a detection control device of a sensor, including a control circuit connected to the sensor, where the control circuit includes a voltage division module and a first control end, and the control circuit is provided with a collection end; the voltage division module comprises a series circuit formed by a first resistor and a second resistor; a node at the joint of the first resistor and the second resistor is connected with a first control end; the state of the first control end comprises a high-impedance state and a low level, and the first resistance is smaller than the second resistance; the detection control device of the sensor comprises:
the first acquisition module is used for acquiring the voltage of an acquisition end and the current output state of the first control end;
the first adjusting module is used for adjusting the output state of the first control port to a low level when the acquired voltage is smaller than a first preset voltage and the output state of the first control end is a high impedance state;
and the second acquisition module is used for acquiring the current voltage of the acquisition end so as to obtain the detection result of the sensor according to the current voltage of the acquisition port.
Preferably, the detection control device of the sensor further includes:
the second adjusting module is used for adjusting the output state of the first control port to a high-resistance state when the obtained voltage is greater than a second preset voltage and the output state of the first control end is a low level, wherein the second preset voltage is greater than the first preset voltage;
and the third acquisition module is used for acquiring the current voltage of the acquisition end so as to obtain the detection result of the sensor according to the current voltage of the acquisition port.
Preferably, the series circuit further comprises a fourth resistor, and the fourth resistor is connected with the second resistor in series and then grounded; a node at the connection position of the fourth resistor and the second resistor is connected with a second control end, wherein the state of the second control end comprises a high-impedance state and a low level; the second adjustment module includes:
the acquisition unit is used for acquiring the output state of the second control end;
and the adjusting unit is used for adjusting the output state of the first control end and/or the output state of the second control end when the acquired voltage is greater than a second preset voltage, so that the output state of the first control end and the output state of the second control end are both in a high impedance state.
Preferably, the adjusting unit includes:
the determining subunit is configured to determine whether the acquired voltage is less than or equal to a third preset voltage when the acquired voltage is greater than a second preset voltage, where the third preset voltage is greater than the second preset voltage;
and the first adjusting subunit is configured to adjust the output state of the first control end and/or the output state of the second control end when the acquired voltage is greater than a third preset voltage, so that the output state of the first control end and the output state of the second control end are both in a high impedance state.
Preferably, the adjusting unit further includes:
and the second adjusting subunit is configured to adjust the output state of the first control end and/or the output state of the second control end when the obtained voltage is less than or equal to a third preset voltage, so that the output state of the first control end is a high impedance state and the output state of the second control end is a low level.
The invention adjusts the output state of the first control port to low level by obtaining the voltage of the acquisition end and the current output state of the first control end when the obtained voltage is less than the first preset voltage and the output state of the first control end is high resistance state, then obtains the current voltage of the acquisition end, and obtains the detection result of the sensor according to the current voltage of the acquisition end, and further adjusts the output state of the first control end to low level when the voltage of the acquisition end is less than the first preset voltage, so that the effective divider resistor in the control circuit only has the first resistor with smaller resistance value, thereby reducing the influence of the resistance value of the control circuit on the acquisition end voltage, further improving the accuracy of the detection result of the sensor obtained by acquiring the voltage of the port, and avoiding the problem that the current detection circuit is broken circuit or not distinguished, the detection result of the sensor is inaccurate, and the accuracy and the efficiency of analog quantity detection of the sensor are improved.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of a detection control method of a sensor according to the present invention;
FIG. 2 is a schematic circuit diagram of a control circuit according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of the detection control method of the sensor according to the present invention;
FIG. 4 is a detailed flowchart of the step of adjusting the output state of the first control port to a high impedance state according to the third embodiment of the detection control method of the sensor of the present invention;
FIG. 5 is a schematic circuit diagram of another embodiment of a control circuit according to the present invention;
FIG. 6 is a detailed flowchart of the step of adjusting the output state of the first control terminal and/or the output state of the second control terminal according to the fourth embodiment of the detection control method of the sensor of the present invention;
FIG. 7 is a functional block diagram of a first embodiment of a detection control device of the sensor of the present invention;
FIG. 8 is a functional block diagram of a second embodiment of the detection control device of the sensor of the present invention;
FIG. 9 is a schematic diagram showing a detailed function of a second adjusting module in a third embodiment of the detecting and controlling device of the sensor according to the present invention;
FIG. 10 is a schematic diagram showing a detailed functional block diagram of an adjusting unit in a fourth embodiment of the detecting and controlling device of the sensor of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a detection control method of a sensor.
Referring to fig. 1 and fig. 2, wherein fig. 1 is a schematic flow chart of a first embodiment of a detection control method of a sensor according to the present invention, and fig. 2 is a schematic circuit structure diagram of a control circuit according to an embodiment of the present invention.
In this embodiment, the sensor comprises a control circuit connected with the sensor, the control circuit comprises a voltage division module and a first control end K1, and the control circuit is provided with a collection end C11; the voltage division module comprises a series circuit formed by a first resistor R1 and a second resistor R2; the node at the junction of the first resistor R1 and the second resistor R2 is connected to the first control terminal K1.
The state of the first control terminal K1 includes a high-impedance state and a low level, and the resistance of the first resistor R1 is smaller than the resistance of the second resistor R2.
Specifically, referring to fig. 2, the control circuit includes: the circuit comprises a first capacitor C1, a second capacitor E1 and a series circuit formed by sequentially connecting a first resistor R1, a second resistor R2 and a third resistor R3 in series.
The series circuit is connected in parallel with the second capacitor E1, and the second resistor R2 is connected to ground. One end of the first capacitor C1 is connected with a node at the joint of the first resistor R1 and the third resistor R3, and the other end is grounded; the sensor is connected to the node where the first resistor R1 and the third resistor R3 are connected. The node at the junction of the first resistor R1 and the second resistor R2 is connected to the first control terminal K1. The node at the junction of the third resistor R3 and the second capacitor E1 is the acquisition terminal C11.
The detection control method of the sensor comprises the following steps:
step S10, acquiring the voltage of the acquisition end C11 and the current output state of the first control end K1;
in this embodiment, the voltage of the node at the connection between the third resistor R3 and the second capacitor E1, that is, the acquisition terminal C11, can be detected in real time or at regular time, and the current output state of the first control terminal K1 is detected at the same time, where the output state of the first control terminal K1 includes a high resistance state and a low level state, when the output state of the first control terminal K1 is the high resistance state, the first control terminal K1 is equivalent to an infinite resistor, so that the first control terminal K1 is disabled, so that the effective voltage dividing resistors in the voltage dividing resistors of the control circuit are the first resistor R1 and the second resistor R2, and when the output state of the first control terminal K1 is the low level, the first resistor R1 is grounded, so that the second resistor R2 is short-circuited, and only the effective voltage dividing resistors in the voltage dividing resistors of the control circuit have the first resistor R1.
Step S20, when the acquired voltage is less than a first preset voltage and the output state of the first control end K1 is a high impedance state, adjusting the output state of the first control end K1 port to a low level;
wherein the first preset voltage ranges from 0 to the power supply voltage of the sensor.
In this embodiment, when the voltage of the acquisition terminal C11 and the current output state of the first control terminal K1 are acquired, it is determined whether the acquired voltage is smaller than a first preset voltage, when the acquired voltage is smaller than the first preset voltage, it is determined again whether the output state of the first control terminal K1 is in a high-impedance state, and when the output state of the first control terminal K1 is in the high-impedance state, the output state of the port of the first control terminal K1 is adjusted to a low level, so that when the voltage of the acquisition terminal C11 is smaller than the first preset voltage, the current effective voltage dividing resistor in the control circuit only includes the first resistor R1 by adjusting the output state of the port of the first control terminal K1 to the low level, that is, only the first resistor R1 with a smaller resistance value is used for voltage division, and thus the voltage of the acquisition terminal C11 can be ensured to be more accurate, and the accuracy of the detection result of the sensor can be improved.
Of course, when the obtained voltage is smaller than the first preset voltage, if the output state of the first control terminal K1 is a low level, the current effective voltage dividing resistor of the control circuit only includes the first resistor R1, and the output state of the first control terminal K1 does not need to be adjusted.
And step S30, acquiring the voltage of the current acquisition end C11 to obtain the detection result of the sensor according to the voltage of the current acquisition end C11 port.
In this embodiment, after the output state of the first control terminal K1 is adjusted to a low level, the second resistor R2 is short-circuited by the first control terminal K1, and the current effective voltage-dividing resistor in the control circuit only includes the first resistor R1, that is, only the first resistor R1 with a smaller resistance value is used for voltage division, so that the influence of the resistance value of the control circuit on the voltage of the acquisition terminal C11 can be reduced, therefore, the detection result of the sensor obtained according to the current voltage of the acquisition terminal C11 is more accurate, specifically, the detection result of the sensor and the voltage of the acquisition terminal C11 have a one-to-one mapping relationship, and when the voltage of the acquisition terminal C11 is obtained, the detection result of the sensor can be directly obtained according to a table lookup or the like of the mapping relationship between the detection result and the voltage of the acquisition terminal C11.
The detection control method of the sensor in the present embodiment may control the above-described flow by the first control terminal K1, or may control the above-described flow by another processor.
In practical applications, the sensor may be a temperature sensor, a pressure sensor, a distance sensor, etc., wherein the resistance of the first resistor R1 may be 8.06K Ω, the resistance of the second resistor R2 may be 100K Ω, the resistance of the third resistor R3 may be 2K Ω, the first capacitor C1 is 104 capacitors, and the second capacitor E1 is a capacitor with a forward withstand voltage of 47 μ f of 16V.
In the detection control method of the sensor provided in this embodiment, by obtaining the voltage of the acquisition terminal C11 and the current output state of the first control terminal K1, then adjusting the output state of the port K1 of the first control terminal to a low level when the obtained voltage is smaller than the first preset voltage and the output state of the first control terminal K1 is a high impedance state, then obtaining the voltage of the current acquisition terminal C11, and obtaining the detection result of the sensor according to the voltage of the port C11 of the current acquisition terminal, further when the voltage of the acquisition terminal C11 is smaller than the first preset voltage, by adjusting the output state of the first control terminal K1 to a low level, an effective voltage dividing resistor in the control circuit only has the first resistor R1 with a smaller resistance value, so that the influence of the resistance value of the control circuit on the voltage of the acquisition terminal C11 can be reduced, and the accuracy of the detection result of the sensor obtained by the voltage of the port C11 can be further improved, and the condition that the detection result of the sensor is inaccurate because whether the current detection circuit is open circuit or not can be distinguished can be avoided, and the accuracy and the efficiency of analog quantity detection of the sensor are improved.
A second embodiment of the detection control method of the sensor of the present invention is proposed based on the first embodiment, and referring to fig. 3, in the present embodiment, after step S10, the detection control method of the sensor further includes:
step S40, when the obtained voltage is greater than a second preset voltage and the output state of the first control end K1 is a low level, adjusting the output state of the first control end K1 port to a high resistance state, wherein the second preset voltage is greater than the first preset voltage;
the second preset voltage is greater than the first preset voltage, and the range of the second preset voltage is 0-the power supply voltage of the sensor.
In this embodiment, when the voltage of the acquisition terminal C11 and the current output state of the first control terminal K1 are acquired, it is determined whether the acquired voltage is greater than the second preset voltage, when the acquired voltage is greater than the second preset voltage, it is determined whether the output state of the first control terminal K1 is a low level again, when the output state of the first control terminal K1 is a low level, the output state of the port of the first control terminal K1 is adjusted to a high resistance state, after the output state of the first control terminal K1 is adjusted to a high resistance state, the first control terminal K1 is in a failure state in the control circuit, so that the current effective voltage dividing resistor in the control circuit includes a first resistor R1 and a second resistor R2, that is, that the current voltage dividing resistance value in the control circuit is the sum of the resistance value of the first resistor R1 and the resistance value of the second resistor R2, and the voltage of the acquisition terminal C11 can be ensured to be more accurate, the accuracy of the detection result of the sensor is improved.
And step S50, acquiring the voltage of the current acquisition end C11 to obtain the detection result of the sensor according to the voltage of the current acquisition end C11 port.
In this embodiment, after the output state of the first control terminal K1 is adjusted to a high-impedance state, the first control terminal K1 is in a failure state in the control circuit, and further the current effective voltage dividing resistor in the control circuit includes the first resistor R1 and the second resistor R2, that is, the current voltage dividing resistance value in the control circuit is the sum of the resistance value of the first resistor R1 and the resistance value of the second resistor R2, and the voltage of the acquisition terminal C11 is more accurate by increasing the resistance value of the voltage dividing resistor in the control circuit, specifically, the detection result of the sensor and the voltage of the acquisition terminal C11 have a one-to-one mapping relationship, and when the voltage of the acquisition terminal C11 is obtained, the detection result of the sensor can be obtained directly by looking up a table or the like according to the mapping relationship between the detection result and the voltage of the acquisition terminal C11.
The detection control method of the sensor in the present embodiment may control the above-described flow by the first control terminal K1, or may control the above-described flow by another processor.
It should be emphasized that, if the acquired voltage is greater than the first preset voltage and less than or equal to the second preset voltage, the detection result of the sensor can be directly obtained according to the acquired voltage, and the output state of the first control terminal K1 does not need to be adjusted.
In the detection control method for the sensor provided in this embodiment, when the obtained voltage is greater than the second preset voltage and the output state of the first control terminal K1 is at a low level, the output state of the port K1 of the first control terminal is adjusted to a high-resistance state, and then the voltage of the current acquisition terminal C11 is obtained, so as to obtain the detection result of the sensor according to the voltage of the port C11 of the current acquisition terminal, so that when the voltage of the acquisition terminal C11 is at the second preset voltage, the output state of the port K1 of the first control terminal is ensured to be at the high-resistance state, even if the first control terminal K1 is in a failure state in the control circuit, the current effective voltage dividing resistor in the control circuit includes the first resistor R1 and the second resistor R2, that the current voltage dividing resistance value in the control circuit is the sum of the resistance value of the first resistor R1 and the resistance value of the second resistor R2, so as to increase the voltage dividing resistance value of the voltage in the control, the voltage of the collecting end C11 is more accurate.
A third embodiment of the detection control method of the sensor according to the present invention is provided based on the second embodiment, and referring to fig. 4 and 5, in this embodiment, the series circuit further includes a fourth resistor R4.
Referring to fig. 5, the fourth resistor R4 is connected in series with the second resistor R2 and then grounded; the node of the connection point of the fourth resistor R4 and the second resistor R2 is connected to the second control terminal K2, wherein the state of the second control terminal K2 includes a high impedance state and a low level. In the present embodiment, the fourth resistor R4 may be greater than or equal to the second resistor R2.
Step S40 includes:
step S41, acquiring the output state of the second control end K2;
in this embodiment, when the voltage of the acquisition terminal C11 and the current output state of the first control terminal K1 are obtained, the output state of the second control terminal K2 is obtained, where the output state of the second control terminal K2 includes a high resistance state and a low level state, when the output state of the second control terminal K2 is the high resistance state, the second control terminal K2 is equivalent to an infinite resistor, so that the second control terminal K2 fails, if the output state of the first control terminal K1 is also the high resistance state, effective voltage dividing resistors in voltage dividing resistors of the control circuit are the first resistor R1, the second resistor R2 and the fourth resistor R4, and if the output state of the first control terminal K1 is the low level, the effective voltage dividing resistors in the voltage dividing resistors of the control circuit are only the first resistor R1; when the output state of the second control terminal K2 is low, it is equivalent to the second resistor R2 being grounded, and the fourth resistor R4 being short-circuited, and if the output state of the first control terminal K1 is also high-impedance, the effective voltage-dividing resistors in the voltage-dividing resistors of the control circuit are the first resistor R1 and the second resistor R2, and if the output state of the first control terminal K1 is low, the effective voltage-dividing resistors in the voltage-dividing resistors of the control circuit are only the first resistor R1.
In step S42, when the obtained voltage is greater than the second preset voltage, the output state of the first control terminal K1 and/or the output state of the second control terminal K2 are adjusted, so that the output state of the first control terminal K1 and the output state of the second control terminal K2 are both in a high impedance state.
Specifically, step S42 includes: when the acquired voltage is greater than a second preset voltage, the output state of the first control end K1 is at a low level, and the output state of the second control end K2 is at a low level, adjusting the output state of the first control end K1 port and the output state of the second control end K2 to a high-resistance state; or when the acquired voltage is greater than the second preset voltage, the output state of the first control end K1 is low level, and the output state of the second control end K2 is high impedance, adjusting the output state of the first control end K1 port to a high impedance state; or when the acquired voltage is greater than the second preset voltage, the output state of the first control terminal K1 is in a high-resistance state, and the output state of the second control terminal K2 is in a low level, the output state of the second control terminal K2 is adjusted to be in a high-resistance state.
In this embodiment, when the voltage of the acquisition terminal C11, the output state of the first control terminal K1, and the output state of the second control terminal K2 are acquired, it is determined whether the acquired voltage is greater than a second preset voltage, when the acquired voltage is greater than the second preset voltage, if the output state of the first control terminal K1 is a low level, the output state of the port of the first control terminal K1 is adjusted to a high-resistance state, and if the output state of the port of the second control terminal K2 is a low level, the output state of the port of the second control terminal K2 is adjusted to a high-resistance state, so that the output state of the port of the first control terminal K1 and the output state of the port of the second control terminal K2 are both high-resistance states, so that the first control terminal K1 and the second control terminal K2 are both in a failure state in the control circuit, and further, the current effective voltage dividing resistors in the control circuit include a first resistor R1, a second resistor R2, and a fourth resistor R4, that is, the current resistance value for voltage division in the control circuit is the sum of the first resistor R1, the second resistor R2 and the fourth resistor R4, so that the voltage of the collecting end C11 can be ensured to be more accurate, and the accuracy of the detection result of the sensor is improved.
Further, in an embodiment, after the step S41, the step S40 further includes:
when the acquired voltage is less than the first preset voltage, the output state of the first control terminal K1 is adjusted so that the output state of the first control terminal K1 port is at a low level, that is, when the output state of the first control terminal K1 is at a high impedance state, the output state of the first control terminal K1 port is adjusted to a low level.
In this embodiment, when the obtained voltage is less than the first preset voltage, if the output state of the first control terminal K1 is in a high impedance state, the output state of the first control terminal K1 port is adjusted to a low level, and no matter what state the output state of the second control terminal K2 is, when the output state of the first control terminal K1 port is in a low level, the second resistor R2 and the fourth resistor R4 are both in a short circuit state, so that when the voltage of the acquisition terminal C11 is less than the first preset voltage, the current effective voltage dividing resistor in the control circuit only includes the first resistor R1 by adjusting the output state of the first control terminal K1 port to a low level, that is, only the first resistor R1 with a smaller resistance value is used for voltage division, so that the voltage of the acquisition terminal C11 can be ensured to be more accurate, and the accuracy of the detection result of the sensor can be improved.
In the detection control method of the sensor provided in this embodiment, the output state of the second control terminal K2 is obtained, and then when the obtained voltage is greater than the second preset voltage, the output state of the first control terminal K1 and/or the output state of the second control terminal K2 is adjusted, so that the output state of the first control terminal K1 and the output state of the second control terminal K2 are both in a high-resistance state, and the first control terminal K1 and the second control terminal K2 are both in a failure state in the control circuit, so that the current effective voltage dividing resistor in the control circuit includes the first resistor R1, the second resistor R2 and the fourth resistor R4, that is, that a resistance value for voltage division in the current control circuit is a sum of the first resistor R1, the second resistor R2 and the fourth resistor R4, and thus the voltage of the acquisition terminal C11 can be ensured to be more accurate, and the accuracy of the detection result of the sensor is improved.
A fourth embodiment of the detection control method of the sensor of the present invention is proposed based on the third embodiment, and referring to fig. 6, in the present embodiment, step S42 includes:
step S421, when the obtained voltage is greater than a second preset voltage, determining whether the obtained voltage is less than or equal to a third preset voltage, wherein the third preset voltage is greater than the second preset voltage;
in this embodiment, in order to make the detection result of the sensor more accurate, when the obtained voltage is greater than the second preset voltage, it may be determined whether the obtained voltage is less than or equal to a third preset voltage, so as to select different voltage dividing resistors according to different voltage ranges.
In step S422, when the obtained voltage is greater than the third preset voltage, the output state of the first control terminal K1 and/or the output state of the second control terminal K2 are adjusted, so that the output state of the first control terminal K1 and the output state of the second control terminal K2 are both in a high impedance state.
In this embodiment, when the obtained voltage is greater than the third preset voltage, the output state of the first control terminal K1 and/or the output state of the second control terminal K2 are/is adjusted to make the output state of the first control terminal K1 and the output state of the second control terminal K2 both be a high impedance state, specifically, if the output state of the first control terminal K1 is a low level and the output state of the second control terminal K2 is a low level, the output state of the first control terminal K1 and the output state of the second control terminal K2 are both adjusted to be a high impedance state; if the output state of the first control terminal K1 is low and the output state of the second control terminal K2 is high, the output state of the first control terminal K1 port is adjusted to a high resistance state; if the output state of the first control terminal K1 is in a high impedance state and the output state of the second control terminal K2 is in a low level, the output state of the second control terminal K2 is adjusted to a high impedance state. Of course, if the output state of the first control terminal K1 and the output state of the second control terminal K2 are both high impedance states, no adjustment is required.
In this embodiment, when the obtained voltage is greater than the third preset voltage, if the output state of the first control terminal K1 is low, the output state of the first control terminal K1 port is adjusted to a high-resistance state, and if the output state of the second control terminal K2 is low, the output state of the second control terminal K2 port is adjusted to a high-resistance state, so that the output state of the first control terminal K1 port and the output state of the second control terminal K2 port are both high-resistance states, so that the first control terminal K1 and the second control terminal K2 are both in a failure state in the control circuit, and further the current effective voltage dividing resistor in the control circuit includes the first resistor R1, the second resistor R2 and the fourth resistor R4, that is, that the current resistance value of the current voltage dividing in the control circuit is the sum of the first resistor R1, the second resistor R2 and the fourth resistor R4, and further the voltage of the collecting terminal C11 can be ensured to be more accurate, the accuracy of the detection result of the sensor is improved.
Further, in an embodiment, after step S421, the method further includes:
when the acquired voltage is less than or equal to the third preset voltage, the output state of the first control terminal K1 and/or the output state of the second control terminal K2 are/is adjusted so that the output state of the first control terminal K1 is a high impedance state and the output state of the second control terminal K2 is a low level.
Specifically, if the output state of the first control terminal K1 is low and the output state of the second control terminal K2 is low, the output state of the first control terminal K1 port is adjusted to a high impedance state; if the output state of the first control terminal K1 is at low level and the output state of the second control terminal K2 is at high impedance state, adjusting the output state of the first control terminal K1 port to high impedance state, and adjusting the output state of the second control terminal K2 port to low level; if the output state of the first control terminal K1 is in a high impedance state and the output state of the second control terminal K2 is in a high impedance state, the output state of the second control terminal K2 is adjusted to a low level. Of course, if the output state of the first control terminal K1 is in a high impedance state and the output state of the second control terminal K2 is in a low level, no adjustment is required.
In this embodiment, when the obtained voltage is less than or equal to the third preset voltage and greater than the second preset voltage, the output state of the port K1 is in a high-impedance state and the output state of the port K2 is in a low level, so that the fourth resistor R4 in the control circuit is in a short-circuit state, and then the current effective voltage-dividing resistor in the control circuit includes the first resistor R1 and the second resistor R2, that is, the current voltage-dividing resistance value in the control circuit is the sum of the resistance value of the first resistor R1 and the resistance value of the second resistor R2, different voltage-dividing resistors can be selected according to the obtained voltage, and the voltage of the collecting terminal C11 is more accurate.
Furthermore, a plurality of resistors and control ends can be added in the control circuit again, and the control circuit is provided with a plurality of divider resistors and control ends, so that the corresponding divider resistors can be selected according to the range to which the voltage of the acquisition end C11 belongs, and the accuracy of analog quantity detection of the sensor is further improved.
In the detection control method of the sensor provided in this embodiment, when the acquired voltage is greater than the second preset voltage, it is determined whether the acquired voltage is less than or equal to a third preset voltage, and then when the acquired voltage is greater than the third preset voltage, the output state of the first control terminal K1 and/or the output state of the second control terminal K2 are/is adjusted, so that the output state of the first control terminal K1 and the output state of the second control terminal K2 are both in a high-resistance state, so that the output state of the first control terminal K1 and the output state of the second control terminal K2 are both in a high-resistance state, so that the first control terminal K1 and the second control terminal K2 are both in a failure state in the control circuit, and further, the current effective voltage dividing resistor in the control circuit includes the first resistor R1, the second resistor R2 and the fourth resistor R4, that is a current resistance value of voltage dividing in the control circuit is a sum of the first resistor R1, the second resistor R2 and the fourth resistor R4, and further, the voltage of the acquisition end C11 can be ensured to be more accurate, and the accuracy of the detection result of the sensor is improved.
The invention further provides a detection control device of the sensor.
Referring to fig. 7 and fig. 2, fig. 7 is a functional block diagram of a first embodiment of a detection control device of a sensor according to the present invention, and fig. 2 is a circuit structure diagram of a control circuit according to an embodiment of the present invention.
In this embodiment, the sensor comprises a control circuit connected with the sensor, the control circuit comprises a voltage division module and a first control end K1, and the control circuit is provided with a collection end C11; the voltage division module comprises a series circuit formed by a first resistor R1 and a second resistor R2; the node at the junction of the first resistor R1 and the second resistor R2 is connected to the first control terminal K1.
The state of the first control terminal K1 includes a high-impedance state and a low level, and the resistance of the first resistor R1 is smaller than the resistance of the second resistor R2.
Specifically, referring to fig. 2, the control circuit includes: the circuit comprises a first capacitor C1, a second capacitor E1 and a series circuit formed by sequentially connecting a first resistor R1, a second resistor R2 and a third resistor R3 in series.
The series circuit is connected in parallel with the second capacitor E1, and the second resistor R2 is connected to ground. One end of the first capacitor C1 is connected with a node at the joint of the first resistor R1 and the third resistor R3, and the other end is grounded; the sensor is connected to the node where the first resistor R1 and the third resistor R3 are connected. The node at the junction of the first resistor R1 and the second resistor R2 is connected to the first control terminal K1.
The detection control device of the sensor comprises:
the first obtaining module 10 is configured to obtain a voltage of the collecting terminal C11 and an output state of the current first control terminal K1;
in this embodiment, the first obtaining module 10 may detect, in real time or at regular time, a voltage of a node at a connection between the third resistor R3 and the second capacitor E1, that is, the collecting terminal C11, and detect an output state of the first control terminal K1, where the output state of the first control terminal K1 includes a high resistance state and a low level state, when the output state of the first control terminal K1 is the high resistance state, the first control terminal K1 is equivalent to an infinite resistor, so that the first control terminal K1 fails, so that effective voltage dividing resistors in voltage dividing resistors of the control circuit are the first resistor R1 and the second resistor R2, and when the output state of the first control terminal K1 is the low level, the first control terminal K1 is equivalent to ground, so as to short-circuit the second resistor R2, and only the voltage dividing resistor in the voltage dividing resistors of the control circuit has the first resistor R1.
The first adjusting module 20 is configured to adjust the output state of the first control end K1 port to a low level when the acquired voltage is smaller than a first preset voltage and the output state of the first control end K1 is a high impedance state;
wherein the first preset voltage ranges from 0 to the power supply voltage of the sensor.
In the present embodiment, when the voltage of the collection terminal C11 and the current output state of the first control terminal K1 are acquired, it is determined whether the acquired voltage is less than a first preset voltage, when the acquired voltage is less than the first preset voltage, whether the output state of the first control terminal K1 is in a high impedance state is determined again, when the output state of the first control terminal K1 is in the high impedance state, the first adjusting module 20 adjusts the output state of the first control terminal K1 port to a low level, further realizes that when the voltage of the acquisition end C11 is less than the first preset voltage, the current effective voltage-dividing resistor in the control circuit only comprises a first resistor R1 by adjusting the output state of the first control end K1 port to a low level, that is, only the first resistor R1 with a small resistance value is used for voltage division, so that the voltage of the acquisition end C11 can be ensured to be more accurate, and the accuracy of the detection result of the sensor can be improved.
Of course, when the obtained voltage is smaller than the first preset voltage, if the output state of the first control terminal K1 is a low level, the current effective voltage dividing resistor of the control circuit only includes the first resistor R1, and the output state of the first control terminal K1 does not need to be adjusted.
And the second acquiring module 30 is configured to acquire the voltage of the current collecting terminal C11, so as to obtain the detection result of the sensor according to the voltage of the current collecting terminal C11 port.
In this embodiment, after the output state of the first control terminal K1 is adjusted to a low level, the second resistor R2 is short-circuited by the first control terminal K1, and the current effective voltage-dividing resistor in the control circuit only includes the first resistor R1, that is, only the first resistor R1 with a smaller resistance value is used for voltage division, so that the influence of the resistance value of the control circuit on the voltage of the acquisition terminal C11 can be reduced, therefore, the detection result of the sensor obtained according to the current voltage of the acquisition terminal C11 is more accurate, specifically, the detection result of the sensor and the voltage of the acquisition terminal C11 have a one-to-one mapping relationship, and when the voltage of the acquisition terminal C11 is obtained, the detection result of the sensor can be directly obtained according to a table lookup or the like of the mapping relationship between the detection result and the voltage of the acquisition terminal C11.
The detection control method of the sensor in the present embodiment may control the above-described flow by the first control terminal K1, or may control the above-described flow by another processor.
In practical applications, the sensor may be a temperature sensor, a pressure sensor, a distance sensor, etc., wherein the resistance of the first resistor R1 may be 8.06K Ω, the resistance of the second resistor R2 may be 100K Ω, the resistance of the third resistor R3 may be 2K Ω, the first capacitor C1 is 104 capacitors, and the second capacitor E1 is a capacitor with a forward withstand voltage of 47 μ f of 16V.
In the detection control device of the sensor provided in this embodiment, the first obtaining module 10 obtains the voltage of the collecting terminal C11 and the current output state of the first control terminal K1, then when the obtained voltage is smaller than the first preset voltage and the output state of the first control terminal K1 is the high impedance state, the first adjusting module 20 adjusts the output state of the first control terminal K1 port to the low level, then the second obtaining module 30 obtains the current voltage of the collecting terminal C11, and obtains the detection result of the sensor according to the current voltage of the collecting terminal C11 port, further when the voltage of the collecting terminal C11 is smaller than the first preset voltage, the output state of the first control terminal K1 is adjusted to the low level, so that the effective voltage dividing resistor in the control circuit only has the first resistor R1 with a smaller resistance value, and further the influence of the resistance value of the control circuit on the voltage of the collecting terminal C11 can be reduced, and further the accuracy of the detection result of the sensor obtained by the voltage of the collecting terminal C11 port is improved, and the condition that the detection result of the sensor is inaccurate because whether the current detection circuit is open circuit or not can be distinguished can be avoided, and the accuracy and the efficiency of analog quantity detection of the sensor are improved.
A second embodiment of the detection control device of the sensor of the present invention is proposed based on the first embodiment, and referring to fig. 8, in the present embodiment, the detection control device of the sensor further includes:
the second adjusting module 40 is configured to adjust the output state of the first control end K1 to a high impedance state when the obtained voltage is greater than a second preset voltage and the output state of the first control end K1 is a low level, where the second preset voltage is greater than the first preset voltage;
the second preset voltage is greater than the first preset voltage, and the range of the second preset voltage is 0-the power supply voltage of the sensor.
In this embodiment, when the voltage of the acquisition terminal C11 and the current output state of the first control terminal K1 are acquired, it is determined whether the acquired voltage is greater than the second preset voltage, when the acquired voltage is greater than the second preset voltage, it is determined whether the output state of the first control terminal K1 is a low level again, when the output state of the first control terminal K1 is a low level, the output state of the port of the first control terminal K1 is adjusted to a high resistance state, after the output state of the first control terminal K1 is adjusted to a high resistance state, the first control terminal K1 is in a failure state in the control circuit, so that the current effective voltage dividing resistor in the control circuit includes a first resistor R1 and a second resistor R2, that is, that the current voltage dividing resistance value in the control circuit is the sum of the resistance value of the first resistor R1 and the resistance value of the second resistor R2, and the voltage of the acquisition terminal C11 can be ensured to be more accurate, the accuracy of the detection result of the sensor is improved.
And the third acquiring module 50 is configured to acquire the voltage of the current collecting terminal C11, so as to obtain the detection result of the sensor according to the voltage of the current collecting terminal C11 port.
In this embodiment, after the output state of the first control terminal K1 is adjusted to a high-impedance state, the first control terminal K1 is in a failure state in the control circuit, and further the current effective voltage dividing resistor in the control circuit includes the first resistor R1 and the second resistor R2, that is, the current voltage dividing resistance value in the control circuit is the sum of the resistance value of the first resistor R1 and the resistance value of the second resistor R2, and the voltage of the acquisition terminal C11 is more accurate by increasing the resistance value of the voltage dividing resistor in the control circuit, specifically, the detection result of the sensor and the voltage of the acquisition terminal C11 have a one-to-one mapping relationship, and when the voltage of the acquisition terminal C11 is obtained, the detection result of the sensor can be obtained directly by looking up a table or the like according to the mapping relationship between the detection result and the voltage of the acquisition terminal C11.
The detection control method of the sensor in the present embodiment may control the above-described flow by the first control terminal K1, or may control the above-described flow by another processor.
It should be emphasized that, if the acquired voltage is greater than the first preset voltage and less than or equal to the second preset voltage, the detection result of the sensor can be directly obtained according to the acquired voltage, and the output state of the first control terminal K1 does not need to be adjusted.
In the detection control device of the sensor provided in this embodiment, when the obtained voltage is greater than the second preset voltage and the output state of the first control terminal K1 is at a low level, the second adjusting module 40 adjusts the output state of the port K1 of the first control terminal to a high resistance state, and then the third obtaining module 50 obtains the voltage of the current collecting terminal C11, so as to obtain the detection result of the sensor according to the voltage of the port C11 of the current collecting terminal, so that when the voltage of the collecting terminal C11 is at the second preset voltage, the output state of the port K1 of the first control terminal is ensured to be at a high resistance state, even if the first control terminal K1 is in a failure state in the control circuit, so that the current effective voltage dividing resistor in the control circuit includes the first resistor R1 and the second resistor R2, that the current voltage dividing resistance value in the control circuit is the sum of the resistance value of the first resistor R1 and the second resistor R2, the resistance value of the voltage dividing resistor in the control circuit can be increased, the voltage of the collecting end C11 is more accurate.
A third embodiment of the detection control device of the sensor according to the present invention is proposed based on the second embodiment, and referring to fig. 5 and 9, in this embodiment, the series circuit further includes a fourth resistor R4.
The fourth resistor R4 is connected with the second resistor R2 in series and then grounded; the node of the connection point of the fourth resistor R4 and the second resistor R2 is connected to the second control terminal K2, wherein the state of the second control terminal K2 includes a high impedance state and a low level.
The second adjustment module 40 includes:
an obtaining unit 41, configured to obtain an output state of the second control terminal K2;
in this embodiment, when the voltage of the acquisition terminal C11 and the current output state of the first control terminal K1 are obtained, the output state of the second control terminal K2 is obtained, where the output state of the second control terminal K2 includes a high resistance state and a low level state, when the output state of the second control terminal K2 is the high resistance state, the second control terminal K2 is equivalent to an infinite resistor, so that the second control terminal K2 fails, if the output state of the first control terminal K1 is also the high resistance state, effective voltage dividing resistors in voltage dividing resistors of the control circuit are the first resistor R1, the second resistor R2 and the fourth resistor R4, and if the output state of the first control terminal K1 is the low level, the effective voltage dividing resistors in the voltage dividing resistors of the control circuit are only the first resistor R1; when the output state of the second control terminal K2 is low, it is equivalent to the second resistor R2 being grounded, and the fourth resistor R4 being short-circuited, and if the output state of the first control terminal K1 is also high-impedance, the effective voltage-dividing resistors in the voltage-dividing resistors of the control circuit are the first resistor R1 and the second resistor R2, and if the output state of the first control terminal K1 is low, the effective voltage-dividing resistors in the voltage-dividing resistors of the control circuit are only the first resistor R1.
The adjusting unit 42 is configured to adjust an output state of the first control terminal K1 and/or an output state of the second control terminal K2 when the obtained voltage is greater than the second preset voltage, so that the output state of the first control terminal K1 and the output state of the second control terminal K2 are both in a high impedance state.
Specifically, the adjusting unit 42 is configured to adjust the output state of the first control end K1 port and the output state of the second control end K2 to a high impedance state when the obtained voltage is greater than the second preset voltage, the output state of the first control end K1 is a low level, and the output state of the second control end K2 is a low level; or when the acquired voltage is greater than the second preset voltage, the output state of the first control end K1 is low level, and the output state of the second control end K2 is high impedance, adjusting the output state of the first control end K1 port to a high impedance state; or when the acquired voltage is greater than the second preset voltage, the output state of the first control terminal K1 is in a high-resistance state, and the output state of the second control terminal K2 is in a low level, the output state of the second control terminal K2 is adjusted to be in a high-resistance state.
In this embodiment, when the voltage of the acquisition terminal C11, the output state of the first control terminal K1, and the output state of the second control terminal K2 are acquired, it is determined whether the acquired voltage is greater than a second preset voltage, when the acquired voltage is greater than the second preset voltage, if the output state of the first control terminal K1 is a low level, the output state of the port of the first control terminal K1 is adjusted to a high-resistance state, and if the output state of the port of the second control terminal K2 is a low level, the output state of the port of the second control terminal K2 is adjusted to a high-resistance state, so that the output state of the port of the first control terminal K1 and the output state of the port of the second control terminal K2 are both high-resistance states, so that the first control terminal K1 and the second control terminal K2 are both in a failure state in the control circuit, and further, the current effective voltage dividing resistors in the control circuit include a first resistor R1, a second resistor R2, and a fourth resistor R4, that is, the current resistance value for voltage division in the control circuit is the sum of the first resistor R1, the second resistor R2 and the fourth resistor R4, so that the voltage of the collecting end C11 can be ensured to be more accurate, and the accuracy of the detection result of the sensor is improved.
The detection control device of the sensor proposed in the present embodiment, acquires the output state of the second control terminal K2 through the acquisition unit 41, then, when the obtained voltage is greater than the second preset voltage, the adjusting unit 42 adjusts the output state of the first control terminal K1 and/or the output state of the second control terminal K2, so that the output state of the first control terminal K1 and the output state of the second control terminal K2 are both high impedance states, so that the first control terminal K1 and the second control terminal K2 are both in a failure state in the control circuit, therefore, the current effective voltage-dividing resistor in the control circuit comprises a first resistor R1, a second resistor R2 and a fourth resistor R4, namely, the resistance value for voltage division in the present control circuit is the sum of the first resistor R1 and the second resistor R2 and the fourth resistor R4, and further, the voltage of the acquisition end C11 can be ensured to be more accurate, and the accuracy of the detection result of the sensor is improved.
A fourth embodiment of the detection control device of the sensor of the present invention is proposed based on the third embodiment, and referring to fig. 10, in the present embodiment, the adjustment unit 42 includes:
a determining subunit 421, configured to determine whether the obtained voltage is less than or equal to a third preset voltage when the obtained voltage is greater than a second preset voltage, where the third preset voltage is greater than the second preset voltage;
in this embodiment, in order to make the detection result of the sensor more accurate, when the obtained voltage is greater than the second preset voltage, it may be determined whether the obtained voltage is less than or equal to a third preset voltage, so as to select different voltage dividing resistors according to different voltage ranges.
The first adjusting subunit 422 is configured to adjust the output state of the first control terminal K1 and/or the output state of the second control terminal K2 when the obtained voltage is greater than the third preset voltage, so that the output state of the first control terminal K1 and the output state of the second control terminal K2 are both in a high impedance state.
In this embodiment, when the obtained voltage is greater than the third preset voltage, the output state of the first control terminal K1 and/or the output state of the second control terminal K2 are/is adjusted to make the output state of the first control terminal K1 and the output state of the second control terminal K2 both be a high impedance state, specifically, if the output state of the first control terminal K1 is a low level and the output state of the second control terminal K2 is a low level, the output state of the first control terminal K1 and the output state of the second control terminal K2 are both adjusted to be a high impedance state; if the output state of the first control terminal K1 is low and the output state of the second control terminal K2 is high, the output state of the first control terminal K1 port is adjusted to a high resistance state; if the output state of the first control terminal K1 is in a high impedance state and the output state of the second control terminal K2 is in a low level, the output state of the second control terminal K2 is adjusted to a high impedance state. Of course, if the output state of the first control terminal K1 and the output state of the second control terminal K2 are both high impedance states, no adjustment is required.
In this embodiment, when the obtained voltage is greater than the third preset voltage, if the output state of the first control terminal K1 is low, the output state of the first control terminal K1 port is adjusted to a high-resistance state, and if the output state of the second control terminal K2 is low, the output state of the second control terminal K2 port is adjusted to a high-resistance state, so that the output state of the first control terminal K1 port and the output state of the second control terminal K2 port are both high-resistance states, so that the first control terminal K1 and the second control terminal K2 are both in a failure state in the control circuit, and further the current effective voltage dividing resistor in the control circuit includes the first resistor R1, the second resistor R2 and the fourth resistor R4, that is, that the current resistance value of the current voltage dividing in the control circuit is the sum of the first resistor R1, the second resistor R2 and the fourth resistor R4, and further the voltage of the collecting terminal C11 can be ensured to be more accurate, the accuracy of the detection result of the sensor is improved.
Further, in an embodiment, the adjusting unit 42 further includes:
and the second adjusting subunit is configured to adjust the output state of the first control terminal K1 and/or the output state of the second control terminal K2 when the obtained voltage is less than or equal to a third preset voltage, so that the output state of the first control terminal K1 is a high impedance state and the output state of the second control terminal K2 is a low level.
Specifically, if the output state of the first control terminal K1 is low and the output state of the second control terminal K2 is low, the output state of the first control terminal K1 port is adjusted to a high impedance state; if the output state of the first control terminal K1 is at low level and the output state of the second control terminal K2 is at high impedance state, adjusting the output state of the first control terminal K1 port to high impedance state, and adjusting the output state of the second control terminal K2 port to low level; if the output state of the first control terminal K1 is in a high impedance state and the output state of the second control terminal K2 is in a high impedance state, the output state of the second control terminal K2 is adjusted to a low level. Of course, if the output state of the first control terminal K1 is in a high impedance state and the output state of the second control terminal K2 is in a low level, no adjustment is required.
In this embodiment, when the obtained voltage is less than or equal to the third preset voltage and greater than the second preset voltage, the output state of the port K1 is in a high-impedance state and the output state of the port K2 is in a low level, so that the fourth resistor R4 in the control circuit is in a short-circuit state, and then the current effective voltage-dividing resistor in the control circuit includes the first resistor R1 and the second resistor R2, that is, the current voltage-dividing resistance value in the control circuit is the sum of the resistance value of the first resistor R1 and the resistance value of the second resistor R2, different voltage-dividing resistors can be selected according to the obtained voltage, and the voltage of the collecting terminal C11 is more accurate.
Furthermore, a plurality of resistors and control ends can be added in the control circuit again, and the control circuit is provided with a plurality of divider resistors and control ends, so that the corresponding divider resistors can be selected according to the range to which the voltage of the acquisition end C11 belongs, and the accuracy of analog quantity detection of the sensor is further improved.
In the detection control device of the sensor provided in this embodiment, when the obtained voltage is greater than the second preset voltage, the determining subunit 421 determines whether the obtained voltage is less than or equal to a third preset voltage, and then when the obtained voltage is greater than the third preset voltage, the first adjusting subunit 422 adjusts the output state of the first control terminal K1 and/or the output state of the second control terminal K2, so that the output state of the first control terminal K1 and the output state of the second control terminal K2 are both in a high-resistance state, so that the output state of the first control terminal K1 and the output state of the second control terminal K2 are both in a high-resistance state, so that the first control terminal K1 and the second control terminal K2 are both in a failure state in the control circuit, and the current effective voltage dividing resistors in the control circuit include a first resistor R1, a second resistor R2 and a fourth resistor R4, that is a resistance value of the current voltage dividing in the control circuit is the first resistor R1, the second resistor R2 and the fourth resistor R4 The sum of R4 can further ensure that the voltage of the collecting end C11 is more accurate, and the accuracy of the detection result of the sensor is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. The detection control method of the sensor is characterized by comprising a control circuit connected with the sensor, wherein the control circuit comprises a voltage division module and a first control end and is provided with a collection end; the voltage division module comprises a first capacitor, a second capacitor and a series circuit formed by sequentially connecting a second resistor, a first resistor and a third resistor in series; the series circuit is connected with the second capacitor in parallel, and the second resistor is grounded; one end of the first capacitor is connected with a node at the joint of the first resistor and the third resistor, and the other end of the first capacitor is grounded; the sensor is connected with a node at the joint of the first resistor and the third resistor; a node at the joint of the first resistor and the second resistor is connected with the first control end; a node at the connection position of the third resistor and the second capacitor is a collecting end; the state of the first control end comprises a high-impedance state and a low level, the first resistor is smaller than the second resistor, the resistance value of the first resistor is 8.06 Komega, and the resistance value of the second resistor is 100 Komega;
the detection control method of the sensor comprises the following steps:
acquiring the voltage of an acquisition end and the current output state of the first control end;
when the acquired voltage is smaller than a first preset voltage and the output state of the first control end is a high-impedance state, adjusting the output state of the first control end to a low level;
and acquiring the current voltage of the acquisition end to obtain the detection result of the sensor according to the current voltage of the acquisition end.
2. The detection control method of the sensor according to claim 1, wherein after the step of acquiring the voltage of the acquisition terminal and the current output state of the first control terminal, the detection control method of the sensor further comprises:
when the acquired voltage is greater than a second preset voltage and the output state of the first control end is a low level, adjusting the output state of the first control end to a high-resistance state, wherein the second preset voltage is greater than the first preset voltage;
and acquiring the current voltage of the acquisition end to obtain the detection result of the sensor according to the current voltage of the acquisition end.
3. The detection control method of a sensor according to claim 2, wherein the series circuit further includes a fourth resistor connected in series with the second resistor and then grounded; a node at the connection position of the fourth resistor and the second resistor is connected with a second control end, wherein the state of the second control end comprises a high-impedance state and a low level;
when the acquired voltage is greater than a second preset voltage and the output state of the first control end is a low level, the step of adjusting the output state of the first control end to a high impedance state comprises the following steps:
acquiring the output state of the second control end;
and when the acquired voltage is greater than a second preset voltage, adjusting the output state of the first control end and/or the output state of the second control end so as to enable the output state of the first control end and the output state of the second control end to be high-impedance states.
4. The method as claimed in claim 3, wherein the step of adjusting the output state of the first control terminal and/or the output state of the second control terminal when the obtained voltage is greater than a second preset voltage so that the output states of the first control terminal and the second control terminal are both in a high impedance state comprises:
when the acquired voltage is greater than a second preset voltage, determining whether the acquired voltage is less than or equal to a third preset voltage, wherein the third preset voltage is greater than the second preset voltage;
and when the acquired voltage is greater than a third preset voltage, adjusting the output state of the first control end and/or the output state of the second control end so that the output state of the first control end and the output state of the second control end are both in a high-impedance state.
5. The detection control method of a sensor according to claim 4, wherein the step of determining whether the acquired voltage is less than or equal to a third preset voltage further comprises:
when the acquired voltage is less than or equal to a third preset voltage, adjusting the output state of the first control end and/or the output state of the second control end so that the output state of the first control end is a high-impedance state and the output state of the second control end is a low level.
6. The detection control device of the sensor is characterized by comprising a control circuit connected with the sensor, wherein the control circuit comprises a voltage division module and a first control end and is provided with a collection end; the voltage division module comprises a first capacitor, a second capacitor and a series circuit formed by sequentially connecting a second resistor, a first resistor and a third resistor in series; the series circuit is connected with the second capacitor in parallel, and the second resistor is grounded; one end of the first capacitor is connected with a node at the joint of the first resistor and the third resistor, and the other end of the first capacitor is grounded; the sensor is connected with a node at the joint of the first resistor and the third resistor; a node at the joint of the first resistor and the second resistor is connected with the first control end; a node at the connection position of the third resistor and the second capacitor is a collecting end; the state of the first control end comprises a high-impedance state and a low level, the first resistor is smaller than the second resistor, the resistance value of the first resistor is 8.06 Komega, and the resistance value of the second resistor is 100 Komega;
the detection control device of the sensor comprises:
the first acquisition module is used for acquiring the voltage of an acquisition end and the current output state of the first control end;
the first adjusting module is used for adjusting the output state of the first control end to a low level when the acquired voltage is smaller than a first preset voltage and the output state of the first control end is a high impedance state;
and the second acquisition module is used for acquiring the current voltage of the acquisition end so as to obtain the detection result of the sensor according to the current voltage of the acquisition end.
7. The sensor detection control apparatus according to claim 6, further comprising:
the second adjusting module is used for adjusting the output state of the first control end to a high-resistance state when the obtained voltage is greater than a second preset voltage and the output state of the first control end is a low level, wherein the second preset voltage is greater than the first preset voltage;
and the third acquisition module is used for acquiring the current voltage of the acquisition end so as to obtain the detection result of the sensor according to the current voltage of the acquisition end.
8. The sensor detection control device of claim 7, wherein the series circuit further comprises a fourth resistor, the fourth resistor being connected in series with the second resistor and then connected to ground; a node at the connection position of the fourth resistor and the second resistor is connected with a second control end, wherein the state of the second control end comprises a high-impedance state and a low level; the second adjustment module includes:
the acquisition unit is used for acquiring the output state of the second control end;
and the adjusting unit is used for adjusting the output state of the first control end and/or the output state of the second control end when the acquired voltage is greater than a second preset voltage, so that the output state of the first control end and the output state of the second control end are both in a high impedance state.
9. The detection control device of a sensor according to claim 8, wherein the adjusting unit includes:
the determining subunit is configured to determine whether the acquired voltage is less than or equal to a third preset voltage when the acquired voltage is greater than a second preset voltage, where the third preset voltage is greater than the second preset voltage;
and the first adjusting subunit is configured to adjust the output state of the first control end and/or the output state of the second control end when the acquired voltage is greater than a third preset voltage, so that the output state of the first control end and the output state of the second control end are both in a high impedance state.
10. The detection control device of a sensor according to claim 9, wherein the adjusting unit further includes:
and the second adjusting subunit is configured to adjust the output state of the first control end and/or the output state of the second control end when the obtained voltage is less than or equal to a third preset voltage, so that the output state of the first control end is a high impedance state and the output state of the second control end is a low level.
CN201710273663.4A 2017-04-24 2017-04-24 Detection control method and device of sensor Active CN107084749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710273663.4A CN107084749B (en) 2017-04-24 2017-04-24 Detection control method and device of sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710273663.4A CN107084749B (en) 2017-04-24 2017-04-24 Detection control method and device of sensor

Publications (2)

Publication Number Publication Date
CN107084749A CN107084749A (en) 2017-08-22
CN107084749B true CN107084749B (en) 2020-08-04

Family

ID=59613037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710273663.4A Active CN107084749B (en) 2017-04-24 2017-04-24 Detection control method and device of sensor

Country Status (1)

Country Link
CN (1) CN107084749B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6900912B2 (en) * 2018-01-18 2021-07-07 トヨタ自動車株式会社 Vehicle control device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4401949C1 (en) * 1994-01-24 1995-03-23 Pierburg Gmbh Device for the multiplicative correction of an electric measurement signal
CN102507034A (en) * 2011-10-18 2012-06-20 广东美的电器股份有限公司 Temperature sampling circuit and method of air conditioner
CN102901864A (en) * 2012-10-11 2013-01-30 阳光电源股份有限公司 Voltage detecting device
CN203489891U (en) * 2013-07-02 2014-03-19 大陆汽车电子(芜湖)有限公司 Signal detecting device
CN104266672A (en) * 2014-09-26 2015-01-07 深圳市伊爱高新技术开发有限公司 Direct-current two-wire type proximity sensor fault detection circuit
CN205643576U (en) * 2016-05-25 2016-10-12 威海新北洋技术服务有限公司 Detection apparatus for photoelectric sensor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4401949C1 (en) * 1994-01-24 1995-03-23 Pierburg Gmbh Device for the multiplicative correction of an electric measurement signal
CN102507034A (en) * 2011-10-18 2012-06-20 广东美的电器股份有限公司 Temperature sampling circuit and method of air conditioner
CN102901864A (en) * 2012-10-11 2013-01-30 阳光电源股份有限公司 Voltage detecting device
CN203489891U (en) * 2013-07-02 2014-03-19 大陆汽车电子(芜湖)有限公司 Signal detecting device
CN104266672A (en) * 2014-09-26 2015-01-07 深圳市伊爱高新技术开发有限公司 Direct-current two-wire type proximity sensor fault detection circuit
CN205643576U (en) * 2016-05-25 2016-10-12 威海新北洋技术服务有限公司 Detection apparatus for photoelectric sensor

Also Published As

Publication number Publication date
CN107084749A (en) 2017-08-22

Similar Documents

Publication Publication Date Title
CN105424966B (en) Engine rotating speed measuring circuit and method
CN107576346B (en) Sensor detection method and device and computer readable storage medium
CN107084749B (en) Detection control method and device of sensor
US9110118B2 (en) Proximity sensor with health monitoring
CN111060734A (en) High-side current detection device and system
CN104236009A (en) Conditioner signal acquisition compensating device and method
CN110350485B (en) Current protection module, system and method
CN103884383A (en) Temperature measurement and identification circuit of built-in battery, battery, detecting device and detecting method
US8319600B2 (en) Monitoring system and input device thereof
CN110907797A (en) Method and apparatus for circuit detection
CN211785744U (en) High-side current detection device and system
CN106706993B (en) Optocoupler current detection circuit
CN106959123B (en) The detection control method and device of sensor
CN112432721A (en) Pressure sensor fault detection circuit and method and pressure sensor
CN210639251U (en) Low-cost motor current acquisition circuit
CN218496289U (en) Temperature module verification circuit
CN212159976U (en) Control circuit for cable detection
CN110836739A (en) Film pressure sensor capable of linearly outputting analog signals and implementation method thereof
CN209372241U (en) Temperature detection control circuit and temperature-detecting device
CN215177859U (en) Temperature and pressure sensor fault diagnosis circuit, device and system
CN109238495A (en) Temperature sensing circuit and temperature checking method
CN111071046B (en) High-low voltage detection circuit
CN220775376U (en) Overvoltage protection circuit for collecting analog quantity
CN115902372B (en) Direct-current voltage measurement method and device, electronic equipment and storage medium
CN218584216U (en) Positioning detection system of temperature measurement array

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
GR01 Patent grant
GR01 Patent grant