VEHICLE BATTERY CURRENT SENSING SYSTEM
20230152397 · 2023-05-18
Inventors
Cpc classification
G01R15/207
PHYSICS
G01R33/098
PHYSICS
International classification
Abstract
A method of sensing a current in a conductor includes controlling a digital to analog converter output to cancel residual offset voltage in a magnetic tunnel junction device prior to sensing the current with the magnetic tunnel junction device. The method includes switching input to the magnetic tunnel junction device between a fixed voltage and an output of a digital to analog converter while switching input to a band pass filter between a lower and an upper voltage output of the magnetic tunnel junction device. The output of the digital to analog converter is modified to provide a low-amplitude unsaturated sine-wave at an output of the band pass filter, at which point changes in the output of the band pass filter are associated with the amount of current in a sensed conductor.
Claims
1. A method of sensing a current, comprising: sequentially connecting a first fixed voltage and an output of a first digital to analog converter to an input of a first magnetic tunnel junction device, using a first single pole double throw switch; sequentially connecting a V+ output and a V− output of the first magnetic tunnel junction device to an input of a first band pass filter using the first single pole double throw switch, wherein the first single pole double throw switch is configured such that the first fixed voltage is connected to the input of the first magnetic tunnel junction device when the V+ output is connected to the input of the first band pass filter, and the first digital to analog converter is connected to the input of the first magnetic tunnel junction device when the V− output is connected to the input of the first band pass filter; modifying the output of the first digital to analog converter such that an output of the first band pass filter produces an unsaturated sine wave; positioning the first magnetic tunnel junction device adjacent to a conductor electrically connected to a battery of a vehicle and configured carry a current; passing a current through the current carrying conductor after modifying the output of the first digital to analog converter; and measuring the current passing through the current carrying conductor using the positioned first magnetic tunnel junction device.
2. The method of claim 1, further comprising: sequentially connecting a second fixed voltage and an output of a second digital to analog converter to an input of a second magnetic tunnel junction device, using a second single pole double throw switch; sequentially connecting a V+ output and a V− output of the second magnetic tunnel junction device to an input of a second band pass filter using the second single pole double throw switch, wherein the second single pole double throw switch is configured such that the second fixed voltage is connected to the input of the second magnetic tunnel junction device when the V+ output is connected to the input of the second band pass filter, and the second digital to analog converter is connected to the input of the second magnetic tunnel junction device when the V− output is connected to the input of the second band pass filter; modifying the output of the second digital to analog converter such that an output of the second band pass filter produces an unsaturated sine wave; and positioning the second magnetic tunnel junction device adjacent to the conductor, wherein passing the current through the current carrying conductor comprises passing the current through the current carrying conductor after modifying the output of the second digital to analog converter, and measuring the current passing through the current carrying conductor comprises measuring the current passing through the current carrying conductor using the positioned second magnetic tunnel junction device.
3. The method of claim 2, further comprising: cancelling an external magnetic field interference using the first and second magnetic tunnel junction device.
4. The method of claim 1, wherein: a processor is configured to modify the output of the first digital to analog converter such that the output of the first band pass filter produces the unsaturated sine wave; and the first switching unit is configured to sequentially connect the first fixed voltage and the output of the first digital to analog converter to the input of the first magnetic tunnel junction device at a frequency lower than a frequency of an analog to digital converter of the processor.
5. The method of claim 1, further comprising: transmitting data associated with the measured current, using a wireless transmitter unit, to a vehicle monitoring system.
6. The method of claim 1, wherein: measuring the current passing through the current carrying conductor comprises measuring the current passing through the current carrying conductor using a second, third, and fourth magnetic tunnel junction device; the first and the second magnetic tunnel junction device are mounted orthogonal to one another on a first side of the conductor; and the third and the fourth magnetic tunnel junction device are mounted orthogonal to each other on a second side of the conductor opposite to the first side.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0006] In the following description and drawings, identical reference numerals have been used, where possible, to designate identical features that are common to the drawings.
[0007]
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015] The attached drawings are for purposes of illustration and are not necessarily to scale.
DETAILED DESCRIPTION
[0016] In the following description, some aspects will be described in terms that would ordinarily be implemented as software programs. Those skilled in the art will readily recognize that the equivalent of such software can also be constructed in hardware, firmware, or micro-code. Because data-manipulation algorithms and systems are well known, the present description will be directed in particular to algorithms and systems forming part of, or cooperating more directly with, systems and methods described herein. Other aspects of such algorithms and systems, and hardware or software for producing and otherwise processing the signals involved therewith, not specifically shown or described herein, are selected from such systems, algorithms, components, and elements known in the art. Given the systems and methods as described herein, software not specifically shown, suggested, or described herein that is useful for implementation of any aspect is conventional and within the ordinary skill in such arts.
[0017]
[0018] To further improve the sensitivity of the TMR sensor 102, a high-amplification of the sensor output is needed. Experiments reveal that V.sub.1≠V.sub.2 of the sensor even under the absence of the magnetic field, i.e. there is an inherent offset in the differential-voltage. This calls for an efficient offset-cancellation methodology, so that the differential voltage actually resulting from the external magnetic field can be accurately measured. Further, for reliable and low-resolution current sensing, several noise-cancellation procedures are employed both at analog and digital frontends. In one embodiment, to cancel any common-mode noise and interfering magnetic field, a differential arrangement of two of the sensors 102 is provided as shown in
[0019] Assuming that the magnetic-field due to the current-carrying conductor 110, at the location of the sensor 102, is B.sub.IN, and the total external field is B.sub.ext respectively, then the magnetic field measured by each sensor can be written as:
S.sub.1,input=B.sub.IN+B.sub.ext
S.sub.2,input=−B.sub.IN+B.sub.ext
[0020] The output of the two TMR sensors with the applied magnetic field can be written as:
S.sub.1,input=(B.sub.IN+B.sub.ext)C.sub.1
S.sub.2,output=(−B.sub.IN+B.sub.ext)C.sub.2
[0021] Here, C.sub.1 and C.sub.2 incorporate the sensitivities of the two TMR sensors and the gains of the analog front end. If the system is perfectly symmetrical the values C.sub.1 & C.sub.2 will be identical giving a differential output
[0022] Hence, the differential measurement rejects common mode noise, and stray fields (including Earth's magnetic field).
[0023]
[0024] This section demonstrates an exemplary implementation of the above stated method for non-invasive, high-resolution sensing of DC and AC currents.
[0025] Assume that the offset between V.sub.+ and V.sub.− is positive ΔV (ΔV=V.sub.+−V.sub.−). We up-convert the DC V.sub.+ and V.sub.− to 32.768 KHz by using analog Single-Pole Double Throw (SPDT) switches driven by 32.768 KHz crystal.
[0026] The resulting sine-wave at filter output is fed to 12-bit ADC operating at 327.68 KHz (f.sub.s=10f.sub.0). The residual offset voltage, after amplification by ˜450×, saturates the op-amp output. The DAC's output voltage is increased/decreased until V− becomes close to V.sub.+, i.e. until the offset is reduced sufficiently enough to result in a low-amplitude unsaturated sine-wave at filter output. Now, any change in V.sub.+−V−, due to external magnetic field, can be easily sensed by detecting the change in sine-wave amplitude from its previous value.
[0027] To estimate the current flowing through the wire, we subtract the sampled values from the two oppositely placed sensors to get a differential reading, thereby rejecting any common-mode noise, as described in previous section. The resulting differential sine-wave is cross-correlated with an internally generated and stored digital sine-wave of exactly same f.sub.o and f.sub.s. The equations governing the optimal detection of the amplitude of differential sine-wave are as follows:
where fo is the sine-wave frequency (32.768 KRz), f.sub.s is the sampling frequency, Nis the total number of samples in a computation.
y gives the estimate of the amplitude which linearly relates to the current flowing through the wire.
[0028] A flowchart describing the computational steps in the above example embodiment is shown in
[0029]
[0030] In certain embodiments, four sensors 102 may be used, with two sensors on each side of the conductor, wherein the two sensors on one side are mounted orthogonal to each other. The interference can be further cancelled by using a correlation among the measured outputs of the four sensors.
[0031] The sensors 102 and other components recited herein may include or be connected to one or more computer processors and memory which are communicatively connected and programmed to perform the data processing and control functionality recited herein. The program code includes computer program instructions that can be loaded into the processor, and that, when loaded into processor cause functions, acts, or operational steps of various aspects herein to be performed by the processor. Computer program code for carrying out operations for various aspects described herein can be written in any combination of one or more programming language(s), and can be loaded into memory for execution. The processors and memory may further be communicatively connected to external devices via a wired or wireless computer network for sending and receiving data.
[0032] The invention is inclusive of combinations of the aspects described herein. References to “a particular aspect” and the like refer to features that are present in at least one aspect of the invention. Separate references to “an aspect” (or “embodiment”) or “particular aspects” or the like do not necessarily refer to the same aspect or aspects; however, such aspects are not mutually exclusive, unless so indicated or as are readily apparent to one of skill in the art. The use of singular or plural in referring to “method” or “methods” and the like is not limiting. The word “or” is used in this disclosure in a nonexclusive sense, unless otherwise explicitly noted.
[0033] The invention has been described in detail with particular reference to certain preferred aspects thereof, but it will be understood that variations, combinations, and modifications can be effected by a person of ordinary skill in the art within the spirit and scope of the invention.