A design method and system for an inductive sensor circuit
By using pulse energy injection and amplitude attenuation monitoring in inductor sensors, combined with pulse coding and decoding technology, the response speed and sensitivity are adjusted, and the problems of large power consumption and poor anti-interference ability in the existing technology are solved, and low power consumption is achieved. Integrated and high-precision inductance detection.
Patent Information
- Application Number
- CN202411089135.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-09
AI Technical Summary
The existing inductance sensor technology has problems such as large power consumption, difficulty in integration, and poor anti-interference ability. In particular, the inductance value is greatly affected by the external magnetic field, resulting in increased costs and the measurement accuracy is affected by noise.
The pulse energy injector is used to inject pulse energy into the LC resonance circuit, and the amplitude attenuation time is set through the amplitude attenuation monitoring circuit to monitor the amplitude attenuation time. The pulse encoding and decoding circuits are used to adjust the response speed and sensitivity, and the LC resonance frequency and pulse are adjusted. Inject energy to improve anti-interference ability.
Reduces the operating power consumption of inductor sensors, reduces the demand for inductor values, enables on-chip integration, and improves anti-interference capability and measurement accuracy.
Smart Images

Figure CN118624991B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of circuit design, and in particular discloses a design method and system for an inductive sensor circuit. Background Art
[0002] Inductive sensors can convert inductance values into digital signals. They are mainly used in various applications, including automobiles, large household appliances, consumer electronics, mobile devices, computing, industry, and medical. The existing implementation scheme of inductive sensors is usually: through an LC oscillator composed of an inductor and a capacitor, when the electromagnetic field is disturbed, a small shift in inductance can be observed, which has a certain relationship with the resonant frequency. By measuring the oscillation frequency of the LC resonator and converting this frequency measurement value into an equivalent inductance, a digital value proportional to the oscillation frequency is output.
[0003] The main disadvantages of existing sensing technology are: high power consumption, requiring the LC oscillation circuit to work at all times; difficult to integrate, the degree to which the inductance value is affected by the external magnetic field is strongly related to the measurement distance and the coil area, and usually a larger inductance value and magnetic flux area are required to achieve sensitive measurement, which will greatly increase the cost of the chip and is not conducive to integration; poor anti-interference ability, power supply noise, and environmental noise have a greater impact on measurement accuracy. Summary of the invention
[0004] The present invention provides a design method and system for an inductive sensor circuit, aiming to solve at least one of the above-mentioned defects existing in the existing sensing technology.
[0005] One aspect of the present invention relates to a method for designing an inductive sensor circuit, comprising the following steps:
[0006] A pulse energy injector is used to inject pulse energy into the LC resonant circuit to be detected;
[0007] Using an amplitude attenuation monitoring circuit to set multiple amplitude attenuation monitoring points, and monitoring the time when the amplitude waveform of the LC resonant circuit to be detected attenuates to reach the multiple amplitude attenuation monitoring points;
[0008] The pulse injection process of the LC resonant circuit to be detected is encoded by using a pulse encoding circuit;
[0009] The pulse decoding circuit is used to decode the subsequent detection process of the LC resonant circuit to be detected.
[0010] Furthermore, the steps of using the amplitude attenuation monitoring circuit to set a plurality of amplitude attenuation monitoring points and monitoring the time when the amplitude waveform of the LC resonant circuit to be detected attenuates to reach the plurality of amplitude attenuation monitoring points include:
[0011] Using an amplitude attenuation monitoring unit to set a plurality of amplitude attenuation monitoring points;
[0012] The inductor environment monitoring unit is used to monitor the time when the resonant waveform decays to reach multiple amplitude decay monitoring points, so as to monitor the environment around the inductor.
[0013] Furthermore, after the step of decoding the subsequent detection process of the LC resonant circuit to be detected by using a pulse decoding circuit, the following step is further included:
[0014] The response speed adjustment module is used to adjust the frequency of LC resonance to adjust the response speed of the inductive sensor;
[0015] The sensitivity adjustment module is used to adjust the pulse injection energy to adjust the detection sensitivity of the inductive sensor.
[0016] Another aspect of the present invention relates to a design system for an inductive sensor circuit, which is applied to the design method for an inductive sensor circuit as described above. The design system for an inductive sensor circuit includes:
[0017] A pulse energy injector, used for injecting pulse energy into the LC resonant circuit to be detected;
[0018] An amplitude attenuation monitoring circuit is used to monitor the time it takes for the amplitude of the LC resonant circuit to be detected to decay to a set detection point at multiple amplitude attenuation monitoring points;
[0019] A pulse encoding circuit, used for encoding a pulse injection process of the LC resonant circuit to be detected;
[0020] The pulse decoding circuit is used for decoding the subsequent detection process of the LC resonant circuit to be detected.
[0021] Furthermore, the amplitude attenuation monitoring circuit includes:
[0022] An amplitude attenuation monitoring unit, used for setting a plurality of amplitude attenuation monitoring points;
[0023] The inductor environment monitoring unit is used to monitor the time when the resonant waveform decays to reach multiple amplitude decay monitoring points, so as to monitor the environment around the inductor.
[0024] Furthermore, the design system of the inductive sensor circuit also includes:
[0025] A response speed adjustment module is used to adjust the frequency of LC resonance to adjust the response speed of the inductive sensor;
[0026] The sensitivity adjustment module is used to adjust the magnitude of the pulse injection energy to adjust the detection sensitivity of the inductive sensor.
[0027] Further, the pulse energy injector includes a first P-type switch tube, a second P-type switch tube, a third P-type switch tube, a first N-type switch tube, a second N-type switch tube, a third N-type switch tube, a fourth N-type switch tube, an inverter and a buffer, the source of the first P-type switch tube is connected to the LC resonant circuit to be detected, the gate of the first P-type switch tube is connected to the inverter, the drain of the first P-type switch tube is connected to the source of the second P-type switch tube, the drain of the second P-type switch tube is connected to the working power supply, the gate of the second P-type switch tube is connected to the gate of the third P-type switch tube, the drain of the third P-type switch tube is connected to the working power supply, and the third P-type switch tube is connected to the gate of the third P-type switch tube. The source of the first N-type switch tube is connected to the gate of the third P-type switch tube; the drain of the first N-type switch tube is connected to the LC resonant circuit to be detected, the gate of the first N-type switch tube is connected to the buffer, the source of the first N-type switch tube is connected to the drain of the second N-type switch tube, the gate of the second N-type switch tube is connected to the gate of the third N-type switch tube, the source of the second N-type switch tube is grounded, the drain of the third N-type switch tube is connected to the source of the third P-type switch tube, the gate of the third N-type switch tube is connected to the gate of the fourth N-type switch tube, the drain of the fourth N-type switch tube is connected to the gate of the fourth N-type switch tube, and the source of the fourth N-type switch tube is grounded.
[0028] Furthermore, the amplitude attenuation monitoring circuit includes a plurality of differential input comparators connected in parallel.
[0029] Furthermore, the amplitude attenuation monitoring circuit includes a first differential input comparator, a second differential input comparator, a third differential input comparator, a first digital sampling circuit, a second digital sampling circuit and a third digital sampling circuit, the output end of the first differential input comparator is connected to the input end of the first digital sampling circuit, the output end of the second differential input comparator is connected to the input end of the second digital sampling circuit, and the output end of the third differential input comparator is connected to the input end of the third digital sampling circuit.
[0030] Furthermore, the design system of the inductive sensor circuit also includes a digital signal processor, which is connected to the pulse encoding circuit and the pulse decoding circuit respectively, and is used to set the frequency of pulse injection or encode the pulse injection process, and decode the subsequent detection process.
[0031] The beneficial effects achieved by the present invention are:
[0032] The present invention provides a design method and system for an inductance sensor circuit, wherein a pulse energy injector is used to inject pulse energy into an LC resonant circuit to be detected; an amplitude attenuation monitoring circuit is used to set multiple amplitude attenuation monitoring points, and the time when the amplitude waveform of the LC resonant circuit to be detected reaches multiple amplitude attenuation monitoring points is monitored; a pulse encoding circuit is used to encode the pulse injection process of the LC resonant circuit to be detected; a pulse decoding circuit is used to decode the subsequent detection process of the LC resonant circuit to be detected; the pulse energy can be injected into the resonant circuit by the pulse energy injector, multiple amplitude attenuation monitoring points are set by the amplitude attenuation monitoring circuit, and the time when the resonant waveform attenuates to reach multiple amplitude monitoring points is used to monitor the surrounding environment of the inductor and realize inductance sensing; the response speed of the inductance sensor can be adjusted by adjusting the frequency of LC resonance, the detection sensitivity of the inductance sensor can be adjusted by adjusting the size of the pulse injection energy, and the anti-interference ability can be improved by encoding the pulse injection process and decoding the subsequent detection process. The design method and system for the inductance sensor circuit provided by the present invention reduce the operating power consumption of the inductance sensor; reduce the sensor's demand for inductance value, so that it can be integrated on chip; and improve the anti-interference ability of inductance detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of a flow chart of a design method of an inductive sensor circuit of the present invention;
[0034] Figure 2 is a functional block diagram of a design system for an inductive sensor circuit of the present invention;
[0035] Figure 3 A circuit schematic diagram of a design system for an inductive sensor circuit of the present invention;
[0036] Figure 4 The circuit diagram of the differential input comparator in the design system of the inductive sensor circuit of the present invention. DETAILED DESCRIPTION
[0037] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0038] like Figure 1 and Figure 2 As shown, the first embodiment of the present invention provides a design method for an inductive sensor circuit, comprising the following steps:
[0039] Step S100: injecting pulse energy into the LC resonant circuit to be detected using a pulse energy injector.
[0040] Inductors L0 and C0 form a basic resonant circuit, and pulse energy is injected into the resonant circuit through a pulse energy injector I0.
[0041] Step S200: using the amplitude attenuation monitoring circuit to set a plurality of amplitude attenuation monitoring points, and monitoring the time when the amplitude waveform of the LC resonant circuit to be detected attenuates to reach the plurality of amplitude attenuation monitoring points.
[0042] The amplitude attenuation monitoring circuit I1 sets multiple amplitude attenuation monitoring points to monitor the time it takes for the LC resonance amplitude to decay to the set detection point. The time it takes for the resonance waveform to decay to reach multiple amplitude monitoring points is used to monitor the surrounding environment of the inductor and realize inductor sensing.
[0043] Step S300: Encode the pulse injection process of the LC resonant circuit to be detected by using a pulse encoding circuit.
[0044] The pulse encoding circuit I2 encodes the pulse injection process of the LC resonant circuit to be detected, thereby encoding the injected pulse.
[0045] Step S400: Decoding the subsequent detection process of the LC resonant circuit to be detected by using a pulse decoding circuit.
[0046] The pulse decoding circuit I3 realizes pulse decoding to reduce the influence of noise interference on the detection process.
[0047] Further, see Figures 1 to 4 In the design method of the inductance sensor circuit provided in this embodiment, step S200 includes:
[0048] Step S210: using an amplitude attenuation monitoring unit to set a plurality of amplitude attenuation monitoring points.
[0049] The amplitude attenuation monitoring unit is provided with a plurality of amplitude attenuation monitoring points.
[0050] Step S220: using an inductor environment monitoring unit to monitor the time when the resonant waveform attenuates to reach multiple amplitude attenuation monitoring points, so as to monitor the environment around the inductor.
[0051] The inductor environment monitoring unit monitors the time it takes for the LC resonance amplitude to decay to a set detection point.
[0052] Preferably, after step S400, the following steps are further included:
[0053] Step S500: Use the response speed adjustment module to adjust the frequency of the LC resonance to adjust the response speed of the inductive sensor.
[0054] The higher the resonance frequency of the LC resonant cavity, the faster the detection response speed. The response speed adjustment module adjusts the response speed of the inductive sensor by adjusting the frequency of the LC resonance.
[0055] Step S600: Use the sensitivity adjustment module to adjust the pulse injection energy to adjust the detection sensitivity of the inductive sensor.
[0056] The magnitude of the pulse injection energy can adjust the detection sensitivity of the inductive sensor. The sensitivity adjustment module adjusts the detection sensitivity of the inductive sensor by adjusting the magnitude of the pulse injection energy.
[0057] like Figures 1 to 4 As shown, this embodiment also provides a design system for an inductance sensor circuit, which is applied to the design method of the inductance sensor circuit as mentioned above. The design system for the inductance sensor circuit includes a pulse energy injector, an amplitude attenuation monitoring circuit, a pulse encoding circuit and a pulse decoding circuit, wherein the pulse energy injector is used to inject pulse energy into the LC resonant circuit to be detected; the amplitude attenuation monitoring circuit is used to monitor the time for the amplitude of the LC resonant circuit to be detected to decay to a set detection point at multiple amplitude attenuation monitoring points; the pulse encoding circuit is used to encode the pulse injection process of the LC resonant circuit to be detected; and the pulse decoding circuit is used to decode the subsequent detection process of the LC resonant circuit to be detected.
[0058] The pulse energy injector injects pulse energy into the resonant circuit through the pulse energy injector I0.
[0059] The amplitude attenuation monitoring circuit sets multiple amplitude attenuation monitoring points to monitor the time it takes for the LC resonance amplitude to decay to the set detection point. The time it takes for the resonance waveform to decay to reach multiple amplitude monitoring points is used to monitor the surrounding environment of the inductor and realize inductor sensing.
[0060] The pulse encoding circuit encodes the pulse injection process of the LC resonant circuit to be detected, thereby realizing the encoding of the injected pulse.
[0061] The pulse decoding circuit realizes pulse decoding to reduce the influence of noise interference on the detection process.
[0062] Further, see Figures 1 to 4 In the design system of the inductor sensor circuit provided in this embodiment, the amplitude attenuation monitoring circuit includes an amplitude attenuation monitoring unit and an inductor environment monitoring unit, wherein the amplitude attenuation monitoring unit is used to set multiple amplitude attenuation monitoring points; the inductor environment monitoring unit is used to monitor the time when the resonant waveform attenuates to reach multiple amplitude attenuation monitoring points, so as to realize the monitoring of the surrounding environment of the inductor.
[0063] In this embodiment, the amplitude attenuation monitoring unit is provided with a plurality of amplitude attenuation monitoring points. The inductance environment monitoring unit monitors the time for the LC resonance amplitude to decay to a set detection point.
[0064] Furthermore, the design system of the inductive sensor circuit also includes a response speed adjustment module and a sensitivity adjustment module, wherein the response speed adjustment module is used to adjust the frequency of LC resonance to adjust the response speed of the inductive sensor; the sensitivity adjustment module is used to adjust the size of the pulse injection energy to adjust the detection sensitivity of the inductive sensor.
[0065] In this embodiment, the response speed adjustment module adjusts the response speed of the inductive sensor by adjusting the frequency of the LC resonance, and the sensitivity adjustment module adjusts the detection sensitivity of the inductive sensor by adjusting the magnitude of the pulse injection energy.
[0066] Preferably, see Figures 1 to 4 , the design system of the inductance sensor circuit provided in this embodiment, the pulse energy injector includes a first P-type switch tube MP0, a second P-type switch tube MP1, a third P-type switch tube MP2, a first N-type switch tube MN0, a second N-type switch tube MN1, a third N-type switch tube MN2, a fourth N-type switch tube MN3, an inverter INV0 and a buffer BUF0, the source of the first P-type switch tube is connected to the LC resonant circuit to be detected, the gate of the first P-type switch tube is connected to the inverter, the drain of the first P-type switch tube is connected to the source of the second P-type switch tube, the drain of the second P-type switch tube is connected to the working power supply VDD, the gate of the second P-type switch tube is connected to the gate of the third P-type switch tube, and the third P-type The drain of the switch tube is connected to the working power supply VDD, the source of the third P-type switch tube is connected to the gate of the third P-type switch tube; the drain of the first N-type switch tube is connected to the LC resonant circuit to be detected, the gate of the first N-type switch tube is connected to the buffer, the source of the first N-type switch tube is connected to the drain of the second N-type switch tube, the gate of the second N-type switch tube is connected to the gate of the third N-type switch tube, the source of the second N-type switch tube is grounded GND, the drain of the third N-type switch tube is connected to the source of the third P-type switch tube, the gate of the third N-type switch tube is connected to the gate of the fourth N-type switch tube, the drain of the fourth N-type switch tube is connected to the gate of the fourth N-type switch tube, and the source of the fourth N-type switch tube is grounded GND. The design system of the inductance sensor circuit provided in this embodiment injects current pulse energy into the resonant cavity circuit composed of L0 and C0 in the form of a switch.
[0067] Further, see Figures 1 to 4In the design system of the inductance sensor circuit provided in this embodiment, the amplitude attenuation monitoring circuit includes a plurality of differential input comparators connected in parallel. Specifically, the amplitude attenuation monitoring circuit includes a first differential input comparator AMP0, a second differential input comparator AMP1, a third differential input comparator AMP2, a first digital sampling circuit SAMPLE0, a second digital sampling circuit SAMPLE1 and a third digital sampling circuit SAMPLE2, the output end of the first differential input comparator AMP0 is connected to the input end of the first digital sampling circuit SAMPLE0, the output end of the second differential input comparator AMP1 is connected to the input end of the second digital sampling circuit SAMPLE1, and the output end of the third differential input comparator AMP2 is connected to the input end of the third digital sampling circuit SAMPLE2. In the design system of the inductance sensor circuit provided in this embodiment, the first differential input comparator AMP0, the second differential input comparator AMP1, and the third differential input comparator AMP2 amplify the amplitude to full amplitude and convert it into a digital pulse signal when the amplitude of the LC resonant cavity exceeds a preset differential reference voltage. The first digital sampling circuit SAMPLE0, the second digital sampling circuit SAMPLE1, and the third digital sampling circuit SAMPLE2 respectively sample the digital pulse signals of the first differential input comparator AMP0, the second differential input comparator AMP1, and the third differential input comparator AMP2. When N pulse waves are sampled continuously, it is determined that the amplitude attenuation has not exceeded the interval. When N pulse waves cannot be sampled continuously, it is determined that the amplitude attenuation has exceeded the determination interval.
[0068] Preferably, see Figures 1 to 4 The design system of the inductance sensor circuit provided in this embodiment further includes a digital signal processor I4, which is connected to the pulse encoding circuit and the pulse decoding circuit respectively, and is used to set the frequency of pulse injection or encode the pulse injection process, and decode the subsequent detection process. In this embodiment, the digital signal processor I4 can set the frequency of pulse injection or encode the pulse injection process, and decode the subsequent detection process.
[0069] like Figures 1 to 4 As shown, the design method and system of the inductive sensor circuit provided in this embodiment have the following working principles:
[0070] The design method of the inductance sensor circuit of this embodiment is to complete the sensing scheme by monitoring the attenuation process of the amplitude of the LC resonant circuit after the energy is injected into the resonance. Figure 2 The figure shows a functional block diagram of this embodiment, which is the main system structure of this embodiment.
[0071] Among them, the inductor L0 and C0 form a basic resonant circuit, the pulse energy injector I0 can inject pulse energy into the resonant circuit, and the amplitude attenuation monitoring circuit I1 can set multiple amplitude attenuation monitoring points to monitor the time for the LC resonance amplitude to decay to the set detection point. The pulse encoding circuit I2 can realize the encoding of the injected pulse, and the pulse decoding circuit I3 can realize the decoding of the pulse to reduce the influence of noise interference on the detection process.
[0072] Since the amplitude attenuation of the LC resonant cavity after energy injection mainly depends on the loss, the change of the dielectric around the inductor will change the Q value of the inductor, thereby changing the amplitude attenuation speed after the LC resonant cavity is injected with energy. Therefore, by detecting the attenuation speed of the resonant waveform amplitude after the LC resonant cavity is injected with energy, the environmental changes around the inductor can be detected to achieve inductance sensing.
[0073] The higher the resonant frequency of the LC resonant cavity, the faster the detection response speed. The pulse injection energy can adjust the detection sensitivity of the inductive sensor. By encoding the pulse injection process and decoding the subsequent detection process, the anti-interference ability can be improved.
[0074] like Figure 3 The figure shows a specific implementation circuit of the inductive sensor circuit design system.
[0075] The resonant cavity circuit includes L0 and C0, where L0 is a differential inductor. Port VB0 needs to input a voltage signal to provide a DC operating point for the post-amplifier. The filter circuit composed of resistor R0 and capacitor C1 realizes the isolation between the resonant circuit and the reference, reducing the influence of the oscillation signal on the VB0 input voltage.
[0076] The pulse energy injector is composed of the first N-type switch tube MN0, the second N-type switch tube MN1, the third N-type switch tube MN2, the fourth N-type switch tube MN3, the first P-type switch tube MP0, the second P-type switch tube MP1, the third P-type switch tube MP2 (the device can be implemented by MOS or BJT), the inverter INV0 and the buffer BUF0. The inputs of INV0 and BUF0 are the input control signals of the pulse energy injector, which can inject current pulse energy into the resonant cavity circuit composed of L0 and C0 in the form of a switch. Port IB0 needs to input a current signal. The size of the current signal can adjust the detection sensitivity of the sensor.
[0077] The amplitude attenuation monitoring circuit is implemented by N parallel differential input comparators, where N depends on the number of amplitude monitoring points that the user needs to set. For example, if N is 3, Figure 4As shown, the main structure of the amplitude attenuation monitoring circuit is composed of the first differential input comparator AMP0, the second differential input comparator AMP1, the third differential input comparator AMP2, the first digital sampling circuit SAMPLE0, the second digital sampling circuit SAMPLE1 and the third digital sampling circuit SAMPLE2. Ports VBP0, VBN0, VBP1, VBN1, VBP2 and VBN2 need to input voltage signals, and the amplitude monitoring point size can be set by adjusting the input voltage difference between VBP0 and VBN0, VBP1 and VBN1, and VBP2 and BPN2. The input source of the differential input comparator is the voltage difference across the differential inductor. When the amplitude of the LC resonant cavity exceeds the preset differential reference voltage, the first differential input comparator AMP0, the second differential input comparator AMP1, and the third differential input comparator AMP2 amplify the amplitude to full amplitude and convert it into a digital pulse signal. The first digital sampling circuit SAMPLE0, the second digital sampling circuit SAMPLE1, and the third digital sampling circuit SAMPLE2 respectively sample the digital pulse signals of the first differential input comparator AMP0, the second differential input comparator AMP1, and the third differential input comparator AMP2. When N pulse waves are continuously sampled, it is determined that the amplitude attenuation does not cross the interval. When N pulse waves cannot be continuously sampled, it is determined that the amplitude attenuation crosses the determination interval. Assuming that the output is 1 if it does not cross the interval, the output is 0 if it crosses the interval. The sampling period of the first digital sampling circuit SAMPLE0, the second digital sampling circuit SAMPLE1, and the third digital sampling circuit SAMPLE2 is the system clock of the post-processor.
[0078] The pulse encoding circuit and the pulse decoding circuit are implemented by a digital signal processor I4, which can be a single-chip microcomputer MCU, or a digital signal processor such as a DSP. The digital signal processor I4 can set the frequency of pulse injection or encode the pulse injection process. After receiving the digital signals output by the first digital sampling circuit SAMPLE0, the second digital sampling circuit SAMPLE1, and the third digital sampling circuit SAMPLE2, the digital signal processor I4 can determine the speed of amplitude attenuation after a single pulse injection, such as the time from the first digital sampling circuit SAMPLE0, the second digital sampling circuit SAMPLE1, and the third digital sampling circuit SAMPLE2 outputting all 1 to all 0, or the time from 1 to 0 between the two, which can reflect the speed of amplitude attenuation. The number of all 1s and the time from 1 to 0 when the SAMPLE unit pulse is injected are used as the judgment criteria for inductance sensing. After encoding the pulse injection process, if the encoding is injection-no injection-injection, the decoding must also show an attenuation process. Without the attenuation process, the first digital sampling circuit SAMPLE0, the second digital sampling circuit SAMPLE1 and the third digital sampling circuit SAMPLE2 output all 0s, and there is an attenuation process. Otherwise, it is considered that the inductive sensing monitoring is interfered with and needs to be re-transmitted for detection. Pulse injection encoding and decoding will reduce the monitoring speed of the sensor. If there are high requirements for the monitoring speed, the encoding and decoding function can be turned off through the digital signal processor I4, at the cost of reducing the anti-interference ability of the system. The clocks of SAMPLE0, SAMPLE1, and SAMPLE2 need to be output from the digital signal processor I4.
[0079] Figure 4 The figure shows a specific embodiment of a differential comparator, where MP0, MP1, MP2, and MP3 are differential input stages, where VIP and VIN are monitoring signal voltage input ports, and VBP and VBN are reference voltage input ports. MP4 and MP5 constitute the tail current source of the comparator, providing a DC bias for the comparator, and port IB0 needs to input a current signal. MN0, MN1, MN2, MN3, MP6, and MP7 are differential signal amplification stages, and MP8 and MN2 are output drive enhancement stages. The voltage signal ((VIP-VIN) - (VBP-VBN)) is amplified and finally converted into a digital signal with full-scale output.
[0080] The above description takes setting 3 monitoring points as an example, and the same can be obtained when setting N monitoring points.
[0081] Figure 4 The circuit structure shown is a differential structure, which can improve the system's ability to resist common-mode interference, but the sensor is not limited to the differential form. The subsequent differential comparator can also be replaced with a single-ended comparator, and the signal input of the comparator can be replaced with either end of the inductor.
[0082] Compared with the prior art, the design method and system of the inductance sensor circuit provided by this embodiment adopts a pulse energy injector to inject pulse energy into the LC resonant circuit to be detected; uses an amplitude attenuation monitoring circuit to set multiple amplitude attenuation monitoring points and monitors the time when the amplitude waveform of the LC resonant circuit to be detected reaches multiple amplitude attenuation monitoring points; uses a pulse encoding circuit to encode the pulse injection process of the LC resonant circuit to be detected; uses a pulse decoding circuit to decode the subsequent detection process of the LC resonant circuit to be detected; the pulse energy can be injected into the resonant circuit by the pulse energy injector, and multiple amplitude attenuation monitoring points are set by the amplitude attenuation monitoring circuit. The time when the resonant waveform attenuates to reach multiple amplitude monitoring points is used to monitor the surrounding environment of the inductor and realize inductance sensing; the response speed of the inductance sensor can be adjusted by adjusting the frequency of LC resonance, the detection sensitivity of the inductance sensor can be adjusted by adjusting the size of the pulse injection energy, and the anti-interference ability can be improved by encoding the pulse injection process and decoding the subsequent detection process. The design method and system of the inductance sensor circuit provided by this embodiment reduce the operating power consumption of the inductance sensor; reduce the sensor's demand for inductance value, so that it can be integrated on chip; and improve the anti-interference ability of inductance detection.
[0083] Although preferred embodiments of the present invention have been described, additional changes and modifications may be made to these embodiments by those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention. Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A design system for an inductive sensor circuit, applied to a design method for an inductive sensor circuit, characterized in that: The design system of the inductive sensor circuit includes: A pulse energy injector is connected to the LC resonant circuit to be detected and is used to inject pulse energy into the LC resonant circuit to be detected; An amplitude attenuation monitoring circuit is connected to the LC resonant circuit to be detected, and is used to set a plurality of amplitude attenuation monitoring points and monitor the time when the amplitude waveform of the LC resonant circuit to be detected attenuates to reach the plurality of amplitude attenuation monitoring points; A pulse encoding circuit, connected to the pulse energy injector, for encoding the pulse injection process of the LC resonant circuit to be detected; A pulse decoding circuit, connected to the amplitude attenuation monitoring circuit, for decoding a subsequent detection process of the LC resonant circuit to be detected; The pulse energy injector includes a first P-type switch tube, a second P-type switch tube, a third P-type switch tube, a first N-type switch tube, a second N-type switch tube, a third N-type switch tube, a fourth N-type switch tube, an inverter and a buffer. The source of the first P-type switch tube is connected to the LC resonant circuit to be detected, the gate of the first P-type switch tube is connected to the inverter, the drain of the first P-type switch tube is connected to the source of the second P-type switch tube, the drain of the second P-type switch tube is connected to a working power supply, the gate of the second P-type switch tube is connected to the gate of the third P-type switch tube, the drain of the third P-type switch tube is connected to the working power supply, and the source of the third P-type switch tube is connected to the The gate of the third P-type switch tube is connected; the drain of the first N-type switch tube is connected to the LC resonant circuit to be detected, the gate of the first N-type switch tube is connected to the buffer, the source of the first N-type switch tube is connected to the drain of the second N-type switch tube, the gate of the second N-type switch tube is connected to the gate of the third N-type switch tube, the source of the second N-type switch tube is grounded, the drain of the third N-type switch tube is connected to the source of the third P-type switch tube, the gate of the third N-type switch tube is connected to the gate of the fourth N-type switch tube, the drain of the fourth N-type switch tube is connected to the gate of the fourth N-type switch tube, and the source of the fourth N-type switch tube is grounded.
2. The design system of the inductive sensor circuit according to claim 1, characterized in that: The amplitude attenuation monitoring circuit comprises: An amplitude attenuation monitoring unit, used for setting a plurality of amplitude attenuation monitoring points; The inductor environment monitoring unit is used to monitor the time when the resonant waveform attenuates to reach the multiple amplitude attenuation monitoring points, so as to monitor the environment around the inductor.
3. The design system of the inductive sensor circuit according to claim 1, characterized in that: The design system of the inductive sensor circuit also includes: A response speed adjustment module is used to adjust the frequency of LC resonance to adjust the response speed of the inductive sensor; The sensitivity adjustment module is used to adjust the magnitude of the pulse injection energy to adjust the detection sensitivity of the inductive sensor.
4. The design system of the inductive sensor circuit according to claim 1, characterized in that: The amplitude attenuation monitoring circuit includes a plurality of differential input comparators connected in parallel.
5. The design system of the inductive sensor circuit according to claim 1, characterized in that: The amplitude attenuation monitoring circuit includes a first differential input comparator, a second differential input comparator, a third differential input comparator, a first digital sampling circuit, a second digital sampling circuit and a third digital sampling circuit, wherein the output end of the first differential input comparator is connected to the input end of the first digital sampling circuit, the output end of the second differential input comparator is connected to the input end of the second digital sampling circuit, and the output end of the third differential input comparator is connected to the input end of the third digital sampling circuit.
6. The design system of the inductive sensor circuit according to claim 1, characterized in that: The design system of the inductive sensor circuit also includes a digital signal processor, which is connected to the pulse encoding circuit and the pulse decoding circuit respectively, and is used to set the frequency of pulse injection or encode the pulse injection process, and decode the subsequent detection process.
7. The design system of the inductive sensor circuit according to claim 1, characterized in that: The design method of the inductive sensor circuit comprises the following steps: A pulse energy injector is used to inject pulse energy into the LC resonant circuit to be detected; Using an amplitude attenuation monitoring circuit to set a plurality of amplitude attenuation monitoring points, and monitoring the time when the amplitude waveform of the LC resonant circuit to be detected attenuates to reach the plurality of amplitude attenuation monitoring points; Encoding the pulse injection process of the LC resonant circuit to be detected by using a pulse encoding circuit; A pulse decoding circuit is used to decode the subsequent detection process of the LC resonant circuit to be detected.
8. The design system of the inductive sensor circuit according to claim 7, characterized in that: The step of using the amplitude attenuation monitoring circuit to set a plurality of amplitude attenuation monitoring points and monitoring the time when the amplitude waveform of the LC resonant circuit to be detected attenuates to reach the plurality of amplitude attenuation monitoring points comprises: Using an amplitude attenuation monitoring unit to set a plurality of amplitude attenuation monitoring points; The inductor environment monitoring unit is used to monitor the time when the resonant waveform decays to reach the multiple amplitude decay monitoring points, so as to monitor the environment around the inductor.
9. The design system of the inductive sensor circuit according to claim 7, characterized in that: After the step of decoding the subsequent detection process of the LC resonant circuit to be detected by using a pulse decoding circuit, the method further includes: The response speed adjustment module is used to adjust the frequency of LC resonance to adjust the response speed of the inductive sensor; The sensitivity adjustment module is used to adjust the pulse injection energy to adjust the detection sensitivity of the inductive sensor.
