A sensor adaptation circuit, sensor information acquisition circuit and method
By designing a sensor adapter circuit and utilizing a three-channel transmission interface and a control chip to control the switching transistor, the problem of sensor-system interface mismatch was solved, enabling flexible sensor adaptation and accurate measurement, and reducing wiring difficulty and cost.
Patent Information
- Application Number
- CN202411847371.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2044-12-12
AI Technical Summary
In existing technologies, the sensors are incompatible with the interfaces and circuit types reserved in the system, making it impossible to connect multiple temperature or level sensors simultaneously and thus impossible to comprehensively monitor system parameters.
A sensor adapter circuit was designed, including a three-channel transmission interface and a control chip. By combining the control unit and the voltage divider resistor, it can adapt to different types of sensors. The control chip controls the switching transistor to turn on and off, and connects and disconnects the adapter unit from the output port to achieve flexible matching.
This achieves greater flexibility in sensor adapter circuitry, enabling it to adapt to different types of sensors, meet diverse needs in practical applications, and reduce wiring complexity and manufacturing costs.
Smart Images

Figure CN119826877B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of circuit design, and particularly relates to a sensor adaptation circuit, a sensor information acquisition circuit and a method. BACKGROUND
[0002] Many industrial and commercial application systems need to monitor the temperature and liquid level of multiple positions at the same time, and the types of temperature acquisition sensors and liquid level acquisition sensors are different, so different interfaces and circuits are needed to connect the sensors and control chips.
[0003] When multiple temperatures or liquid levels need to be monitored at the same time, multiple temperature sensors and liquid level sensors need to be used at the same time, and a problem of mismatch between the types of sensors and the types of interfaces and circuits reserved in the system may occur. The demand for connecting multiple liquid level sensors or temperature sensors at the same time cannot be met, which may cause the parameters in the system to be unable to be comprehensively monitored. SUMMARY
[0004] The technical problem to be solved by the embodiments of the present application is to provide a sensor adaptation circuit, a sensor information acquisition circuit and a method to solve the problem that the types of sensors and the types of interfaces and circuits reserved in the system are mismatched in the prior art, resulting in that the parameters cannot be comprehensively monitored.
[0005] The present application discloses a sensor adaptation circuit, one end of the sensor adaptation circuit is connected to a second output port of a three-channel transmission interface, a first output port of the three-channel transmission interface is connected to a first constant voltage power supply, a third output port is grounded, and at least two of the three input ports are used to connect sensors;
[0006] The other end of the sensor adaptation circuit is connected to a control chip;
[0007] The sensor adaptation circuit comprises:
[0008] A first adaptation unit comprises a first control unit and a first voltage dividing resistor, 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] A second adaptation unit comprises a second control unit and a second voltage dividing resistor, one end of the second voltage dividing resistor is connected to one end of the second 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 third constant voltage power supply;
[0010] A third adaptation 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 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 a switching transistor, and the gate (G) terminal of the switching transistor of the first control unit, the second control unit, and the third control unit is connected to the control chip as a control terminal.
[0013] Optionally, the first control unit includes a first switching transistor with a P-channel, whose source terminal is connected to the second constant voltage power supply and its drain terminal is connected to the first voltage divider resistor.
[0014] The second control unit includes a second switching transistor with a P-channel, whose source (S) is connected to the third constant voltage power supply and its drain (D) is connected to the second voltage divider resistor.
[0015] The third control unit is an N-channel third switching transistor, with its source (S) grounded and its drain (D) connected to the third voltage divider resistor.
[0016] Optionally, the sensor includes any one of a thermistor temperature sensor, a 2-wire resistive liquid level sensor, and a 3-wire voltage 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 resistive 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-line voltage type liquid level sensor, the control chip drives the first control unit to turn off, the second control unit to turn off, and the third control unit to turn on.
[0020] Optionally, the sensor adapter circuit further includes a filtering unit, which is connected between the first control unit, the second control unit, the third control unit, and the control chip.
[0021] The filtering unit includes: a filter resistor, a filter capacitor, and a fourth voltage divider 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 divider resistor is connected to the other end of the filter resistor, and the other end is connected to the other end of the first voltage divider resistor and the other end of the second voltage divider resistor.
[0024] Optionally, the filtering unit further includes:
[0025] The clamping diode has its positive terminal connected to the other end of the filter capacitor and its negative terminal connected to the fourth constant voltage power supply.
[0026] This invention also discloses a sensor information acquisition circuit, comprising:
[0027] The interface unit includes at least one three-channel transmission interface, each of which is used to connect to a sensor;
[0028] At least one sensor adapter circuit as described above is connected to the at least one three-channel transmission interface in a one-to-one correspondence.
[0029] A control chip is connected to at least one of the sensor adapter circuits; it is 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 the corresponding sensing information based on the voltage signal.
[0030] Optionally, the sensor information acquisition circuit further includes:
[0031] A communication circuit, connected to the control chip, 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, applied to the sensor information acquisition circuit described above, the sensor information acquisition method comprising the following steps:
[0033] Obtain the sensor type connected to each of the three-channel transmission interfaces;
[0034] The first control unit, the second control unit, and the third control unit of the corresponding sensor adapter circuit are turned on and off based on the sensor type.
[0035] The system receives voltage signals provided by each of the sensor adapter circuits, and acquires and feeds back the sensing information of the corresponding sensor based on the voltage signals.
[0036] Optionally, the sensor includes any one of a thermistor temperature sensor, a 2-wire resistive liquid level sensor, and a 3-wire voltage liquid level sensor;
[0037] The steps of controlling the on / off of the first control unit, second control unit, and third control unit of the sensor adapter circuit corresponding to the sensor type based on the sensor type include:
[0038] When the sensor is a thermistor temperature sensor, the first control unit is turned on, the second control unit is turned off, and the third control unit is turned off.
[0039] When the sensor is a 2-wire resistive liquid level sensor, the first control unit is turned off, the second control unit is turned on, and the third control unit is turned off.
[0040] When the sensor is a 3-line voltage type liquid level sensor, the first control unit is turned off, the second control unit is turned off, and the third control unit is turned on.
[0041] Compared with the prior art, the sensor adapter circuit provided in this embodiment of the invention has the following advantages: the sensor adapter circuit includes a first adapter unit comprising a first control unit and a first voltage divider resistor, a second adapter unit comprising a second control unit and a second voltage divider resistor, and a third adapter unit comprising a third control unit and a third voltage divider 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 adapter unit, the second adapter unit, and the third adapter unit to be in an on state according to requirements, thereby enabling the sensor adapter circuit to adapt to different types of sensors, providing better flexibility and meeting different needs of practical applications. Attached Figure Description
[0042] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. In the accompanying drawings:
[0043] Figure 1 This is a schematic diagram of an embodiment of the sensor adapter circuit provided by the present invention;
[0044] Figure 2 This is a circuit diagram of one embodiment of the sensor adapter circuit provided by the present invention;
[0045] Figure 3 This is a schematic diagram of an embodiment of the sensor information acquisition circuit provided by the present invention;
[0046] Figure 4 This is a flowchart illustrating an embodiment of the sensor information acquisition method provided by the present invention.
[0047] The labels for the attached figures are as follows:
[0048] 10. Sensor adapter circuit; 11. First adapter unit; 111. First control unit; 112. First voltage divider resistor; 12. Second adapter unit; 121. Second control unit; 122. Second voltage divider resistor; 13. Third adapter unit; 131. Third control unit; 132. Third voltage divider resistor; 14. Filtering 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 Implementation
[0049] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0050] Please refer to the following: Figure 1 and Figure 2 , Figure 1 This is a schematic diagram of an embodiment of the sensor adapter circuit 10 provided by the present invention. Figure 2 This is a circuit diagram of an embodiment of the sensor adapter circuit 10 provided by the present invention.
[0051] The three-channel transmission interface 20 has three input ports and three output ports, with the three input ports used to connect sensors. The sensor type includes either a 2-wire resistive sensor or a 3-wire voltage sensor. Examples include a 2-wire resistive level sensor, a 3-wire voltage 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 resistive level sensor or a thermistor temperature sensor, the first input port and the third input port are connected respectively; when the sensor type is a 3-wire voltage level sensor, the first input port, the second input port, and the third input port are connected.
[0052] Of the three output ports, the first output port 21 is connected to the first constant voltage power supply 24. The first constant voltage power supply 24 provides power to the 3-wire voltage sensor when it is connected to the three-channel transmission interface 20, enabling the 3-wire voltage sensor to operate normally and provide an accurate voltage signal. The voltage of the first constant voltage power supply 24 is 12V. The third output port 23 is grounded, providing safety and stability for the entire system.
[0053] The sensor adapter circuit 10 is connected to the second output port 22 of the three-channel transmission interface 20. The other end of the sensor adapter circuit 10 is connected to the control chip 30. Specifically, it includes a first adapter unit 11, a second adapter unit 12, and a third adapter unit 13. The first adapter unit 11, the second adapter unit 12, and the third adapter unit 13 can be connected to or disconnected from the second output port 22. In this way, a matching adapter unit can be selected to connect to the second output port 22 according to the type of sensor connected to the three-channel transmission interface 20, thereby successfully transmitting the sensor's sensing information to the control chip 30.
[0054] The first adapter unit 11 includes a first control unit 111 and a first voltage divider resistor 112. One end of the first voltage divider 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. The other end of the first control unit 111 is connected to the second constant voltage power supply 25. The control terminal of the first control unit 111 is connected to the control chip 30, thereby the control chip 30 can control the first control unit 111 to turn on and off. When the first control unit 111 is off, the first adapter unit 11 is disconnected from the second output port 22. When the first control unit 111 is 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 divider 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 divider resistor 122. One end of the second voltage divider 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. The other end of the first control unit 121 is connected to the third constant voltage power supply 26. The control terminal of the second control unit 121 is connected to the control chip 30, thereby the control chip 30 can control the conduction and shutdown of the second control unit 121. When the second control unit 121 is off, the second adapter unit 12 is disconnected from the second output port 22. When the second control unit 121 is on, the second adapter unit 12 is connected to the second output port 22. The second adapter unit 12 can be equivalent to the second voltage divider resistor 122 having one end connected to the third constant voltage power supply 26 and the other end connected to the second output port 22.
[0056] The third adapter unit 13 includes a third control unit 131 and a third voltage divider resistor 132. One end of the third voltage divider 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. The other end of the first control unit 131 is grounded. The control terminal of the third control unit 131 is connected to the control chip 30, thereby the control chip 30 can control the conduction and shutdown of the third control unit 131. When the third control unit 131 is off, the third adapter unit 13 is disconnected from the second output port 22. When the third control unit 131 is on, the third adapter unit 13 is connected to the second output port 22. The third adapter unit 13 can be equivalent to the third voltage divider resistor 132 being grounded at one end and connected to the second output port 22 at the other end.
[0057] Specifically, when the sensor is a thermistor temperature sensor, the control chip 30 controls the first control unit 111 to be in the ON state, the second control unit 121 to be in the OFF state, and the third control unit 131 to be in the OFF state, thereby ensuring that only the first adapter unit 11 is connected to the second output port 22. The thermistor and the first voltage divider resistor 112 form a voltage divider circuit. The voltage divider circuit divides the input voltage (second constant voltage power supply) into two parts according to the voltage divider principle. One part is applied to the thermistor in the sensor, and the other part is applied to the first voltage divider resistor 112. By obtaining the resistance value obtained from the thermistor, the control chip 30 can determine the resistance value of 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 the off state, the second control unit 121 to be in the on state, and the third control unit 131 to be in the off state. This ensures that only the second adapter unit 12 is connected to the second output port 22. The voltage signal after the resistance of the 2-wire resistive liquid level sensor and the voltage divider resistor 122 is transmitted to the control chip 30. Thus, the control chip 30 can know the current resistance value based on the detected voltage signal, and can know the current liquid level information based on the correspondence between the resistance value and the liquid level.
[0059] When the sensor is a 3-line voltage type liquid level sensor, the control chip 30 controls the first control unit 111 to be in the off state, the second control unit 121 to be in the off state, and the third control unit 131 to be in the on state, so that only the third adapter unit 13 is connected to the second output port 22. The output voltage of the 3-line voltage type liquid level sensor is transmitted to the control chip 30 after being divided by the third voltage divider resistor 132. Thus, the control chip 30 can know the current output voltage based on the detected voltage signal, and can know the current liquid level information based on the correspondence between the voltage value and the liquid level.
[0060] Please see 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) transistors. The gate (G) of each MOS transistor is connected to the control chip 30. By adjusting the voltage output to the gate, the voltage V of each MOS transistor can be adjusted. GS The preset turn-off or turn-on thresholds are met, thereby controlling the turn-on and turn-off of each MOSFET.
[0061] Specifically, the first control unit 111 is a P-channel first switching transistor Q1, whose source (S) is connected to the second constant voltage power supply 25 (3.3V), and its drain (D) 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 gate voltage (G) of the first switching transistor Q1 to be low, and the gate voltage V... GS When the voltage is below the threshold voltage Vth, the first switch Q1 is turned on. When the first control unit 111 needs to be turned off, the control chip 30 controls the gate voltage of the second switch Q2 to be high, and the gate voltage VGS is higher than the threshold voltage Vth, thereby turning off the first switch Q1.
[0062] The second control unit 121 is a P-channel second switch Q2. Its source (S) is connected to the third constant voltage power supply 26 (3.3V), and its drain (D) is connected to the second voltage divider resistor 122R3. When the second control unit 121 needs to be on, the control chip 30 controls the gate voltage (G) of the second switch Q2 to be low, so that the gate voltage VGS is lower than the threshold voltage Vth, thus turning on the second switch Q2. When the second control unit 121 needs to be off, the control chip 30 controls the gate voltage (G) of the second switch Q2 to be high, so that the gate voltage VGS is higher than the threshold voltage Vth, thus turning off the second switch Q2.
[0063] The third control unit 131 is an N-channel third switch Q3, with its source (S) grounded and its drain (D) connected to the third voltage divider resistor 132R7. When the third control unit 131 needs to be on, the control chip 30 controls the gate voltage (G) of the third switch Q3 to be high, making the gate voltage VGS higher than the threshold voltage Vth, thus turning on the third switch Q3. When the third control unit 131 needs to be off, the control chip 30 controls the gate voltage (G) of the third switch Q3 to be low, making the gate voltage VGS lower than the threshold voltage Vth, thus turning off the third switch Q3.
[0064] Furthermore, the first control unit 111 also includes a first gate-source resistor R1, connected to the gate and source of the first switching transistor Q1; the second control unit 121 also includes a second gate-source resistor R2, connected to the gate and source of the second switching transistor Q2; and the third control unit 131 also includes a third gate-source resistor R8, connected to the gate and source of the third switching transistor 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 source, preventing excessive current, and can also help stabilize the circuit's operating state, preventing unexpected oscillations or instability, and protecting the first switching transistor Q1, the second switching transistor Q2, and the third switching transistor Q3. To ensure reliable turn-on and turn-off of the first switching transistor Q1, the second switching transistor Q2, and the third switching transistor Q3, the values of 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 adapter 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. The filtering unit 14 filters the voltage signal provided by the sensor, enabling the control chip 30 to obtain more accurate sensing information based on a more stable voltage signal. The filtering unit includes a filtering resistor R6, a filtering capacitor C1, and a fourth voltage divider resistor R5. One end of the filtering capacitor C1 is grounded, and the other end is connected to the filtering resistor R6. One end of the fourth voltage divider resistor R5 is connected to the other end of the filtering resistor R6, and the other end is connected to the other end of the first voltage divider resistor 112R4 and the other end of the second voltage divider resistor 122R3.
[0066] In one implementation scenario, the sensor is a thermistor temperature sensor. The control chip 30MCU controls the gate voltage of the first switch Q1 to a low level, the gate voltage of the second switch Q2 to a high level, and the gate voltage of the third switch Q3 to a low level, so that only the first switch Q1 is in the conducting 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. The voltage obtained by the thermistor NTC is provided as a voltage signal to the control chip 30MCU. The voltage signal is filtered by the fourth voltage divider resistor R5 and the filter resistor R6, and then filtered by the filter capacitor C1 before being transmitted to the control chip 30MUC. The control chip 30MUC can obtain the corresponding temperature based on the acquired voltage signal.
[0067] Specifically, the relationship between the voltage across the thermistor NTC and the voltage across the first voltage divider resistor 112R4 and the thermistor NTC is as follows:
[0068] Vo = 3.3 * R ntc / (R4+Rntc )
[0069] Where R4 is the resistance value of the first voltage divider resistor 112R4, R ntc The resistance value of the thermistor NTC is given. Based on the acquired voltage Vo and the known resistance value of the first voltage divider resistor 112R4, the control chip 30 can calculate the resistance value of the thermistor NTC. Based on the known relationship between temperature and resistance value, the temperature corresponding to the current resistance value can be found.
[0070] Furthermore, the sensor is a negative temperature coefficient (NTC) temperature sensor, whose resistance changes with temperature. Typically, the resistance of an NTC sensor decreases as temperature increases. The temperature sensor's resistance ranges from 216kΩ to 0.65kΩ, corresponding to a temperature range of -35℃ to 100℃. To ensure accurate detection of the voltage change resulting from the thermistor sensor's resistance change within this temperature range, the first voltage divider resistor 112R4 has a resistance of 16kΩ. By appropriately selecting the resistance value of the first voltage divider resistor 112R4, it is ensured that the sensor adapter circuit 10 can provide accurate output at different temperatures, thereby achieving precise temperature measurement and monitoring.
[0071] In another implementation scenario, the sensor is a 2-wire resistive level sensor. The control chip 30MCU controls the gate voltage (G) of the first switch Q1 to a high level, the gate voltage of the second switch Q2 to a low level, and the gate voltage of the third switch Q3 to a low level, so only the second switch Q2 is in the conducting 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. The voltage obtained by the sensing resistor is provided as a voltage signal to the control chip 30MCU. The voltage signal is filtered by the fourth voltage divider resistor R5 and the filter resistor R6 in series, and then filtered by the filter capacitor C1 before being transmitted to the control chip 30MCU. The control chip 30MCU can obtain the corresponding liquid level based on the acquired voltage signal.
[0072] Specifically, the relationship between the voltage across the sensing resistor and the second voltage divider resistor 122R3 and the sensing resistor is as follows:
[0073] Vo = 3.3 * R tank / (R3+R tank )
[0074] Where R3 is the resistance value of the second voltage divider resistor 122R3, R tank The value of the sensing resistor is given. Based on the acquired voltage Vo and the known resistance value of the second voltage divider resistor 122R3, the control chip 30 can calculate the value of the sensing resistor. Based on the known correspondence between liquid level and resistance value, the liquid level corresponding to the current resistance value can be found.
[0075] Furthermore, the sensor is a liquid level sensor, and its resistance changes with the liquid level. The resistance of the liquid level sensor increases as the liquid level rises. The resistance range of the liquid level sensor is 0Ω to 180Ω, corresponding to a liquid level range of 0% to 100%. To ensure that the voltage change caused by the change in the sensing resistance of the liquid level sensor within this liquid level range can be accurately detected, the resistance of the second voltage divider resistor 122R3 is 680Ω. By appropriately selecting the resistance value of the second voltage divider resistor 122R3, it can be ensured that the sensor adapter circuit 10 can provide accurate output at different liquid levels, thereby achieving precise measurement and monitoring of the liquid level.
[0076] In another implementation scenario, the sensor is a 3-line voltage type liquid level sensor. The control chip 30MCU controls the gate voltage (G) of the first switch Q1, the second switch Q2, and the third switch Q3 to a high level, ensuring that only the third switch Q3 is conducting. The signal processing circuit of the liquid level sensor operates under the drive of the first constant voltage power supply 24 (12V). The output liquid level voltage signal is divided by the third voltage divider resistor 132R7 and the fourth voltage divider resistor R5. The voltage obtained by the third voltage divider resistor 132R7 is provided as a voltage signal to the control chip 30MCU. The voltage signal is then filtered by the filter resistor R6 and the filter capacitor C1 before being transmitted to the control chip 30MCU. The control chip 30MCU can obtain the corresponding liquid level based on the acquired voltage signal.
[0077] Specifically, the relationship between the voltage divided by the third voltage divider resistor 132R7 and the voltage divided by the fourth voltage divider resistor R5 and the third voltage divider resistor 132R7 is as follows:
[0078] Vo = V tank *R7 / (R5+R7)
[0079] Among them, V tank The sensor outputs a liquid level voltage signal. R7 is the resistance of the third voltage divider resistor 132R7, and R5 is the resistance of the fourth voltage divider resistor R5. Based on the acquired voltage Vo and the known resistance values of the third and fourth voltage divider resistors R7 and R5, the control chip 30 can calculate the liquid level voltage signal output by the sensor. Based on the known correspondence between voltage and resistance values, it can find the liquid level corresponding to the current liquid level voltage signal.
[0080] Furthermore, the liquid level sensor's liquid level voltage signal range is 0V to 5.0V, corresponding to a liquid level range of 0% to 100%. The resistance values of the third voltage divider resistor 132R7 and the fourth voltage divider resistor R5 are both 47kΩ. The purpose of choosing 47kΩ third voltage divider resistor 132R7 and fourth voltage divider resistor R5 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 sampling accuracy. In addition, to prevent the liquid level voltage signal from exceeding the maximum input voltage (typically VDD) of the MCU's ADC sampling port, a clamping diode D1 is used, with its positive terminal connected to the other end of the filter capacitor C1 and its negative terminal connected to the fourth constant voltage power supply 27 (3.3V). This ensures that the input signal does not exceed the ADC's operating range, protecting the MCU from damage.
[0081] As described above, in this embodiment, the sensor adapter circuit 10 includes a first adapter unit 11 comprising a first control unit 111 and a first voltage divider resistor 112, a second adapter unit 12 comprising a second control unit 121 and a second voltage divider resistor 122, and a third adapter unit 13 comprising a third control unit 131 and a third voltage divider 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 adapter unit 11, the second adapter unit 12, and the third adapter unit 13 to be in an on state according to requirements, thereby enabling the sensor adapter circuit 10 to adapt to different types of sensors, providing better flexibility and meeting different needs of practical applications.
[0082] Please see Figure 3 , Figure 3 This is a schematic 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, which includes at least one three-channel transmission interface 20 (CON1 to CONN). Each three-channel transmission interface 20 can connect to a sensor, which includes any one of a thermistor temperature sensor, a two-wire resistive liquid level sensor, or a three-wire voltage liquid level sensor. The sensor information acquisition circuit also includes at least one sensor adapter circuit 10, which is connected one-to-one with at least one three-channel transmission interface 20. The 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 above description, and will not be repeated here.
[0083] The control chip 30, connected to at least one sensor adapter circuit 10, is capable of controlling the on / off states of the first control unit 111, the second control unit 121, and the third control unit 131 within the sensor adapter circuit 10. Simultaneously, it receives voltage signals transmitted from each sensor through the sensor adapter circuit 10. Based on the received voltage signals, the control chip 30 can calculate the corresponding sensor's sensing information. The specific details of how the control chip 30 controls the on / off states of the first control unit 111, the second control unit 121, and the third control unit 131, and how it calculates the corresponding sensor's sensing information based on the received voltage signals, have 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 information interaction between the sensor information acquisition circuit 40 and the mobile terminal. For example, after acquiring sensing information, the control chip 30 can feed the sensing information back to the user through the communication circuit. Alternatively, the communication circuit can receive query information input by the user, which includes relevant information about the sensor to be queried. Then, the control chip 30 acquires the sensing information of the corresponding sensor and feeds it back to the user through the communication circuit.
[0085] In other implementation scenarios, users can set the sensor type connected to each sensor adapter circuit 10 on a mobile terminal and transmit the settings to the control chip 30 through a communication circuit. Thus, the control chip 30 can control the on and off of its first control unit 111, second control unit 121 and third control unit 131 according to the type of sensor connected to each sensor adapter circuit 10.
[0086] In other implementation scenarios, users can also directly set the type of sensor connected to each sensor adapter circuit 10 in the control chip 30 when assembling the sensor information acquisition circuit 40.
[0087] As described above, in this embodiment, the sensor information acquisition circuit uses at least one sensor adapter circuit to match the corresponding sensor, eliminating the need for separate wiring for different sensors, thus reducing wiring complexity. At the same time, the sensor adapter circuit can be flexibly switched according to the actual sensor type used, reducing the system manufacturing cost.
[0088] Please refer to the following: Figure 4 , Figure 4 This is a schematic flowchart 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 described above, and specifically includes the following steps:
[0089] S101: Obtain the sensor type connected to each three-channel transmission interface.
[0090] In a specific implementation scenario, the control chip acquires the type of sensor connected to each three-channel transmission interface. This can be done by the user directly inputting the specific type or by remotely setting it via a mobile terminal. In this implementation scenario, the sensor includes any one of a thermistor temperature sensor, a 2-wire resistive level sensor, and a 3-wire voltage level sensor. The thermistor temperature sensor and the 2-wire resistive level sensor are connected to the first and third input ports of the three-channel transmission interface, while the 3-wire voltage level sensor is connected to the first, second, and third input terminals of the three-channel transmission interface.
[0091] In other implementation scenarios, the sensor can also be other types of sensors, as long as the number of output pins of the sensor does not exceed three.
[0092] S102: Controls the on / off state of the first control unit, second control unit, and third control unit of the corresponding sensor adapter circuit based on the sensor type.
[0093] In a specific implementation scenario, the first, second, and third adapter units in the sensor adapter circuit correspond to a thermistor temperature sensor, a 2-wire resistive liquid level sensor, and a 3-wire voltage-type liquid level sensor, respectively. Each adapter unit contains a control unit that can be turned on and off. When the control unit is on, the adapter unit is connected to the sensor adapter circuit; when the control unit is off, the adapter unit is disconnected from the sensor adapter circuit. Therefore, after obtaining the sensor type, controlling the on / off state of the control unit in the corresponding adapter unit according to the sensor type allows for the configuration of a corresponding control unit for each sensor, thus ensuring 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 turned 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 turned off, the second control unit is turned 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 is turned off, the second control unit is turned off, and the third control unit is turned on. The specific on / off control methods have been described above and will not be repeated here.
[0095] S103: Receives the voltage signal provided by each sensor adapter circuit, acquires and feeds back the sensing information of the corresponding sensor based on the voltage signal.
[0096] In a specific implementation scenario, once the sensor adapter circuit is adjusted to match the sensor type, the sensor can transmit voltage signals through the sensor adapter circuit. After receiving the voltage signal, the control chip can calculate the corresponding sensing information based on the voltage signal and the resistance value in the currently active control unit. The specific calculation method has been described above and will not be repeated here.
[0097] As described above, in this embodiment, the sensor type connected to each three-channel transmission interface is obtained; the first control unit, second control unit, and third control unit of the corresponding sensor adapter circuit are turned on and off based on the sensor type. This enables the adjusted sensor adapter circuit to match the sensor type, transmit the voltage information provided by the sensor, and thus obtain the corresponding sensing information. There is no need to set up corresponding lines for each sensor. Adaptation with multiple types of sensors can be achieved by flexibly adjusting the unified lines for the sensor type, which reduces wiring difficulty and manufacturing cost.
[0098] This invention also provides an intelligent RV. The intelligent RV includes a processor and a memory. The processor is coupled to the memory. The memory stores a computer program, which the processor executes during operation to implement the method described above. Detailed steps are described 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 executed by a processor to implement the above-described method. Detailed steps are described above and will not be repeated here. In one embodiment, the computer-readable storage medium may be a storage chip in a terminal, a hard disk, or other readable and writable storage tools such as a portable hard disk, USB flash drive, or optical disc, or it may be a server, etc.
[0100] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0101] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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, and are not intended to limit them. Those skilled in the art can modify the technical solutions described in the above embodiments, or make equivalent substitutions for some of the technical features; and all such modifications and substitutions should fall within the protection scope of the appended claims of the present invention.
Claims
1. A sensor adapter circuit, characterized in that, One end of the sensor adapter 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, and the third output port is grounded. At least two of the three input ports are used to connect the sensor. The sensor includes any one of a thermistor temperature sensor, a 2-wire resistive liquid level sensor, and a 3-wire voltage liquid level sensor. The other end of the sensor adapter circuit is connected to the control chip. The sensor adapter circuit includes: The first adapter unit includes a first control unit and a first voltage divider resistor. One end of the first voltage divider resistor is connected to one end of the first control unit, and the other end is connected to the second output port. The other end of the first control unit is connected to the second constant voltage power supply. The second adapter unit includes a second control unit and a second voltage divider resistor. One end of the second voltage divider resistor is connected to one end of the second control unit, and the other end is connected to the second output port. The other end of the first control unit is connected to a third constant voltage power supply. The third adapter unit includes a third control unit and a third voltage divider resistor. One end of the third voltage divider resistor is connected to one end of the third control unit, and the other end is connected to the second output port. 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. 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 resistive 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-line voltage type liquid level sensor, the control chip drives the first control unit to turn off, the second control unit to turn off, and the third control unit to turn on.
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 switching transistor, and the gate (G) terminal of the switching transistor of the first control unit, the second control unit, and the third control unit is connected to the control chip as a control terminal.
3. The sensor adapter circuit according to claim 2, characterized in that, The first control unit includes a first switching transistor with a P-channel, whose source (S) is connected to the second constant voltage power supply and its drain (D) is connected to the first voltage divider resistor. The second control unit includes a second switching transistor with a P-channel, whose source (S) is connected to the third constant voltage power supply and its drain (D) is connected to the second voltage divider resistor. The third control unit is an N-channel third switching transistor, with its source (S) grounded and its drain (D) connected to the third voltage divider resistor.
4. The sensor adapter circuit according to any one of claims 1-3, characterized in that, The sensor adapter circuit further includes a filtering unit, which is connected between the first control unit, the second control unit, the third control unit, and the control chip. The filtering unit includes: a filter resistor, a filter capacitor, and a fourth voltage divider 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 divider resistor is connected to the other end of the filter resistor, and the other end is connected to the other end of the first voltage divider resistor and the other end of the second voltage divider resistor.
5. The sensor adapter circuit according to claim 4, characterized in that, The filtering unit further includes: The clamping diode has its positive terminal connected to the other end of the filter capacitor and its negative terminal connected to the fourth constant voltage power supply.
6. A sensor information acquisition circuit, characterized in that, include: The interface unit includes at least one three-channel transmission interface, each of which is used to connect to a sensor; At least one sensor adapter circuit as described in any one of claims 1-5 is connected to the at least one three-channel transmission interface in a one-to-one correspondence. A control chip is connected to at least one of the sensor adapter circuits; it is 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 the corresponding sensing information based on the voltage signal.
7. The sensor information acquisition circuit according to claim 6, characterized in that, The sensor information acquisition circuit also includes: A communication circuit, connected to the control chip, is used to realize information interaction between the sensor information acquisition circuit and the mobile terminal.
8. A sensor information acquisition method, characterized in that, The sensor information acquisition method, applied to the sensor information acquisition circuit of claim 6, includes the following steps: Obtain the sensor type connected to each of the three-channel transmission interfaces; The first control unit, the second control unit, and the third control unit of the corresponding sensor adapter circuit are turned on and off based on the sensor type. The system receives voltage signals provided by each of the sensor adapter circuits, and acquires and feeds back the sensing information of the corresponding sensor based on the voltage signals.
9. The sensor information acquisition method according to claim 8, characterized in that, The sensor includes any one of a thermistor temperature sensor, a 2-wire resistance liquid level sensor, and a 3-wire voltage liquid level sensor; The steps of controlling the on / off of the first control unit, second control unit, and third control unit of the sensor adapter circuit corresponding to the sensor type based on the sensor type include: When the sensor is a thermistor temperature sensor, the first control unit is turned on, the second control unit is turned off, and the third control unit is turned off. When the sensor is a 2-wire resistive liquid level sensor, the first control unit is turned off, the second control unit is turned on, and the third control unit is turned off. When the sensor is a 3-line voltage type liquid level sensor, the first control unit is turned off, the second control unit is turned off, and the third control unit is turned on.
Citation Information
Patent Citations
Detection circuit adaptive to multiple sensors and cooking utensil
CN218630146U
Temperature detection device and motor
CN221037729U