Signal detection circuit based on switch type sensor

By designing a signal detection circuit based on switch type sensors, using the comparison module and the OR gate logic module, the reusability of the on-board controller port is achieved, solving the problem that the signals of different switch type sensors in the prior art are not possible, and reducing the research and development Cost and cycle.

CN119298885APending Publication Date: 2025-01-10CHONGQING JINKANG POWER NEW ENERGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411343108.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The existing technology cannot realize the multiplexing of the signal detection port of the vehicle controller, the low-effective signal detection circuit cannot detect the signals output by the high-effective sensor, and the high-effective signal detection circuit cannot detect the signals output by the low-effective sensor, resulting in a long R&D cycle and R&D cost. high.

Method used

Design a signal detection circuit based on switch type sensor. Through the comparison module and the OR gate logic module, the controller port can detect both high-effective switching signals and low-effective switching signals, including comparison modules, threshold circuits, and The voltage module and the OR gate logic module provide upper and lower limit voltages through the threshold circuit and voltage divider module to ensure flexibility in signal detection.

Benefits of technology

It realizes the reusability of the controller port, and can detect high-efficiency and low-efficiency switching signals at the same time, reducing R&D costs and cycles, and improving the flexibility and efficiency of signal detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119298885A_ABST
    Figure CN119298885A_ABST
Patent Text Reader

Abstract

The invention provides a signal detection circuit based on a switch type sensor, the signal detection circuit comprises a comparison module and an OR gate logic module, the upper limit voltage input end of the comparison module is connected to a power supply, the lower limit voltage input end of the comparison module is grounded, the common end of the comparison module is connected to the output end of a sensor to be detected, and the output end of the sensor to be detected is grounded. The sensor to be detected is a switch type sensor; the output end of the comparison module is connected to the signal detection end of the controller through the gate logic module. According to the invention, the port of the controller not only can detect the high-effectiveness switching signal, but also can detect the low-effectiveness switching signal, so that the reusability of the port of the controller is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle-mounted sensor signal detection, and in particular to a signal detection circuit based on a switch-type sensor. Background Art

[0002] With the rapid development of automotive electronics, the types of vehicle-mounted sensors have also become diverse. Many of these vehicle-mounted sensors are switch-type sensors, such as liquid level sensors, brake sensors, etc. For switch-type sensors, different states detected by the sensor are represented by closing and opening.

[0003] Switch type sensors are divided into low-effective sensors and high-effective sensors. Low-effective sensors refer to sensors that are in the closed state, whose output is connected to the negative pole of 12V and outputs a low level. High-effective sensors refer to sensors that are in the closed state, whose output is connected to the positive pole of 12V and outputs a high level.

[0004] In order to detect the signal corresponding to the switch type sensor, it is necessary to design corresponding signal detection circuits according to different switch type sensors and connect them to the vehicle controller to realize signal detection. Specifically, it includes a low-effective signal detection circuit and a high-effective signal detection circuit corresponding to the low-effective sensor. However, the low-effective signal detection circuit cannot detect the detection signal output by the high-effective sensor, and the high-effective signal detection circuit cannot detect the detection signal output by the low-effective sensor.

[0005] With the rapid development of the current automobile industry, design changes are also changing with each passing day. The existing technology provides a signal detection method for sensors of different switch types through two different circuits. This not only has a long R&D cycle and high R&D cost, but also cannot realize the reuse of the signal detection port of the vehicle controller. Summary of the invention

[0006] In view of this, the purpose of the present application is to at least provide a signal detection circuit based on a switch type sensor, which enhances the multiplexing of the controller's port by enabling the controller's port to detect both high-effective switch signals and low-effective switch signals.

[0007] This application mainly includes the following aspects:

[0008] In the first aspect, an embodiment of the present application provides a signal detection circuit based on a switch type sensor, the signal detection circuit includes a comparison module and an OR gate logic module, wherein the upper limit voltage input terminal of the comparison module is connected to a power supply, the lower limit voltage input terminal of the comparison module is grounded, and the common terminal of the comparison module is connected to the output terminal of the sensor to be detected, which is a switch type sensor; the output terminal of the comparison module is connected to the signal detection terminal of the controller through the gate logic module.

[0009] In a possible implementation, the comparison module includes a first comparator and a second comparator, wherein the negative power input terminal of the first comparator is connected to the power supply as the upper limit voltage input terminal of the comparison module, the positive power input terminal of the first comparator is connected to the negative power input terminal of the second comparator, and then connected to the output terminal of the sensor to be detected as the common terminal of the comparison module, and the positive power input terminal of the second comparator is grounded; the output terminal of the first comparator and the output terminal of the second comparator are connected to the OR gate logic module.

[0010] In a possible implementation, the signal detection circuit further includes a threshold value circuit, wherein a first connection terminal of the threshold value circuit is connected to a power supply, a second connection terminal of the threshold value circuit is connected to a negative power input terminal of the first comparator, a third connection terminal of the threshold value circuit is connected to a positive power input terminal of the second comparator, and a fourth connection terminal of the threshold value circuit is grounded.

[0011] In a possible implementation, the threshold value circuit includes a first threshold resistor, a second threshold resistor and a third threshold resistor, wherein one end of the first threshold resistor is connected to the power supply as the first connection end of the threshold value circuit, the other end of the first threshold resistor is connected to the negative power input end of the first comparator and one end of the second threshold resistor as the second connection end of the threshold value circuit, respectively, the other end of the second threshold resistor is connected to one end of the third threshold resistor and the positive power input end of the second comparator as the third connection end of the threshold value circuit, respectively, and the other end of the third threshold resistor is grounded as the fourth connection end of the threshold value circuit.

[0012] In a possible implementation, the signal detection circuit also includes a voltage divider module, wherein a first connection end of the voltage divider module is connected to a power supply, a second connection end of the voltage divider module is respectively connected to an output end of the sensor to be detected and a common end of the threshold value circuit, and a third connection end of the voltage divider module is grounded.

[0013] In a possible embodiment, the voltage divider module includes a first voltage divider resistor and a second voltage divider resistor, wherein one end of the first voltage divider resistor is connected to a power supply as a first connection end of the voltage divider module, the other end of the first voltage divider resistor is connected to one end of the second voltage divider resistor, and then connected to an output end of the sensor to be detected and a common end of the threshold value circuit as a second connection end of the voltage divider module, and the other end of the second voltage divider resistor is grounded as a third connection end of the voltage divider module.

[0014] In a possible implementation, the signal detection circuit further includes a voltage-stabilizing resistor, wherein one end of the voltage-stabilizing resistor is respectively connected to the OR gate logic module and the signal detection end of the controller, and the other end of the voltage-stabilizing resistor is grounded.

[0015] In one possible implementation, the OR gate logic module includes a first diode and a second diode, wherein the anode of the first diode is connected to the output end of the first comparator, the cathode of the first diode is respectively connected to the signal detection end of the controller, one end of the zener resistor and the cathode of the second diode; the anode of the second diode is connected to the output end of the second comparator.

[0016] In a possible implementation manner, the upper limit voltage provided by the threshold value circuit to the comparison module is:

[0017]

[0018] In this formula, V H Indicates the upper limit voltage, V r Indicates the voltage provided by the power supply, R m1 is the first threshold resistor, R m2 Represents the second threshold resistance, R m3 Represents the third threshold resistor.

[0019] In a possible implementation manner, the lower limit voltage provided by the threshold value circuit to the comparison module is:

[0020]

[0021] In this formula, V L Indicates the lower limit voltage, V r Indicates the voltage provided by the power supply, R m1 is the first threshold resistor, R m2 Represents the second threshold resistance, R m3 Represents the third threshold resistor.

[0022] The embodiment of the present application provides a signal detection circuit based on a switch type sensor, the signal detection circuit includes a comparison module and an OR gate logic module, wherein the upper limit voltage input terminal of the comparison module is connected to the power supply, the lower limit voltage input terminal of the comparison module is grounded, the common terminal of the comparison module is connected to the output terminal of the sensor to be detected, and the sensor to be detected is a switch type sensor; the output terminal of the comparison module is connected to the signal detection terminal of the controller through the gate logic module. By enabling the port of the controller to detect both high effective switch signals and low effective switch signals, the reusability of the port of the controller is enhanced.

[0023] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A schematic diagram showing the connection between a high-effective switch signal detection circuit and a high-effective sensor provided in an embodiment of the present application is shown;

[0026] Figure 2 A schematic diagram showing the connection between the low effective switch signal detection circuit and the low effective sensor provided in an embodiment of the present application is shown;

[0027] Figure 3 One of the structural schematic diagrams of a signal detection circuit based on a switch type sensor provided in an embodiment of the present application is shown;

[0028] Figure 4 A second structural schematic diagram of a signal detection circuit based on a switch type sensor provided in an embodiment of the present application is shown;

[0029] Figure 5 A schematic diagram showing the connection relationship between a signal detection circuit and a high-effectiveness sensor provided in an embodiment of the present application is shown;

[0030] Figure 6 A schematic diagram of the connection relationship between a signal detection circuit and an inefficient sensor provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0031] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.

[0032] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0033] With the rapid development of automotive electronics, the types of vehicle-mounted sensors have also become diverse. Many of these vehicle-mounted sensors are switch-type sensors, such as liquid level sensors, brake sensors, etc. The internal switches of switch-type sensors are generally mechanical switches, or electronic switches composed of semiconductor transistors or field-effect transistors. For switch-type sensors, different states detected by the sensor are indicated by closing and opening.

[0034] Switch type sensors are divided into low effective sensors and high effective sensors:

[0035] A low-effective sensor means that when the sensor is in the closed state, its output is connected to the negative pole of 12V and outputs a low level.

[0036] A high effective sensor means that when the sensor is in the closed state, its output is connected to the positive pole of 12V and outputs a high level.

[0037] When detecting the output signal of a switch type sensor, a traditional vehicle controller generally designs a high effective switch signal detection circuit and a low effective switch signal detection circuit respectively according to whether the sensor output is a high effective switch signal or a low effective switch signal.

[0038] See also Figure 1 , Figure 1 A schematic diagram showing the connection between a high-effective switch signal detection circuit and a high-effective sensor provided in an embodiment of the present application is shown.

[0039] like Figure 1 The high effective switch signal detection circuit shown in the figure comprises a first resistor R1 and a second resistor R2, one end of the first resistor R1 is used as an input end V of the high effective switch signal detection circuit in The first resistor R1 is connected to the signal output terminal of the high effective sensor Q1, and the high effective sensor Q1 is also connected to the 12V power supply voltage. The other end of the first resistor R1 serves as the output terminal V of the high effective switch signal detection circuit. o They are respectively connected to one end of the second resistor R2 and the signal detection end of the controller, and the other end of the second resistor R2 is grounded GND.

[0040] For Figure 1The high effective switch signal detection circuit shown in the figure, when the switch type sensor is closed, the switch type sensor outputs a 12V voltage, the first resistor R1 and the second resistor R2 form a voltage divider resistor, so that the output terminal V of the high effective switch signal detection circuit is o The output is:

[0041]

[0042] When the switch type sensor is disconnected, the switch type sensor outputs 0V voltage, and the first resistor R1 and the second resistor R2 form a voltage divider resistor, so that the output terminal V o The output is:

[0043] V o =0V

[0044] See also Figure 2 , Figure 2 A schematic diagram showing the connection between a low-effective switch signal detection circuit and a low-effective sensor provided in an embodiment of the present application is shown.

[0045] like Figure 2 The low effective switch signal detection circuit shown in the figure comprises a third resistor R3, a fourth resistor R4 and a fifth resistor R5, one end of the third resistor R3 is connected to a 12V power supply voltage, and the other end of the third resistor R3 is used as an input terminal V of the low effective switch signal detection circuit. in The low effective sensor Q2 is also grounded, and the other end of the fourth resistor R4 is used as the output end V of the low effective switch signal detection circuit. o They are respectively connected to a signal detection terminal of the controller and one end of a fifth resistor R5, and the other end of the fifth resistor R5 is grounded.

[0046] When the sensor switch is closed, the sensor outputs 0V voltage, and the voltage divider composed of three resistors makes the output voltage:

[0047] For Figure 2 The low effective switch signal detection circuit shown in the figure, when the low effective sensor is closed, the low effective sensor outputs 0V voltage, R3, R4 and R5 form a voltage divider resistor, so that the output terminal V o The output is:

[0048] V o =0V

[0049] When the low-effective sensor is disconnected, R3, R4 and R5 form a voltage divider resistor, making the output terminal V o The output is:

[0050]

[0051] It can be seen that in the prior art, the high-effective switch signal detection circuit can be used to detect the high-effective sensor output signal and the low-effective switch signal detection circuit can be used to detect the low-effective sensor output signal.

[0052] However, the low effective signal detection circuit cannot detect the detection signal output by the high effective sensor, and the high effective signal detection circuit cannot detect the detection signal output by the low effective sensor.

[0053] With the rapid development of the current automobile industry, design changes are also changing with each passing day. The existing technology provides a signal detection method for sensors of different switch types through two different circuits. This not only has a long R&D cycle and high R&D cost, but also cannot realize the reuse of the signal detection port of the vehicle controller.

[0054] Based on this, an embodiment of the present application provides a signal detection circuit based on a switch type sensor, which enables the port of the controller to detect both a high effective switch signal and a low effective switch signal, thereby enhancing the reusability of the port of the controller, as follows:

[0055] See also Figure 3 , Figure 3 FIG. 1 shows one of the structural schematic diagrams of a signal detection circuit based on a switch type sensor provided in an embodiment of the present application. Figure 3 As shown, the signal detection circuit provided in the embodiment of the present application includes a comparison module 1 and an OR gate logic module 2, wherein the upper limit voltage input terminal of the comparison module 1 is connected to the power supply V r The lower limit voltage input terminal of comparison module 1 is grounded GND, and the common terminal of comparison module 1 serves as the input terminal V of the entire signal detection circuit. in Connect to the output end of the sensor to be detected. in It is a switch type sensor. The output end of the comparison module 1 is connected to the signal detection end of the controller through the gate logic module 2. The power supply V r is 12V.

[0056] In a preferred embodiment, see Figure 4 , Figure 4 FIG2 shows a second structural diagram of a signal detection circuit based on a switch type sensor provided in an embodiment of the present application. Figure 4 As shown, the comparison module includes a first comparator U1A and a second comparator U1B, the first comparator U1A and the second comparator are LM393, and the signal detection circuit also includes a threshold value circuit 3.

[0057] Specifically, the first connection terminal of the threshold value circuit 3 is connected to the power supply V rThe negative power input terminal of the first comparator U1A is connected to the second connection terminal of the threshold value circuit 3 as the upper limit voltage input terminal of the comparison module 1. The positive power input terminal of the first comparator U1A is connected to the negative power input terminal of the second comparator U1B as the input terminal V of the signal detection circuit. in Connected to the output end of the sensor to be detected, the positive power input end of the second comparator U1B is connected to the third connection end of the threshold value circuit, the fourth connection end of the threshold value circuit 3 is grounded, and the output end of the first comparator U1A and the output end of the second comparator U2B are connected to the OR gate logic module 2.

[0058] In another preferred embodiment, Figure 4 As shown, the threshold value circuit 3 includes a first threshold resistor R m1 , the second threshold resistor R m2 and the third threshold resistor R m3 .

[0059] Among them, the first threshold resistor R m1 One end of the threshold circuit 3 is connected to the power supply V r , the first threshold resistor R m1 The other end of the threshold value circuit 3 is connected to the negative power input terminal of the first comparator U1A and the second threshold resistor R m2 One end of the second threshold resistor R m2 The other end of the threshold value circuit 3 is connected to the third threshold resistor R m3 One end of the second comparator U1B is connected to the positive power input terminal, and the third threshold resistor R m3 The other end of the threshold circuit 3 is connected to the ground GND as a fourth connection end.

[0060] In a specific embodiment, the signal detection circuit further includes a voltage dividing module 4, wherein Figure 2 As shown, the first connection end of the voltage divider module 4 is connected to the power supply V r After the second connection end of the voltage divider module 4 is connected to the positive power input end of the first comparator U1A and the negative power input end of the second comparator U1B in the comparison module 1, it is connected to the output end of the sensor to be detected as the input end of the entire signal detection circuit, and the third connection end of the voltage divider module 4 is grounded GND.

[0061] In one example, the voltage dividing module 4 includes a first voltage dividing resistor R41 and a second voltage dividing resistor R42.

[0062] One end of the first voltage-dividing resistor R41 is connected to the power supply V as the first connection end of the voltage-dividing module 4. rAfter the other end of the first voltage-dividing resistor R41 is connected to one end of the second voltage-dividing resistor R42, it is connected as the second connection end of the voltage-dividing module 4 to the output end of the sensor to be detected and the positive power input end of the first comparator U1A and the negative power input end of the second comparator U1B in the comparison module 1, and the other end of the second voltage-dividing resistor R42 is grounded GND as the third connection end of the voltage-dividing module 4.

[0063] In a preferred embodiment, the signal detection circuit further includes a voltage-stabilizing resistor RT, and the OR gate logic module 2 includes a first diode D21 and a second diode D22.

[0064] like Figure 2 As shown, the anode of the first diode D21 is connected to the output terminal of the first comparator U1A, and the cathode of the first diode D21 serves as the output terminal V of the entire signal detection circuit. o They are respectively connected to the signal detection end of the controller, one end of the stabilizing resistor RT and the cathode of the second diode D22. The anode of the second diode D22 is connected to the output end of the second comparator U1B. The other end of the stabilizing resistor RT is grounded GND.

[0065] The signal detection circuit provided in this application has an input terminal V corresponding to it. in Whether it is connected to the 12V positive pole when the high-effective sensor is closed, or connected to the 12V negative pole when the low-effective sensor is closed, the output V o Output high level.

[0066] Specifically, for the first comparator U1A and the second comparator U1B, the input signal Vin is simultaneously connected to the positive power input terminal of the first comparator U1A and the negative power input terminal of the second comparator U1B. For the first comparator U1A, when the input signal Vin is higher than the upper limit voltage corresponding to the negative power input terminal of the first comparator U1A, the first comparator U1A outputs a 12V high level. When the input signal Vin is lower than the upper limit voltage corresponding to the negative power input terminal of the first comparator U1A, the first comparator U1A outputs a 0V low level.

[0067] For the second comparator U1B, when the input signal Vin is lower than the lower limit voltage corresponding to the positive power input terminal of the second comparator U1B, the second comparator U1B outputs a 12V high level; when the input signal Vin is higher than the lower limit voltage corresponding to the positive power input terminal of the second comparator U1B, the second comparator U1B outputs a 0V low level.

[0068] Since the comparator input is in a high impedance state, that is, the current flowing from the threshold circuit to the negative power input terminal of the first comparator and the positive power input terminal of the second comparator can be ignored, the upper limit voltage corresponding to the negative power input terminal of the first comparator is:

[0069]

[0070] In this formula, V H Indicates the upper limit voltage, V r Indicates the voltage provided by the power supply, R m1 is the first threshold resistor, R m2 Represents the second threshold resistance, R m3 Represents the third threshold resistor.

[0071] Assume V r =12V, R m1 =3.3K, R m2 =3.3K, R m3 =3.3K, then there exists:

[0072]

[0073] The lower limit voltage corresponding to the positive input terminal of the second comparator is:

[0074]

[0075] Assume V r =12V, R m1 =3.3K, R m2 =3.3K, R m3 =3.3K, then there exists:

[0076]

[0077] The first diode D21 and the second diode D22 form an OR gate. When either the first comparator U1A or the second comparator U1B outputs 12V, the output terminal V o Both output high level. When the first comparator U1A and the second comparator U1B both output 0V, the output terminal V o Output low level.

[0078] That is, for the signal detection circuit provided in this application, V in Greater than 8V or V in Below 4V, the output terminal Vo will output 12V high level. in Between 4V and 8V, the output terminal Vo outputs 0V.

[0079] See also Figure 5 , Figure 5 FIG. 1 is a schematic diagram showing the connection relationship between a signal detection circuit and a high-efficiency sensor provided in an embodiment of the present application. Figure 5As shown, one end of the high effective sensor Q1 is connected to a 12V power supply, and the other end of the high effective sensor Q1 is connected to an input end V of the signal detection circuit provided in the present application. in .

[0080] like Figure 5 As shown, when the high-effective sensor is closed, the input terminal V in The input signal is greater than the upper limit voltage (for example, 8V). At this time, the first comparator U1A outputs a 12V high level, and the second comparator U1B outputs a 0V low level. Under the action of the OR gate logic module (the first diode D21 and the second diode D22), the signal detection circuit output terminal Vo outputs a 12V high level to the signal detection terminal of the controller.

[0081] When the high effective sensor is disconnected, the input terminal V in The corresponding input voltage is:

[0082]

[0083] At this time, the input terminal V in When the input signal is between the upper voltage limit and the lower voltage limit, the first comparator U1A and the second comparator U1B both output 0V. At this time, under the action of the OR gate logic module, the output terminal Vo of the signal detection circuit outputs 0V.

[0084] See also Figure 6 , Figure 6 FIG. 1 is a schematic diagram showing the connection relationship between a signal detection circuit and a low-effective sensor provided in an embodiment of the present application. Figure 6 As shown, one end of the low effective sensor Q2 is connected to the negative 12V power supply, and the other end of the low effective sensor Q2 is connected to the input end V of the signal detection circuit provided in the present application. in .

[0085] like Figure 6 As shown, when the low active sensor is closed, the input terminal V in The input signal is less than the upper limit voltage (for example, 8V) and the lower limit voltage (4V). At this time, the first comparator U1A outputs a low level of 0V, and the second comparator U1B outputs a high level of 12V. Under the action of the OR gate logic module (the first diode D21 and the second diode D22), the signal detection circuit output terminal Vo outputs a high level of 12V to the signal detection terminal of the controller.

[0086] When the low-effective sensor is disconnected, the input terminal V in The corresponding input voltage is:

[0087]

[0088] At this time, the input terminal Vin When the input signal is between the upper voltage limit and the lower voltage limit, the first comparator U1A and the second comparator U1B both output 0V. At this time, under the action of the OR gate logic module, the output terminal Vo of the signal detection circuit outputs 0V.

[0089] It can be seen that the signal detection circuit provided in the present application is compatible with both high-effective sensors and low-effective sensors. When the high-effective sensor or the low-effective sensor is closed, it ensures that the controller signal detection end detects high-level signals. When the high-effective sensor or the low-effective sensor is disconnected, it ensures that the controller signal detection end detects low-level signals. In this way, the multiplexing of the port of the enhanced controller is enhanced.

[0090] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0091] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0092] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0093] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0094] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A signal detection circuit based on a switch type sensor, characterized in that: The signal detection circuit includes a comparison module and an OR gate logic module. The upper voltage input terminal of the comparison module is connected to a power supply, the lower voltage input terminal of the comparison module is grounded, the common terminal of the comparison module is connected to the output terminal of the sensor to be detected, and the sensor to be detected is a switch type sensor; The output end of the comparison module is connected to the signal detection end of the controller through the gate logic module.

2. The signal detection circuit based on the switch type sensor according to claim 1, characterized in that: The comparison module includes a first comparator and a second comparator. The negative power input terminal of the first comparator is connected to the power supply as the upper limit voltage input terminal of the comparison module, the positive power input terminal of the first comparator is connected to the negative power input terminal of the second comparator and then connected to the output terminal of the sensor to be detected as the input terminal of the signal detection circuit, and the positive power input terminal of the second comparator is grounded; The output terminal of the first comparator and the output terminal of the second comparator are connected to the OR gate logic module.

3. The signal detection circuit of the switch type sensor according to claim 2, characterized in that: The signal detection circuit also includes a threshold value circuit, Among them, the first connection end of the threshold value circuit is connected to the power supply, the second connection end of the threshold value circuit is connected to the negative power input end of the first comparator, the third connection end of the threshold value circuit is connected to the positive power input end of the second comparator, and the fourth connection end of the threshold value circuit is grounded.

4. The signal detection circuit of the switch type sensor according to claim 3, characterized in that: The threshold value circuit includes a first threshold resistor, a second threshold resistor and a third threshold resistor, Among them, one end of the first threshold resistor is connected to the power supply as the first connection end of the threshold value circuit, the other end of the first threshold resistor is connected to the negative power input end of the first comparator and one end of the second threshold resistor as the second connection end of the threshold value circuit, the other end of the second threshold resistor is connected to one end of the third threshold resistor and the positive power input end of the second comparator as the third connection end of the threshold value circuit, and the other end of the third threshold resistor is grounded as the fourth connection end of the threshold value circuit.

5. The signal detection circuit of the switch type sensor according to claim 3, characterized in that: The signal detection circuit also includes a voltage dividing module. Among them, the first connection end of the voltage divider module is connected to the power supply, the second connection end of the voltage divider module is connected to the positive power input end of the first comparator and the negative power input end of the second comparator in the comparison module, and then connected to the output end of the sensor to be detected as the input end of the entire signal detection circuit, and the third connection end of the voltage divider module is grounded.

6. The signal detection circuit of the switch type sensor according to claim 5, characterized in that: The voltage dividing module includes a first voltage dividing resistor and a second voltage dividing resistor. Among them, one end of the first voltage-dividing resistor is connected to the power supply as the first connection end of the voltage-dividing module, and the other end of the first voltage-dividing resistor is connected to one end of the second voltage-dividing resistor, and then connected to the output end of the sensor to be detected and the positive power input end of the first comparator and the negative power input end of the second comparator in the comparison module as the second connection end of the voltage-dividing module, and the other end of the second voltage-dividing resistor is grounded as the third connection end of the voltage-dividing module.

7. The signal detection circuit of the switch type sensor according to claim 2, characterized in that: The signal detection circuit also includes a voltage-stabilizing resistor, One end of the voltage-stabilizing resistor is connected to the OR gate logic module and the signal detection end of the controller respectively, and the other end of the voltage-stabilizing resistor is grounded.

8. The signal detection circuit of the switch type sensor according to claim 7, characterized in that: The OR gate logic module includes a first diode and a second diode. The anode of the first diode is connected to the output end of the first comparator, and the cathode of the first diode is connected to the signal detection end of the controller, one end of the voltage-stabilizing resistor and the cathode of the second diode respectively; An anode of the second diode is connected to the output terminal of the second comparator.

9. The signal detection circuit of the switch type sensor according to claim 4, characterized in that: The upper limit voltage provided by the threshold value circuit to the comparison module is: Among them, V H Indicates the upper limit voltage, V r Indicates the voltage provided by the power supply, R m1 is the first threshold resistor, R m2 Represents the second threshold resistance, R m3 Represents the third threshold resistor.

10. The signal detection circuit of the switch type sensor according to claim 4, characterized in that: The lower limit voltage provided by the threshold value circuit for the comparison module is: Among them, v L Indicates the lower limit voltage, V r Indicates the voltage provided by the power supply, R m1 is the first threshold resistor, R m2 Represents the second threshold resistance, R m3 Represents the third threshold resistor.

Citation Information

Cited By

  • Signal acquisition circuit and electronic equipment

    CN120335366A