Sensor adaptation circuit, sensor information acquisition circuit and method

By designing a controllable sensor adaptation circuit, the problem of mismatch between the sensor and the system interface is solved, and flexible adaptation and comprehensive monitoring of multiple sensors are achieved.

CN119826877AActive Publication Date: 2025-04-15SRNE SOLAR CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411847371.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-15
Estimated Expiration
2044-12-12

AI Technical Summary

Technical Problem

The types of sensors in the prior art do not match the types of interfaces and circuits reserved in the system, resulting in the inability to fully monitor multiple temperature or liquid level parameters.

Method used

A sensor adaptation circuit is designed, including multiple adaptation units, each adaptation unit consisting of a control unit and a voltage divider resistor, which can be in an on- or off state under the control of the control chip and adapted to different types of sensors.

Benefits of technology

It realizes the flexibility of sensor adaptation circuits, can adapt to different types of sensors, meet different needs of practical applications, and ensures that parameters can be fully monitored.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119826877A_ABST
    Figure CN119826877A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of circuit design, in particular to a sensor adaptation circuit and a sensor information acquisition circuit and method. The sensor adaptation circuit comprises a first adaptation unit which comprises a first control unit and a first divider resistor, one end of the first divider resistor is connected with one end of the first control unit, and the other end of the first divider resistor is connected with a second output port; the second adaptation unit comprises a second control unit and a second divider resistor, one end of the second divider resistor is connected with one end of the second control unit, and the other end of the second divider resistor is connected with the second output port; the third adaptation unit comprises a third control unit and a third divider resistor, one end of the third divider resistor is connected with one end of the third control unit, and the other end of the third divider resistor is connected with the second output port; wherein the first control unit, the second control unit and the third control unit can be in an on or off state under the control of the control chip. According to the invention, matching connection with various types of sensors can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of circuit design, and in particular to a sensor adaptation circuit, a sensor information acquisition circuit and a method. Background Art

[0002] Many industrial and commercial application systems need to monitor the temperature and liquid level of multiple locations at the same time. The sensors for collecting temperature and liquid level are of different types, so different interfaces and circuits are required to connect the sensors and control chips.

[0003] When multiple temperatures or liquid levels need to be monitored simultaneously, multiple temperature sensors and liquid level sensors need to be used simultaneously, and there may be a problem that the sensor does not match the type of interface and circuit reserved in the system. Failure to meet the need to connect multiple liquid level sensors or temperature sensors simultaneously may result in the inability to fully monitor various parameters in the system. Summary of the invention

[0004] The technical problem to be solved by the embodiments of the present invention is to provide a sensor adaptation circuit, a sensor information acquisition circuit and a method to solve the problem in the prior art that the types of interfaces and circuits reserved between the sensor and the system do not match, resulting in the inability to fully monitor parameters.

[0005] The present invention discloses a sensor adapter circuit, wherein one end of the sensor adapter circuit is connected to the second output port of a three-channel transmission interface, the first output port of the three-channel transmission interface is connected to a first constant voltage power supply, the third output port is grounded, and at least two of the three input ports are used to connect a sensor;

[0006] The other end of the sensor adaptation circuit is connected to the control chip;

[0007] The sensor adaptation circuit comprises:

[0008] A first adapting unit comprises a first control unit and a first voltage-dividing resistor, wherein one end of the first voltage-dividing resistor is connected to one end of the first control unit, the other end is connected to the second output port, and the other end of the first control unit is connected to a second constant voltage power supply;

[0009] The second adapter unit comprises a second control unit and a second voltage-dividing resistor, wherein one end of the second voltage-dividing resistor is connected to one end of the second control unit, and the other end is connected to the second output port, and the other end of the first control unit is connected to a third constant voltage power supply;

[0010] A third adapting unit comprises a third control unit and a third voltage-dividing resistor, one end of the third voltage-dividing resistor is connected to one end of the third control unit, the other end of the third voltage-dividing resistor is connected to the second output port, and the other end of the first control unit is grounded;

[0011] The first control unit, the second control unit and the third control unit are connected to the control chip and can be in an on or off state under the control of the control chip.

[0012] Optionally, the first control unit, the second control unit and the third control unit all include switching tubes, and the G poles of the switching tubes of the first control unit, the second control unit and the third control unit are connected to the control chip as control terminals.

[0013] Optionally, the first control unit includes a first P-channel switch tube, an S pole of which is connected to the second constant voltage power supply, and a D pole of which is connected to the first voltage-dividing resistor;

[0014] The second control unit comprises a second P-channel switch tube, an S pole of which is connected to the third constant voltage power supply, and a D pole of which is connected to the second voltage-dividing resistor;

[0015] The third control unit is a third N-channel switch tube, an S pole of which is grounded, and a D pole is connected to the third voltage-dividing resistor.

[0016] Optionally, the sensor includes any one of a thermistor temperature sensor, a 2-wire resistance type liquid level sensor, and a 3-wire voltage type liquid level sensor;

[0017] When the sensor is a thermistor temperature sensor, the control chip drives the first control unit to turn on, the second control unit to turn off, and the third control unit to turn off;

[0018] When the sensor is a 2-wire resistance type liquid level sensor, the control chip drives the first control unit to turn off, the second control unit to turn on, and the third control unit to turn off;

[0019] When the sensor is a 3-wire voltage type liquid level sensor, the control chip drives the first control unit to be turned off, the second control unit to be turned off, and the third control unit to be turned on.

[0020] Optionally, the sensor adaptation circuit further includes a filtering unit, and the filtering unit is connected between the first control unit, the second control unit, the third control unit and the control chip;

[0021] The filtering unit comprises: a filtering resistor, a filtering capacitor and a fourth voltage-dividing resistor;

[0022] One end of the filter capacitor is grounded, and the other end is connected to the filter resistor;

[0023] One end of the fourth voltage-dividing resistor is connected to the other end of the filter resistor, and the other end of the fourth voltage-dividing resistor is connected to the other end of the first voltage-dividing resistor and the other end of the second voltage-dividing resistor.

[0024] Optionally, the filtering unit further includes:

[0025] A clamping diode, with an anode connected to the other end of the filter capacitor and a cathode connected to a fourth constant voltage power supply.

[0026] The present invention also discloses a sensor information acquisition circuit, comprising:

[0027] An interface unit, comprising at least one three-channel transmission interface, each of the three-channel transmission interface being used to connect to a sensor;

[0028] At least one sensor adaptation circuit as described above, connected one-to-one with the at least one three-channel transmission interface;

[0029] A control chip connected to at least one of the sensor adapter circuits; used to control the on and off of the first control unit, the second control unit and the third control unit in each of the sensor adapter circuits, and to receive the voltage signal transmitted by the sensor through the sensor adapter circuit, and to obtain corresponding sensing information according to the voltage signal.

[0030] Optionally, the sensor information acquisition circuit further includes:

[0031] The communication circuit is connected to the control chip and is used to realize information interaction between the sensor information acquisition circuit and the mobile terminal.

[0032] The present invention also discloses a sensor information acquisition method, which is applied to the sensor information acquisition circuit as described above. The sensor information acquisition method comprises the following steps:

[0033] Obtaining the type of sensor connected to each of the three-channel transmission interfaces;

[0034] Controlling the turning on and off of the first control unit, the second control unit, and the third control unit of the corresponding sensor adaptation circuit based on the sensor type;

[0035] A voltage signal provided by each sensor adaptation circuit is received, and sensing information of the corresponding sensor is acquired and fed back based on the voltage signal.

[0036] Optionally, the sensor includes any one of a thermistor temperature sensor, a 2-wire resistance type liquid level sensor, and a 3-wire voltage type liquid level sensor;

[0037] The step of controlling the turning on and off of the first control unit, the second control unit, and the third control unit of the corresponding sensor adaptation circuit based on the sensor type includes:

[0038] When the sensor is a thermistor temperature sensor, driving the first control unit to turn on, the second control unit to turn off, and the third control unit to turn off;

[0039] When the sensor is a 2-wire resistance type liquid level sensor, the first control unit is driven to be turned off, the second control unit is driven to be turned on, and the third control unit is driven to be turned off;

[0040] When the sensor is a 3-wire voltage type liquid level sensor, the first control unit is driven to be turned off, the second control unit is driven to be turned off, and the third control unit is driven to be turned on.

[0041] Compared with the prior art, the beneficial effect of the sensor adaptation circuit provided by the embodiment of the present invention is that: the sensor adaptation circuit includes a first adaptation unit including a first control unit and a first voltage-dividing resistor, a second adaptation unit including a second control unit and a second voltage-dividing resistor, and a third adaptation unit including a third control unit and a third voltage-dividing resistor. The first control unit, the second control unit and the third control unit can be in an on or off state under the control of the control chip. The control chip can select at least one of the first adaptation unit, the second adaptation unit and the third adaptation unit to be in an on state according to needs, so that the sensor adaptation circuit can adapt to different types of sensors, with better flexibility to meet the different needs of practical applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The scheme of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments, in which:

[0043] Figure 1 is a structural schematic diagram of an embodiment of a sensor adaptation circuit provided by the present invention;

[0044] Figure 2 is a circuit diagram of an embodiment of a sensor adaptation circuit provided by the present invention;

[0045] Figure 3 It is a structural schematic diagram of an embodiment of a sensor information acquisition circuit provided by the present invention;

[0046] Figure 4 It is a flow chart of an embodiment of the sensor information collection method provided by the present invention.

[0047] The reference numerals in the figures are:

[0048] 10. Sensor adaptation circuit; 11. First adaptation unit; 111. First control unit 111; 112. First voltage-dividing resistor; 12. Second adaptation unit; 121. Second control unit; 122. Second voltage-dividing resistor; 13. Third adaptation unit; 131. Third control unit; 132. Third voltage-dividing resistor; 14. Filter unit; 20. Three-channel transmission interface; 21. First output port; 22. Second output port; 23. Third output port; 24. First constant-voltage power supply; 25. Second constant-voltage power supply; 26. Third constant-voltage power supply; 27. Fourth constant-voltage power supply; 30. Control chip; 40. Sensor information acquisition circuit; 41. Interface unit. DETAILED DESCRIPTION

[0049] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. Now, in conjunction with the accompanying drawings, the preferred embodiments of the present invention are described in detail.

[0050] Please refer to Figure 1 and Figure 2 , Figure 1 1 is a schematic diagram of the structure of an embodiment of the sensor adaptation circuit 10 provided by the present invention. Figure 2 1 is a circuit diagram of an embodiment of the sensor adaptation circuit 10 provided by the present invention.

[0051] The three-channel transmission interface 20 has three input ports and three output ports, wherein the three input ports are used to connect sensors. The type of sensor includes any one of a 2-wire resistance type sensor and a 3-wire voltage type sensor. For example, a 2-wire resistance type liquid level sensor, a 3-wire voltage type liquid level sensor, and a 2-wire thermistor temperature sensor. The sensor is connected to at least two of the three input ports. Specifically, when the sensor type is a 2-wire resistance type liquid level sensor or a thermistor temperature sensor, the first input port and the third input port are connected respectively, and when the sensor type is a 3-wire voltage type liquid level sensor, the first input port, the second input port, and the third input port are connected.

[0052] The first output port 21 of the three output ports is connected to the first constant voltage power supply 24. The first constant voltage power supply 24 is used to provide power to the 3-wire voltage type sensor when the 3-wire voltage type sensor is connected to the three-channel transmission interface 20, so that the 3-wire voltage type sensor can operate normally and provide accurate voltage signals. The voltage of the first constant voltage power supply 24 is 12 V. The third output port 23 is grounded to provide safety and stability for the entire system.

[0053] The sensor adaptation circuit 10 is connected to the second output port 22 of the three-channel transmission interface 20, and the other end of the sensor adaptation circuit 10 is connected to the control chip 30, specifically including a first adaptation unit 11, a second adaptation unit 12 and a third adaptation unit 13. The first adaptation unit 11, the second adaptation unit 12 and the third adaptation unit 13 can be connected or disconnected with the second output port 22. In this way, a matching adaptation unit can be selected according to the type of sensor connected to the three-channel transmission interface 20 to connect to the second output port 22, thereby successfully transmitting the sensor information to the control chip 30.

[0054] The first adapter unit 11 includes a first control unit 111 and a first voltage-dividing resistor 112, one end of the first voltage-dividing resistor 112 is connected to one end of the first control unit 111, and the other end is connected to the second output port 22, and the other end of the first control unit 111 is connected to the second constant voltage power supply 25. The control end of the first control unit 111 is connected to the control chip 30, so that the control chip 30 can control the on and off of the first control unit 111. When the first control unit 111 is turned off, the first adapter unit 11 is disconnected from the second output port 22, and when the first control unit 111 is turned on, the first adapter unit 11 is connected to the second output port 22. The first adapter unit 11 can be equivalent to one end of the first voltage-dividing resistor 112 connected to the second constant voltage power supply 25, and the other end connected to the second output port 22.

[0055] The second adapter unit 12 includes a second control unit 121 and a second voltage-dividing resistor 122, one end of the second voltage-dividing resistor 122 is connected to one end of the second control unit 121, and the other end is connected to the second output port 22, and the other end of the first control unit 111 is connected to the third constant voltage power supply 26. The control end of the second control unit 121 is connected to the control chip 30, so that the control chip 30 can control the conduction and shutdown of the second control unit 121. When the second control unit 121 is turned off, the second adapter unit 12 is disconnected from the second output port 22, and when the second control unit 121 is turned on, the second adapter unit 12 is connected to the second output port 22. The second adapter unit 12 can be equivalent to one end of the second voltage-dividing resistor 122 connected to the third constant voltage power supply 26, and the other end connected to the second output port 22.

[0056] The third adapting unit 13 includes a third control unit 131 and a third voltage-dividing resistor 132, one end of the third voltage-dividing resistor 132 is connected to one end of the third control unit 131, and the other end is connected to the second output port 22, and the other end of the first control unit 111 is grounded; the control end of the third control unit 131 is connected to the control chip 30, so that the control chip 30 can control the on and off of the third control unit 131. When the third control unit 131 is turned off, the third adapting unit 13 is disconnected from the second output port 22, and when the third control unit 131 is turned on, the third adapting unit 13 is connected to the second output port 22. The third adapting unit 13 can be equivalent to one end of the third voltage-dividing resistor 132 being grounded and the other end being connected to the second output port 22.

[0057] Specifically, when the sensor is a thermistor temperature sensor, the control chip 30 controls the first control unit 111 to be in an on state, the second control unit 121 to be in an off state, and the third control unit 131 to be in an off state, so that only the first adapter unit 11 is connected to the second output port 22. The thermistor and the first voltage-dividing resistor 112 constitute a voltage-dividing circuit, and the voltage-dividing circuit divides the input voltage (second constant voltage power supply) into two parts according to the voltage-dividing principle, one part is applied to the thermistor in the sensor, and the other part is applied to the first voltage-dividing resistor 112. The control chip 30 can determine the resistance value of the thermistor by obtaining the resistance value divided on the thermistor, and then calculate the corresponding temperature.

[0058] When the sensor is a 2-wire resistive liquid level sensor, the control chip 30 controls the first control unit 111 to be in an off state, the second control unit 121 to be in an on state, and the third control unit 131 to be in an off state, so that only the second adapter unit 12 is connected to the second output port 22, and the resistance of the 2-wire resistive liquid level sensor and the voltage signal after the voltage division by the second voltage divider resistor 122 are transmitted to the control chip 30, so that the control chip 30 can obtain the current resistance value of the resistor according to the detected voltage signal, and can obtain the current liquid level information according to the corresponding relationship between the resistance value and the liquid level.

[0059] When the sensor is a 3-wire voltage type liquid level sensor, the control chip 30 controls the first control unit 111 to be in an off state, the second control unit 121 to be in an off state, and the third control unit 131 to be in an on state, so that only the third adapter unit 13 is connected to the second output port 22, and the output voltage of the 3-wire voltage type liquid level sensor is transmitted to the control chip 30 after being divided by the third voltage divider resistor 132, so that the control chip 30 can obtain the current output voltage according to the detected voltage signal, and can obtain the current liquid level information according to the corresponding relationship between the voltage value and the liquid level.

[0060] See also Figure 2The first control unit 111, the second control unit 121 and the third control unit 131 are all MOS (Metal-Oxide-Semiconductor Field-Effect Transistor) tubes, and the G pole of each MOS tube is connected to the control chip 30. By adjusting the voltage output to the G pole, the V of each MOS tube can be GS The preset turn-off or turn-on threshold is met, thereby controlling the turn-on and turn-off of each MOS tube.

[0061] Specifically, the first control unit 111 is a P-channel first switch tube Q1, whose S pole is connected to the second constant voltage power supply 25 (3.3V), and the D pole is connected to the first voltage divider resistor 112R4. When the first control unit 111 needs to be turned on, the control chip 30 controls the G pole voltage of the first switch tube Q1 to be a low voltage, and the gate voltage V GS When the first control unit 111 needs to be turned off, the control chip 30 controls the G pole voltage of the second switch tube Q2 to be a high voltage, and the gate voltage VGS is higher than the threshold voltage Vth, so that the first switch tube Q1 is turned off.

[0062] The second control unit 121 is a P-channel second switch tube Q2, whose S pole is connected to the third constant voltage power supply 26 (3.3V), and the D pole is connected to the second voltage-dividing resistor 122R3. When the second control unit 121 needs to be controlled to be turned on, the control chip 30 controls the G pole voltage of the second switch tube Q2 to be a low voltage, and the gate voltage VGS is lower than the threshold voltage Vth, so that the second switch tube Q2 is turned on. When the second control unit 121 needs to be controlled to be turned off, the control chip 30 controls the G pole voltage of the second switch tube Q2 to be a high voltage, and the gate voltage VGS is higher than the threshold voltage Vth, so that the second switch tube Q2 is turned off.

[0063] The third control unit 131 is an N-channel third switch tube Q3, whose S pole is grounded and D pole is connected to the third voltage-dividing resistor 132R7. When the third control unit 131 needs to be controlled to be turned on, the control chip 30 controls the G pole voltage of the third switch tube Q3 to be a high voltage, and the gate voltage VGS is higher than the threshold voltage Vth, so that the third switch tube Q3 is turned on. When the third control unit 131 needs to be controlled to be turned off, the control chip 30 controls the G pole voltage of the third switch tube Q3 to be a low voltage, and the gate voltage VGS is lower than the threshold voltage Vth, so that the third switch tube Q3 is turned off.

[0064] Furthermore, the first control unit 111 further includes a first gate-source resistor R1, which is connected to the G pole and the S pole of the first switch tube Q1; the second control unit 121 further includes a second gate-source resistor R2, which is connected to the G pole and the S pole of the second switch tube Q2; and the third control unit 131 further includes a third gate-source resistor R8, which is connected to the G pole and the S pole of the third switch tube Q3. Setting the first gate-source resistor R1, the second gate-source resistor R2, and the third gate-source resistor R8 can limit the current between the gate and the source to prevent excessive current, and can also help stabilize the working state of the circuit, prevent the circuit from unexpected oscillation or instability, and protect the first switch tube Q1, the second switch tube Q2, and the third switch tube Q3. In order to ensure that the first switch tube Q1, the second switch tube Q2, and the third switch tube Q3 can be reliably turned on and off, the first gate-source resistor R1, the second gate-source resistor R2, and the third gate-source resistor R8 are 10kΩ.

[0065] Please continue reading Figure 1 and Figure 2 The sensor adaptation circuit 10 also includes a filtering unit 14, which is connected between the first control unit 111, the second control unit 121, the third control unit 131 and the control chip 30, and is used to filter the voltage signal provided by the sensor, so that the control chip 30 can obtain more accurate sensing information based on a more stable voltage signal. The filtering unit includes a filter resistor R6, a filter capacitor C1 and a fourth voltage-dividing resistor R5, one end of the filter capacitor C1 is grounded, and the other end is connected to the filter resistor R6, one end of the fourth voltage-dividing resistor R5 is connected to the other end of the filter resistor R6, and the other end is connected to the other end of the first voltage-dividing resistor 112R4 and the other end of the second voltage-dividing resistor 122R3.

[0066] In one implementation scenario, the sensor is a thermistor temperature sensor, and the control chip 30MCU controls the G pole voltage of the first switch tube Q1 to a low level, the G pole voltage of the second switch tube Q2 to a high level, and the G pole voltage of the third switch tube Q3 to a low level, so that only the first switch tube Q1 is in the on state. The voltage of the second constant voltage power supply 25 (3.3V) is divided by the thermistor NTC and the first voltage divider resistor 112R4, and the voltage divided by the thermistor NTC is provided to the control chip 30MCU as a voltage signal. The voltage signal will be filtered by the fourth voltage divider resistor R5 and the filter resistor R6 connected in series, and filtered by the filter capacitor C1 before being transmitted to the control chip 30MUC. The control chip 30MUC can obtain the corresponding temperature according to the collected voltage signal.

[0067] Specifically, the relationship between the voltage divided by the thermistor NTC and the first voltage-dividing resistor 112R4 and the thermistor NTC is:

[0068] Vo=3.3*R ntc / (R4+Rntc )

[0069] Wherein, R4 is the resistance value of the first voltage dividing resistor 112R4, R ntc The control chip 30 can calculate the resistance of the thermistor NTC according to the collected voltage Vo and the predictable resistance of the first voltage divider resistor 112R4, and can find the temperature corresponding to the current resistance based on the known corresponding relationship between temperature and resistance.

[0070] Furthermore, the sensor is a temperature sensor with a negative temperature coefficient (NTC), and its resistance changes with temperature. Normally, the resistance of an NTC sensor decreases as the temperature increases. The resistance range of the temperature sensor is 216kΩ to 0.65kΩ, corresponding to a temperature range of -35°C to 100°C. In order to accurately detect the voltage change caused by the resistance change of the thermistor sensor within this temperature range, the resistance of the first voltage divider resistor 112R4 is 16kΩ. By appropriately selecting the resistance of the first voltage divider resistor 112R4, it can be ensured that the sensor adaptation circuit 10 can provide accurate output at different temperatures, thereby achieving accurate measurement and monitoring of temperature.

[0071] In another implementation scenario, the sensor is a 2-wire resistance type liquid level sensor, then the control chip 30MCU controls the G pole voltage of the first switch tube Q1 to a high level, the G pole voltage of the second switch tube Q2 to a low level, and the G pole voltage of the third switch tube Q3 to a low level, so that only the second switch tube Q2 is in the on state. The voltage of the third constant voltage power supply 26 (3.3V) is divided by the sensing resistor and the second voltage divider resistor 122R3, and the voltage divided by the sensing resistor is provided to the control chip 30MCU as a voltage signal. The voltage signal will be filtered by the fourth voltage divider resistor R5 and the filter resistor R6 connected in series, and filtered by the filter capacitor C1 before being transmitted to the control chip 30MUC. The control chip 30MUC can obtain the corresponding liquid level according to the collected voltage signal.

[0072] Specifically, the relationship between the voltage divided by the sensing resistor, the second voltage-dividing resistor 122R3 and the sensing resistor is:

[0073] Vo=3.3*R tank / (R3+R tank )

[0074] Wherein, R3 is the resistance value of the second voltage-dividing resistor 122R3, R tank The control chip 30 can calculate the resistance of the sensing resistor based on the collected voltage Vo and the predictable resistance of the second voltage-dividing resistor 122R3, and can find the liquid level corresponding to the current resistance based on the known correspondence between the liquid level and the resistance.

[0075] Furthermore, the sensor is a liquid level sensor, and its resistance changes with the change of the liquid level. The resistance of the liquid level sensor will increase with the increase of the liquid level. The resistance range of the liquid level sensor is 0Ω to 180Ω, and the corresponding liquid level range is 0% to 100%. In order to enable the voltage change generated by the change of the sensing resistance of the liquid level sensor within this liquid level range to be accurately detected, the resistance of the second voltage-dividing resistor 122R3 is 680Ω. By appropriately selecting the resistance of the second voltage-dividing resistor 122R3, it can be ensured that the sensor adapter circuit 10 can provide accurate output at different liquid levels, thereby achieving accurate measurement and monitoring of the liquid level.

[0076] In another implementation scenario, the sensor is a 3-wire voltage-type liquid level sensor, and the control chip 30MCU controls the G-pole voltage of the first switch tube Q1 to a high level, the G-pole voltage of the second switch tube Q2 to a high level, and the G-pole voltage of the third switch tube Q3 to a high level, so that only the third switch tube Q3 is in the on state. The signal processing circuit of the liquid level sensor works under the drive of the first constant voltage power supply 24 (12V), and the output liquid level voltage signal is divided by the third voltage-dividing resistor 132R7 and the fourth voltage-dividing resistor R5, and the voltage divided by the third voltage-dividing resistor 132R7 is provided to the control chip 30MCU as a voltage signal. The voltage signal will be filtered by the filter resistor R6 and filtered by the filter capacitor C1 and then transmitted to the control chip 30MUC. The control chip 30MUC can obtain the corresponding liquid level according to the collected voltage signal.

[0077] Specifically, the relationship between the voltage divided by the third voltage-dividing resistor 132R7 and the fourth voltage-dividing resistor R5 and the third voltage-dividing resistor 132R7 is:

[0078] Vo=V tank *R7 / (R5+R7)

[0079] Among them, V tank is the liquid level voltage signal output by the sensor, R7 is the resistance value of the third voltage-dividing resistor 132R7, and R5 is the resistance value of the fourth voltage-dividing resistor R5. The control chip 30 can calculate the liquid level voltage signal output by the sensor based on the collected voltage Vo, and the predictable resistance values ​​of the third voltage-dividing resistor 132R7 and the fourth voltage-dividing resistor R5, and based on the known corresponding relationship between voltage and resistance value, the liquid level corresponding to the current liquid level voltage signal can be found.

[0080] Further, the liquid level voltage signal range of the liquid level sensor is 0V to 5.0V, and the corresponding liquid level range is 0% to 100%. The resistance values ​​of the third voltage-dividing resistor 132R7 and the fourth voltage-dividing resistor R5 are both 47kΩ. The purpose of selecting the third voltage-dividing resistor 132R7 and the fourth voltage-dividing resistor R5 of 47kΩ is to ensure that the voltage change generated by the liquid level sensor can be accurately measured within the liquid level range of 0% to 100%, thereby improving the sampling accuracy. In addition, in order to prevent the liquid level voltage signal from exceeding the maximum input voltage (usually VDD) of the ADC sampling port of the MCU, a clamping diode D1 is set, whose positive pole is connected to the other end of the filter capacitor C1, and the negative pole is connected to the fourth constant voltage power supply 27 (3.3V). This ensures that the input signal does not exceed the operating range of the ADC and protects the MCU from damage.

[0081] It can be known from the above description that in this embodiment, the sensor adaptation circuit 10 includes a first adaptation unit 11 including a first control unit 111 and a first voltage-dividing resistor 112, a second adaptation unit 12 including a second control unit 121 and a second voltage-dividing resistor 122, and a third adaptation unit 13 including a third control unit 131 and a third voltage-dividing resistor 132. The first control unit 111, the second control unit 121 and the third control unit 131 can be in an on or off state under the control of the control chip 30. The control chip 30 can select at least one of the first adaptation unit 11, the second adaptation unit 12 and the third adaptation unit 13 to be in an on state according to needs, so that the sensor adaptation circuit 10 can adapt to different types of sensors with better flexibility to meet the different needs of practical applications.

[0082] See also Figure 3 , Figure 3 It is a structural diagram of an embodiment of the sensor information acquisition circuit provided by the present invention. The sensor information acquisition circuit 40 includes an interface unit 41, and the interface unit 41 includes at least one three-channel transmission interface 20 (CON1~CONN). Each three-channel transmission interface 20 can be connected to a sensor, and the sensor includes any one of a thermistor temperature sensor, a 2-wire resistance type liquid level sensor, and a 3-wire voltage type liquid level sensor. The sensor information acquisition circuit also includes at least one sensor adapter circuit 10, and at least one sensor adapter circuit 10 is connected to at least one three-channel transmission interface 20 in a one-to-one correspondence. At least one sensor adapter circuit 10 is the sensor adapter circuit 10 described above, and its connection method with the three-channel transmission interface 20 is also consistent with the description above, which will not be repeated here.

[0083] The control chip 30 is connected to at least one sensor adapter circuit 10, and can control the on and off of the first control unit 111, the second control unit 121, and the third control unit 131 in the sensor adapter circuit 10, and at the same time receive the voltage signal transmitted by each sensor through the sensor adapter circuit 10. The control chip 30 can calculate the sensing information of the corresponding sensor based on the received voltage signal. How the specific control chip 30 controls the on and off of the first control unit 111, the second control unit 121, and the third control unit 131, and how to calculate the sensing information of the corresponding sensor based on the received voltage signal, has been described in detail above, and will not be repeated here.

[0084] Furthermore, the sensor information acquisition circuit 40 also includes a communication circuit (not shown) for realizing information interaction between the sensor information acquisition circuit 40 and the mobile terminal. For example, after the control chip 30 obtains the sensor information, the sensor information can be fed back to the user through the communication circuit. Alternatively, the communication circuit can receive the query information input by the user, and the query information includes the relevant information of the sensor to be queried, and then the control chip 30 obtains the sensor information of the corresponding sensor and feeds it back to the user through the communication circuit.

[0085] In other implementation scenarios, the user can set the type of sensor connected to each sensor adapter circuit 10 on the mobile terminal, and transmit the set content to the control chip 30 through the communication circuit, so that the control chip 30 can control the conduction and shutdown of its first control unit 111, the second control unit 121 and the third control unit 131 according to the type of sensor connected to each sensor adapter circuit 10.

[0086] In other implementation scenarios, the user may directly set the type of sensor connected to each sensor adaptation circuit 10 in the control chip 30 when assembling the sensor information acquisition circuit 40 .

[0087] It can be seen from the above description that in this embodiment, the sensor information acquisition circuit matches the corresponding sensor by using at least one sensor adapter circuit. There is no need to perform separate wiring for different sensors, which reduces the complexity of wiring. At the same time, the sensor adapter circuit can be flexibly switched and controlled according to the type of sensor actually used, thereby reducing the manufacturing cost of the system.

[0088] Please refer to Figure 4 , Figure 4 1 is a flow chart of an embodiment of the sensor information acquisition method provided by the present invention. The sensor information acquisition method provided by the present invention is applied to the sensor information acquisition circuit 40 above, and specifically includes the following steps:

[0089] S101: Obtain the type of sensor connected to each three-channel transmission interface.

[0090] In a specific implementation scenario, the control chip obtains the type of sensor connected to each three-channel transmission interface, which can be set by the user directly inputting the specific type, or remotely set through a mobile terminal. In this implementation scenario, the sensor includes any one of a thermistor temperature sensor, a 2-wire resistance type liquid level sensor, and a 3-wire voltage type liquid level sensor. The thermistor temperature sensor and the 2-wire resistance type liquid level sensor are connected to the first input port and the third input port of the three-channel transmission interface, and the 3-wire voltage type liquid level sensor is connected to the first input end, the second input end, and the third input end of the three-channel transmission interface.

[0091] In other implementation scenarios, the sensor may also be other types of sensors, as long as the number of output pins of the sensor does not exceed three.

[0092] S102: Control the on and off of the first control unit, the second control unit, and the third control unit of the corresponding sensor adaptation circuit based on the sensor type.

[0093] In a specific implementation scenario, the first adapter unit, the second adapter unit, and the third adapter unit in the sensor adapter circuit correspond to the thermistor temperature sensor, the 2-wire resistance type liquid level sensor, and the 3-wire voltage type liquid level sensor, respectively. Each adapter unit is provided with a control unit that can be turned on and off. When the control unit is turned on, the adapter unit is connected to the sensor adapter circuit. When the control unit is turned off, the adapter unit is disconnected from the sensor adapter circuit. Therefore, after obtaining the sensor type, the control unit in the corresponding adapter unit is controlled to be turned on and off according to the sensor type, so that the corresponding control unit can be set for each sensor, so that the current sensor adapter circuit matches the current sensor.

[0094] Specifically, when the sensor is a thermistor temperature sensor, the first control unit is driven to turn on, the second control unit is turned off, and the third control unit is turned off; when the sensor is a 2-wire resistance type liquid level sensor, the first control unit is driven to turn off, the second control unit is driven to turn on, and the third control unit is turned off; when the sensor is a 3-wire voltage type liquid level sensor, the first control unit 111 is driven to turn off, the second control unit is turned off, and the third control unit is driven to turn on. The specific on / off control method has been described above and will not be repeated here.

[0095] S103: receiving a voltage signal provided by each sensor adaptation circuit, and acquiring and feeding back sensing information of the corresponding sensor based on the voltage signal.

[0096] In a specific implementation scenario, after the sensor adapter circuit is adjusted to a state matching the sensor type, the sensor can transmit a voltage signal through the sensor adapter circuit, and after the control chip receives the voltage signal, it can calculate the corresponding sensing information based on the voltage signal and the resistance value in the currently turned-on control unit. The specific calculation method has been described above and will not be repeated here.

[0097] It can be seen from the above description that in this embodiment, the sensor type connected to each three-channel transmission interface is obtained; the conduction and shutdown of the first control unit, the second control unit and the third control unit of the corresponding sensor adaptation circuit are controlled based on the sensor type, so that the adjusted sensor adaptation circuit can match the sensor type, and the voltage information provided by the sensor can be transmitted, thereby obtaining the corresponding sensing information. There is no need to set a corresponding line for each sensor. Through the flexible adjustment of the sensor type through a unified line, adaptation to multiple types of sensors can be achieved, reducing wiring difficulty and manufacturing cost.

[0098] The present invention also provides a smart RV. The smart RV includes a processor and a memory. The processor is coupled to the memory. The memory stores a computer program, and the processor executes the computer program when working to implement the above method. The detailed steps can be found above and will not be repeated here.

[0099] The present invention also provides a computer-readable storage medium. The computer-readable storage medium stores at least one computer program, which is used to be executed by a processor to implement the above method. The detailed steps can be referred to above and will not be repeated here. In one embodiment, the computer-readable storage medium can be a storage chip, a hard disk, or a mobile hard disk or a USB flash drive, an optical disk, or other readable and writable storage tools in a terminal, or a server, etc.

[0100] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0101] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0102] It should be understood that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. For those skilled in the art, the technical solutions described in the above embodiments can be modified, or some of the technical features therein can be replaced by equivalents; and all these modifications and replacements should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A sensor adapter circuit, characterized in that: One end of the sensor adaptation circuit is connected to the second output port of the three-channel transmission interface, the first output port of the three-channel transmission interface is connected to the first constant voltage power supply, the third output port is grounded, and at least two of the three input ports are used to connect to the sensor; The other end of the sensor adaptation circuit is connected to the control chip; The sensor adaptation circuit comprises: A first adapting unit comprises a first control unit and a first voltage-dividing resistor, wherein one end of the first voltage-dividing resistor is connected to one end of the first control unit, the other end is connected to the second output port, and the other end of the first control unit is connected to a second constant voltage power supply; The second adapter unit comprises a second control unit and a second voltage-dividing resistor, wherein one end of the second voltage-dividing resistor is connected to one end of the second control unit, and the other end is connected to the second output port, and the other end of the first control unit is connected to a third constant voltage power supply; A third adapting unit comprises a third control unit and a third voltage-dividing resistor, one end of the third voltage-dividing resistor is connected to one end of the third control unit, the other end of the third voltage-dividing resistor is connected to the second output port, and the other end of the first control unit is grounded; The first control unit, the second control unit and the third control unit are connected to the control chip and can be in an on or off state under the control of the control chip.

2. The sensor adapter circuit according to claim 1, characterized in that: The first control unit, the second control unit and the third control unit all include a switch tube, and the G poles of the switch tubes of the first control unit, the second control unit and the third control unit are connected to the control chip as control terminals.

3. The sensor adapter circuit according to claim 2, characterized in that: The first control unit comprises a first P-channel switch tube, an S-pole of which is connected to the second constant voltage power supply, and a D-pole of which is connected to the first voltage-dividing resistor; The second control unit comprises a second P-channel switch tube, an S pole of which is connected to the third constant voltage power supply, and a D pole of which is connected to the second voltage-dividing resistor; The third control unit is a third N-channel switch tube, an S pole of which is grounded, and a D pole is connected to the third voltage-dividing resistor.

4. The sensor adapter circuit according to claim 1, characterized in that: The sensor includes any one of a thermistor temperature sensor, a 2-wire resistance type liquid level sensor, and a 3-wire voltage type liquid level sensor; When the sensor is a thermistor temperature sensor, the control chip drives the first control unit to turn on, the second control unit to turn off, and the third control unit to turn off; When the sensor is a 2-wire resistance type liquid level sensor, the control chip drives the first control unit to turn off, the second control unit to turn on, and the third control unit to turn off; When the sensor is a 3-wire voltage type liquid level sensor, the control chip drives the first control unit to be turned off, the second control unit to be turned off, and the third control unit to be turned on.

5. The sensor adapter circuit according to any one of claims 1 to 4, characterized in that: The sensor adaptation circuit further includes a filtering unit, and the filtering unit is connected between the first control unit, the second control unit, the third control unit and the control chip; The filtering unit comprises: a filtering resistor, a filtering capacitor and a fourth voltage-dividing resistor; One end of the filter capacitor is grounded, and the other end is connected to the filter resistor; One end of the fourth voltage-dividing resistor is connected to the other end of the filter resistor, and the other end of the fourth voltage-dividing resistor is connected to the other end of the first voltage-dividing resistor and the other end of the second voltage-dividing resistor.

6. The sensor adapter circuit according to claim 5, characterized in that: The filtering unit also includes: A clamping diode, with an anode connected to the other end of the filter capacitor and a cathode connected to a fourth constant voltage power supply.

7. A sensor information acquisition circuit, characterized in that: include: An interface unit, comprising at least one three-channel transmission interface, each of the three-channel transmission interface being used to connect to a sensor; At least one sensor adapter circuit according to any one of claims 1 to 6, connected one-to-one with the at least one three-channel transmission interface; A control chip connected to at least one of the sensor adapter circuits; used to control the on and off of the first control unit, the second control unit and the third control unit in each of the sensor adapter circuits, and to receive the voltage signal transmitted by the sensor through the sensor adapter circuit, and to obtain corresponding sensing information according to the voltage signal.

8. The sensor information acquisition circuit according to claim 7, characterized in that: The sensor information acquisition circuit also includes: The communication circuit is connected to the control chip and is used to realize information interaction between the sensor information acquisition circuit and the mobile terminal.

9. A sensor information collection method, characterized in that: Applied to the sensor information acquisition circuit of claim 7, the sensor information acquisition method comprises the following steps: Obtaining the type of sensor connected to each of the three-channel transmission interfaces; Controlling the turning on and off of the first control unit, the second control unit, and the third control unit of the corresponding sensor adaptation circuit based on the sensor type; A voltage signal provided by each sensor adaptation circuit is received, and sensing information of the corresponding sensor is acquired and fed back based on the voltage signal.

10. The sensor information collection method according to claim 9, characterized in that: The sensor includes any one of a thermistor temperature sensor, a 2-wire resistance type liquid level sensor, and a 3-wire voltage type liquid level sensor; The step of controlling the turning on and off of the first control unit, the second control unit, and the third control unit of the corresponding sensor adaptation circuit based on the sensor type includes: When the sensor is a thermistor temperature sensor, driving the first control unit to turn on, the second control unit to turn off, and the third control unit to turn off; When the sensor is a 2-wire resistance type liquid level sensor, the first control unit is driven to be turned off, the second control unit is driven to be turned on, and the third control unit is driven to be turned off; When the sensor is a 3-wire voltage type liquid level sensor, the first control unit is driven to be turned off, the second control unit is driven to be turned off, and the third control unit is driven to be turned on.

Citation Information

Patent Citations

  • Signal conditioning circuit, conditioning method and acquisition box

    CN112711206A

  • Detection circuit adaptive to multiple sensors and cooking utensil

    CN218630146U

  • Temperature detection device and motor

    CN221037729U

  • Signal conversion circuit adaptive to two-wire gear speed measurement sensor

    CN221281053U

  • Semiconductor integrated circuit for charging control

    JP2009232550A