An anti-electromagnetic interference sensor and an anti-electromagnetic interference design method
By introducing non-sensitive components into the sensor circuit and switching using the mode adjustment circuit, identifying and eliminating electromagnetic interference, the problem of analog sensors being susceptible to electromagnetic interference is solved, ensuring the accuracy of sensor output and system safety.
Patent Information
- Application Number
- CN202410594374.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-05-14
AI Technical Summary
Analog sensors are susceptible to electromagnetic interference, resulting in incorrect measurement results and are easily exploited maliciously, especially in complex electromagnetic environments, which may cause serious consequences.
Design an anti-electromagnetic interference sensor. By introducing non-sensitive components into the sensor circuit and connecting them in parallel with the sensitive components, and using the mode adjustment circuit to switch between normal mode and self-test mode, we can judge the electromagnetic interference by measuring the output difference in the two modes. , and subtract the deviation value from the original output to correct the result.
It realizes the identification and elimination of electromagnetic interference, provides safe certification for sensor output, and ensures the safe operation of electronic information systems.
Smart Images

Figure CN118500449B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic devices, and in particular to an anti-electromagnetic interference sensor and an anti-electromagnetic interference design method. Background Art
[0002] Sensors convert the measured physical quantity into electrical quantity, and various electronic information systems rely on their correct measurement results to make key decisions. If the superior controller does not have an additional security authentication mechanism, it can only trust the output of the sensor unconditionally. With the rapid development of electronic technology, human factors such as communications, radar, and electric ignition, as well as natural factors such as lightning and static electricity, have formed an increasingly complex and harsh electromagnetic environment. The inherent weaknesses of analog sensors make them susceptible to electromagnetic interference, which leads to erroneous measurement results.
[0003] The metal interconnects of the sensor, including wires and PCB traces, convert electromagnetic interference signals into voltage and current, which are superimposed on the nominal working signal and further cause nonlinear effects such as distortion of active nonlinear devices. In analog circuits, operational amplifiers are particularly sensitive to electromagnetic interference signals, and the typical electromagnetic sensitive response is manifested as an output offset voltage. This causes the analog sensor to produce incorrect output values, which are read by the upper-level controller, causing the controller to generate incorrect actuation instructions, which may cause serious consequences. This vulnerability of the sensor can even be maliciously exploited to attack higher-level systems. This problem is even more serious in the context of cheap electromagnetic emission components being easily available on the civilian market. Compared with physical attack methods such as light and sound waves, electromagnetic-based attack methods have the advantages of high universality and long attack distance. Therefore, how to pay attention to this security vulnerability / problem. Summary of the invention
[0004] The purpose of the present invention is to overcome the shortcomings of the prior art, provide an anti-electromagnetic interference sensor and an anti-electromagnetic interference design method, and solve the deficiencies of the prior art.
[0005] The objective of the present invention is achieved through the following technical scheme: an anti-electromagnetic interference sensor, the sensor comprising a sensitive element and a sensor circuit, the sensitive element being connected to the sensor circuit and a power supply, and also comprising a non-sensitive element and a mode adjustment circuit, the non-sensitive element being connected in parallel with the sensitive element, the mode adjustment circuit being connected to the sensitive element and the non-sensitive element, the sensitive element and the non-sensitive element being controlled by the mode adjustment circuit to be alternately connected to the sensor circuit, so that the sensor is switched between a normal mode and a self-test mode, and whether the sensor is electromagnetically disturbed is determined by measuring the original sensor output in the normal mode and the self-test result output in the self-test mode, if the deviation between the self-test result output value and the known expected value exceeds the noise tolerance, it is determined that the sensor is electromagnetically disturbed, and the deviation value is subtracted from the original sensor output to obtain a corrected sensor output.
[0006] The non-sensitive element and the sensitive element are similar in physical size and impedance characteristics. The branches where the non-sensitive element and the sensitive element are located are symmetrically and compactly distributed on the PCB layout. The input voltage of the operational amplifier in the sensor circuit varies within a small range, and the power rail spacing is increased while meeting the power consumption requirements.
[0007] The sensitive element includes a sensing element using a thermistor as a temperature sensor, the non-sensitive element includes a fixed resistance resistor, the mode adjustment circuit includes two switch tubes, and the sensor circuit includes a differential amplifier;
[0008] The thermistor and resistors R1, R2 and R3 form a bridge, and the other ends of resistors R1 and R2 are connected to a power supply; the output voltage difference signal of the bridge is amplified by a differential amplifier to generate a final output signal of the sensor; a fixed resistance resistor is connected in parallel with the thermistor, and the thermistor and the fixed resistance resistor are each connected to a switch tube, and both switch tubes are connected to a control voltage source, and the control voltage source controls the opening and closing states of the corresponding switch tubes to control the thermistor or the fixed resistance resistor to be connected to the bridge, thereby putting the sensor in normal mode or self-test mode.
[0009] The sensitive element includes a photodiode, the non-sensitive element includes a disabled photodiode, the mode adjustment circuit includes two switch tubes, and the sensor circuit includes a transimpedance amplifier;
[0010] The photodiode and the disabled photodiode are connected in parallel and connected to a transimpedance amplifier together. The photodiode and the disabled photodiode are each connected to a switch tube. Both switch tubes are connected to a control voltage source. The control voltage source controls the opening and closing states of the corresponding switch tubes to control the photodiode or the disabled photodiode to connect to the differential amplifier, thereby putting the sensor in normal mode or self-test mode.
[0011] A passive sensor anti-electromagnetic interference design method, the anti-electromagnetic interference design method comprising:
[0012] Step 1: A non-sensitive element is connected to the sensitive element of the sensor, and the sensitive element and the non-sensitive element are alternately connected to the operational amplifier in the sensor circuit, so that the sensor is switched between the normal mode and the self-test mode, and the output value m of the self-test result of the sensor in the self-test mode when there is no electromagnetic interference signal is measured in advance;
[0013] Step 2, measuring the original sensor output O of the sensor in the normal mode;
[0014] Step 3: Measure the self-test result output value D of the sensor in the self-test mode, calculate the deviation value |Dm| at this time, and determine whether it exceeds the noise tolerance. If it exceeds, send a disturbance alarm to the controller and subtract the deviation value from the original sensor output O to obtain the corrected output P=O-(Dm).
[0015] The anti-electromagnetic interference design method complies with the following requirements:
[0016] The voltage at the input of the operational amplifier varies within a small range;
[0017] The sensitive element of the sensor and the connected non-sensitive element are similar in physical size and impedance characteristics;
[0018] The branches where the sensor's sensitive components and connected non-sensitive components are located are symmetrically and compactly distributed on the PCB layout;
[0019] Increase the power rail spacing of the operational amplifier while meeting power consumption requirements.
[0020] The present invention has the following advantages: an anti-electromagnetic interference sensor and an anti-electromagnetic interference design method can realize the identification and elimination of electromagnetic interference, provide security authentication for each output data of the passive sensor, and ensure the overall safe operation of the electronic information system. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a schematic diagram of the principle of the present invention;
[0022] Figure 2 Schematic diagram of generating induced voltage on PCB traces for external electromagnetic interference signals;
[0023] Figure 3 is a schematic diagram of a basic differential pair circuit model including parasitic parameters;
[0024] Figure 4 It is a schematic diagram of the basic differential pair high frequency circuit model based on differential and common mode decomposition;
[0025] Figure 5 It is the principle block diagram of multi-stage cascade amplifier circuit;
[0026] Figure 6 It is a schematic diagram of the circuit principle of the first embodiment;
[0027] Figure 7 is a schematic diagram of the electromagnetic sensitive response of the first temperature sensor in two modes in the first embodiment;
[0028] Figure 8 is a schematic diagram of the electromagnetic sensitivity response of the second temperature sensor in two modes in the first embodiment;
[0029] Fig. 9 is a schematic diagram of the electromagnetic sensitivity response of the third temperature sensor in two modes in the first embodiment;
[0030] Fig.10 Schematic diagram of the circuit principle of the second embodiment;
[0031] Fig.11 is a schematic diagram of the electromagnetic sensitivity response of the ambient light sensor in two modes under low light intensity in the second embodiment;
[0032] Fig.12 is a schematic diagram of the electromagnetic sensitivity response of the ambient light sensor in two modes under medium light intensity in the second embodiment;
[0033] Fig.13 Schematic diagram of the electromagnetic sensitivity response of the ambient light sensor in two modes under high light intensity in the second embodiment. DETAILED DESCRIPTION
[0034] In order 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. Obviously, 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 different configurations. Therefore, the detailed description of the embodiments of the present application provided below in conjunction with the drawings is not intended to limit the scope of protection 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. The present invention is further described below in conjunction with the drawings.
[0035] The single physical entity of the sensor is a superposition of two roles. From a functional perspective, the sensor is a functional entity with a sensing function that is sensitive to the measured physical quantity. From the perspective of electromagnetic compatibility, the sensor is a sensitive receptor of electromagnetic interference signals. The superposition of these two roles makes the output of the sensor affected by both the measured physical quantity and external electromagnetic interference. Without an additional authentication mechanism, the upper controller can only unconditionally trust the output of the sensor.
[0036] The present invention specifically relates to a method for identifying and eliminating electromagnetic interference for passive sensors. The core of the method is to separate the two roles of the sensor so that the functional entity disappears temporarily and only the sensitive receptor is retained, so that the sensor itself becomes an indicator of whether it is subject to electromagnetic interference. The separation means is to match the sensitive element of the sensor with a non-sensitive element that is approximately the same and does not have a sensing function, and then control the sensitive element and the non-sensitive element to be alternately connected to the sensor circuit (generally including an operational amplifier) so that the sensor switches between the normal mode and the self-test mode.
[0037] When facing electromagnetic interference, the electromagnetic sensitivity response of the sensor in the self-test mode can be calculated, which is used to characterize the electromagnetic sensitivity response of the sensor in the normal mode. Figure 1 As shown in the figure, the sensor outputs in the two modes are called the original sensor output O and the self-test result output D. When there is no electromagnetic interference signal, the self-test result output D should be a specific known value m. The interference identification module calculates the deviation value |Dm| and determines whether it exceeds the noise tolerance. If it is determined to be exceeded, a disturbance alarm is sent to the controller, and the interference elimination module is instructed to subtract the deviation value from the original sensor output O, thereby obtaining the corrected output P = O-(Dm).
[0038] This requires that the sensor has highly similar electromagnetic sensitivity responses in the two modes when facing the same electromagnetic interference. In addition, the current and voltage of the sensor circuit in the self-test mode are in a specific state, while the current and voltage of the sensor circuit in the normal mode are in different states as the measured physical quantity changes. Therefore, the effectiveness of this method requires that the electromagnetic sensitivity responses of the sensor in a single state in the normal mode and in multiple states in the self-test mode are highly similar. To achieve this, the entire process of the sensor generating a sensitive response under the action of an external electromagnetic interference signal is analyzed, thereby obtaining a specific implementation framework of the anti-electromagnetic interference design method.
[0039] The analysis of the present invention focuses on the typical electromagnetic sensitivity of the sensor - output offset voltage, starting from field line coupling, focusing on the nonlinear effect of the operational amplifier input, and finally obtaining an electromagnetic sensitivity model of a multi-stage cascade sensor circuit.
[0040] Based on the analysis of electromagnetic sensitivity mechanism of sensors;
[0041] In a typical sensor electromagnetic interference scenario, external electromagnetic interference signals induce interference voltage and current on the sensor's PCB traces or other interconnected wires through the field line coupling effect, causing the low-frequency normal signal inside the sensor to be mixed with the high-frequency interference signal, and then causing key components in the sensor, such as operational amplifiers, to be induced to exhibit electromagnetic sensitivity, ultimately causing the entire sensor to respond electromagnetically, and further causing the upper-level controller to receive erroneous sensor readings.
[0042] Focusing on the field line coupling effect between external electromagnetic interference signals and PCB traces, the electromagnetic sensitivity mechanism of operational amplifiers, and the transmission law of electromagnetic sensitive response of multi-stage amplification circuits, the electromagnetic sensitivity mechanism of sensors is deeply analyzed to provide theoretical support for anti-electromagnetic interference design methods.
[0043] 1. Analysis of field line coupling effect between external electromagnetic interference signals and PCB traces;
[0044] First, the PCB traces in the sensor are taken as the research object, and the induced voltage induced by the external electromagnetic interference signal at its terminal is analyzed. There are three analytical models in the prior art to calculate the induced voltage on general transmission lines, namely Taylor, Agrawal and Rachidi models. In order to calculate the induced voltage at the cable terminal, each model first models the external electromagnetic field as an excitation source on the transmission line, and then solves the lumped transmission line. Although each model uses different field components, the final induced voltage analysis results are equivalent. Unlike the other two models, the Agrawal model is based on the tangential component of the electric field and does not rely on any integration or differentiation of the field, thus simplifying the derivation process. Leone and singer extended the application scope of the Agrawal model from general transmission lines to PCB traces.
[0045] like Figure 2 As shown in the figure, it is assumed that the external electromagnetic interference signal is a plane wave incident in any direction, described by θ, φ and γ, and the left and right ports of the PCB trace are defined as the input and output ports respectively. A typical scenario is that the input port is connected to the sensor element and the output port is connected to the input of the operational amplifier. The external electromagnetic interference signal induces an interference voltage V at the terminal of the PCB trace. ind The incident direction of the electromagnetic wave is determined by θ, φ and γ, where θ is the propagation vector k i and the z-axis, φ is the angle between the incident plane and the x-axis, and γ is the incident electric field vector E i The polarization angle of the PCB. L and W are the length and width of the PCB trace, and h is the thickness of the PCB substrate.
[0046] Based on the Agrawal model and the simplified BLT equation, the induced voltage V at the PCB trace terminal can be obtained.ind for:
[0047]
[0048] Input impedance Z of PCB trace in , output impedance Z out and characteristic impedance Z o is included in the reflection coefficient Γ in and Γ out As shown in the following formula:
[0049]
[0050] β is the propagation constant, which is determined by the properties of the PCB substrate material itself. S1 and S2 are the excitation terms representing the field line coupling effect, which are expressed by the following formula:
[0051]
[0052] Where v in and v out is the port voltage caused by the z-direction electric field, as shown below. and The influence of the tangential electric field on the PCB trace is characterized as shown in the following equation:
[0053] v in =∫0 h E z (x=0,z)dz,v out =∫0 h E z (x=L,z)dz(4)
[0054]
[0055] It should be noted that E in the above formula z and E x It is the total electric field, which includes the incident component and the reflected component. When calculating the reflected component, it should be assumed that the PCB trace does not exist.
[0056] Based on the above analysis, it can be seen that when a PCB trace with a specific structural size is subjected to a specific external electromagnetic interference signal, its terminal induced voltage is mainly affected by the impedance at both ends.
[0057] 2. Analysis of electromagnetic susceptibility mechanism of operational amplifier;
[0058] like Figure 3 As shown in Figure 1, in analog circuits represented by sensor circuits, operational amplifiers are extremely sensitive to external electromagnetic interference signals. The electromagnetic sensitive response of operational amplifiers is mainly caused by the parasitic parameters of their input stage differential circuits.
[0059] Figure 3 The total gate voltage of M1 and M2 is V g It is represented as the DC component V G and the AC component v g Similarly, the total voltage between the gate and the source can also be expressed as the DC component V GS and the AC component v gs Considering V GS1 =V GS2 , and using the IV characteristic formula of the MOS device saturation region, the equivalent output offset current I of the basic differential pair can be os It is expressed as:
[0060]
[0061] The β in the above formula can be expressed as:
[0062]
[0063] where μ n is the carrier mobility; C ox is the gate oxide capacitance per unit area; λ is the channel length modulation factor; W and L are the gate width and gate length, respectively. Using the Parseval equation, v gsi In the frequency domain it is expressed as:
[0064]
[0065] From this we can get:
[0066]
[0067] like Figure 4 As shown, g m1 and g m2 are the transconductance of M1 and M2, V cm (jω) and V dm (jω) is shown in the following formula:
[0068]
[0069]
[0070] from Figure 4 It can be deduced that V gs1 (jω) and V gs2 (jω) is:
[0071] V gs1 (jω)=H cm1 (jω)V cm (jω)+H dm1 (jω)V dm(jω)(12)
[0072] V gs2 (jω)=H cm2 (jω)V cm (jω)-H dm2 (jω)V dm (jω)(13)
[0073] Among them, H cmi and H cmi are the transfer functions of the common-mode signal source and the differential-mode signal source to M1 and M2, respectively. Assume that g m1 =g m2 , then H cm1 and H cm2 It can be expressed as:
[0074]
[0075]
[0076] H dm1 (jω)=-H dm2 (jω)=1(16)
[0077] From this we can get:
[0078]
[0079] The equivalent output offset current I can be calculated by using the equivalent transconductance of the basic differential pair. os Converted to an equivalent input offset voltage V os . The equivalent transconductance can be expressed as:
[0080]
[0081]
[0082] In the above formula, V DS is the drain-source voltage of M1 and M2, I ss is the current flowing through M3, V b is the gate voltage of M3, and V P is the drain-source voltage of M3. Thus, the equivalent input offset voltage V of the basic differential pair of the operational amplifier input stage can be obtained. os as follows:
[0083]
[0084] Based on the above analysis, we can know that V os In three aspects, the DC bias voltage V G Influence of: First, V in formula (20) DS and VP By V G Secondly, H in formula (20) cm (jω), V cm (jω) and All affected by V G This is reflected in (1), (2), (14) and (15). In addition, V os The derivation is based on the assumption that both M1 and M2 work in the saturation region. G Different values of will lead to inconsistency in whether this assumption is valid or not.
[0085] 3. Analysis of electromagnetic sensitivity response transmission law of multi-stage amplifier circuit;
[0086] like Figure 5 As shown, according to the previously derived V OS It is the equivalent input offset voltage, usually in the millivolt range. After being amplified by the operational amplifier circuit, it will eventually produce a large output offset. The actual sensor circuit is mostly a multi-stage cascade circuit.
[0087] V in is the input signal of the cascade circuit, which comes from the sensing element; G n Represents the gain of the nth stage circuit; V osn Represents the equivalent input offset voltage of the nth stage circuit; V out Represents the output of the cascade circuit, which contains both legal and illegal components under the influence of electromagnetic interference. OS , as shown below:
[0088]
[0089]
[0090] Through in-depth analysis of the electromagnetic sensitivity mechanism of the sensor, theoretical support is provided for the anti-electromagnetic interference design. In order to ensure the effectiveness of the sensor's anti-electromagnetic interference design, it is required that the electromagnetic sensitivity response of the sensor in the two working modes is highly similar or even the same under the same external electromagnetic interference. Outside the local area where the sensing element and the non-sensing element are located, the sensor is exactly the same. Under the action of a specific electromagnetic interference signal, the two modes are are the same, so the key to ensuring the effectiveness of anti-electromagnetic interference design is to ensure that V in equation (22) in both modes os1 are highly similar or even identical.
[0091] Therefore, the requirements that anti-electromagnetic interference design should follow include: 1. Make the voltage at the input of the operational amplifier vary within a small range; the voltage at the in-phase input can be directly locked, and due to the existence of the negative feedback loop, the voltage at the inverting input will also be locked; 2. The two sensor elements are highly similar in physical size and impedance characteristics; 3. The branches where the two sensor elements are located are symmetrical and compactly distributed on the PCB layout; 4. Due to the limitation of the operational amplifier power supply, the electromagnetic sensitivity response of the sensor in the two modes may be very different. Therefore, in order to increase the scope of application of anti-interference design, the power rail spacing can be increased while meeting the power consumption requirements.
[0092] like Figure 6 As shown, one embodiment of the present invention uses a thermistor with a positive temperature coefficient as the sensing element of the temperature sensor, and its resistance increases with the increase of temperature, and the resistance is 10kΩ at room temperature of 25°C. The thermistor and other three resistors (R1, R2 and R3) form a bridge, which outputs a pressure difference signal at the millivolt level and is amplified by the differential amplifier to generate the final output signal of the sensor. When the resistance of the thermistor changes with temperature, the pressure difference signal changes accordingly, so that the output signal of the entire sensor to the outside also changes. A fixed resistance resistor is used to match the thermistor, and two NMOS tubes are used to determine which of the two is connected to the bridge circuit. When the thermistor is connected to the bridge, the sensor is in normal mode, and when the fixed resistance resistor is connected to the bridge, the sensor is in self-test mode.
[0093] In the figure above, the voltage at the non-inverting input of the operational amplifier is determined by the voltage divider R2 and R3 and is fixed. Due to the existence of the negative feedback loop, the voltage at the inverting input of the operational amplifier is equal to the non-inverting input and remains unchanged. When the circuit schematic of the temperature sensor is converted into a PCB layout, the thermistor and the fixed resistance resistor are laid out close and symmetrically. When the temperature sensor switches between normal mode and self-test mode, there is only a difference in the local area where the thermistor branch and the fixed resistance resistor branch are located, while the rest of the sensor is exactly the same, that is, they share the same physical entity.
[0094] In order to avoid harm to personnel caused by electromagnetic interference signals, the experiment was conducted in a dark room. The computer remotely controlled the signal source to generate electromagnetic interference signals, which were then amplified by the power amplifier and transmitted by the logarithmic periodic antenna. The maximum output power of the signal source was -10dBm. The frequency was swept between 100MHz and 2GHz with a frequency interval of 20MHz. The output of the sensor was then recorded by a camera. Since it is not easy to stably control the room temperature of the dark room, it is necessary to fix the thermistor unchanged and replace the resistance value of the fixed resistor to obtain three temperature sensors. When there is no electromagnetic interference signal, their outputs in self-test and normal modes are [2.259V, 2.269V], [2.191V, 2.806V] and [2.222V, 3.738V] respectively. The slight differences in the outputs of the three temperature sensors in normal mode come from the slight differences in the resistance values of the resistors in the bridge. In order to verify the high similarity of the electromagnetic sensitive response of the temperature sensor in the two modes, a single-chip microcomputer is used to generate a control signal to switch the sensor between the two modes at intervals of 3 seconds. Then, the output of the sensor in the two modes is recorded before and after the electromagnetic interference signal is applied, and the respective output offsets are calculated. Figure 7-Figure 9 As shown in the figure, the electromagnetic sensitive responses of the three temperature sensors in both modes are highly similar. When there is no electromagnetic interference signal, the outputs of the sensors in normal mode and self-test mode are: Figure 7 Medium 2.259V and 2.269V; Figure 8 Medium 2.191V and 2.806V; Fig. 9 2.222V and 3.738V.
[0095] like Fig.10 As shown, the photodiode in the ambient light sensor used in another embodiment of the present invention is sensitive to the visible light band, and generates a photocurrent under light. The magnitude of the current increases with the increase of light intensity, and the photocurrent is converted into a voltage signal by a transimpedance amplifier. A disabled photodiode is used to match the photodiode, and the photosensitive surface of the disabled photodiode is wrapped with a light-shielding tape, thereby losing the ability to convert the light signal into a current signal.
[0096] Similar to the temperature sensor, the two photodiode branches are laid out close and symmetrically to reduce the difference when the sensor switches between normal mode and self-test mode. The layout of the experiment is similar to that of the temperature sensor. In order to control the light intensity, a small light bulb with adjustable light intensity is placed next to the ambient light sensor. Therefore, there is no need to replace the circuit board. You only need to adjust the brightness of the small light bulb to change the output of the light sensor in normal mode. Three light intensities of low, medium and high are set, so that the output of the light sensor in normal mode is 0.663V, 1.777V and 3.277V respectively. Due to the presence of the light-shielding tape, almost no photocurrent is generated in the disabled photodiode, so the sensor output in self-test mode is close to 0. Figure 11-13 As shown in the figure, in the three cases, the electromagnetic sensitivity response of the ambient light sensor in the two modes is highly similar. When there is no electromagnetic interference signal, the output of the sensor in the normal mode and the self-test mode are: Fig.11 0.663V and 0.001V; Fig.12 1.777V and 0.004V; Fig.13 3.277V and 0.006V,
[0097] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used for various other combinations, modifications and improvements, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art do not deviate from the spirit and scope of the present invention, and should be within the scope of protection of the claims attached to the present invention.
Claims
1. An anti-electromagnetic interference sensor, the sensor comprising a sensitive element and a sensor circuit, the sensitive element being connected to the sensor circuit and a power supply, characterized in that: It also includes a non-sensitive element and a mode adjustment circuit, wherein the non-sensitive element is connected in parallel with the sensitive element, and the mode adjustment circuit is connected with the sensitive element and the non-sensitive element, and the sensitive element and the non-sensitive element are controlled by the mode adjustment circuit to be alternately connected to the sensor circuit, so that the sensor switches between the normal mode and the self-test mode, and determines whether the sensor is electromagnetically disturbed by measuring the original sensor output in the normal mode and the self-test result output in the self-test mode, and if the deviation between the self-test result output value and the known expected value exceeds the noise tolerance, it is determined that the sensor is electromagnetically disturbed, and the deviation is subtracted from the original sensor output to obtain a corrected sensor output; The non-sensitive element and the sensitive element are similar in physical size and impedance characteristics, the branches where the non-sensitive element and the sensitive element are located are symmetrically and compactly distributed on the PCB layout, the input voltage of the operational amplifier in the sensor circuit varies within a small range, and the power rail spacing is increased while meeting the power consumption requirements; The sensitive element includes a sensing element using a thermistor as a temperature sensor, the non-sensitive element includes a fixed resistance resistor, the mode adjustment circuit includes two switch tubes, and the sensor circuit includes a differential amplifier; The thermistor and resistors R1, R2 and R3 form a bridge, and the other ends of resistors R1 and R2 are connected to a power supply; the output voltage difference signal of the bridge is amplified by a differential amplifier to generate a final output signal of the sensor; a fixed resistance resistor is connected in parallel with the thermistor, and the thermistor and the fixed resistance resistor are each connected to a switch tube, and both switch tubes are connected to a control voltage source, and the control voltage source controls the opening and closing states of the corresponding switch tubes to control the thermistor or the fixed resistance resistor to be connected to the bridge, thereby making the sensor in normal mode or self-test mode; Or the sensitive element includes a photodiode, the non-sensitive element includes a disabled photodiode, the mode adjustment circuit includes two switch tubes, and the sensor circuit includes a transimpedance amplifier; The photodiode and the disabled photodiode are connected in parallel and connected to a transimpedance amplifier together. The photodiode and the disabled photodiode are each connected to a switch tube. Both switch tubes are connected to a control voltage source. The control voltage source controls the opening and closing states of the corresponding switch tubes to control the photodiode or the disabled photodiode to connect to the differential amplifier, thereby putting the sensor in normal mode or self-test mode.
2. An anti-electromagnetic interference design method for the anti-electromagnetic interference sensor according to claim 1, characterized in that: The anti-electromagnetic interference design method comprises: Step 1: Connect a non-sensitive element to the sensitive element of the sensor, and switch the sensor between the normal mode and the self-test mode by controlling the sensitive element and the non-sensitive element to be alternately connected to the operational amplifier in the sensor circuit, and pre-measure the output value of the self-test result of the sensor in the self-test mode when there is no electromagnetic interference signal. m ; Step 2: Measure the raw sensor output of the sensor in normal mode O ; Step 3: Measure the output value of the sensor's self-test result in self-test mode D , calculate the deviation value at this time | D - m | and determine whether it exceeds the noise tolerance. If so, a disturbance alarm is sent to the controller and the deviation value is output from the original sensor. O Subtract it from the output to get the corrected output P=O-(Dm) .
3. The anti-electromagnetic interference design method according to claim 2, characterized in that: The anti-electromagnetic interference design method complies with the following requirements: The voltage at the input of the operational amplifier varies within a small range; The sensitive element of the sensor and the connected non-sensitive element are similar in physical size and impedance characteristics; The branches where the sensor's sensitive components and connected non-sensitive components are located are symmetrically and compactly distributed on the PCB layout; Increase the power rail spacing of the operational amplifier while meeting power consumption requirements.
