Typically, a magnetic-field angle sensor measures a direction of a magnetic-field vector through 360° in an x-y plane. In one example, a magnetic-field angle sensor may be used to detect an angular position of a rotating magnet. Some magnetic-field angle sensors may include one or more Hall elements. When signals from Hall elements are not properly calibrated, angle error of the angle sensor increases. Generally, the angle error is defined to be the difference between an actual position of a magnet and a position of the magnet as measured by the angle sensor.
In one aspect, an angle sensor includes a first Hall element disposed on a first axis, a second Hall element disposed on a second axis perpendicular to the first axis and a conduction path having a first portion extending parallel to the first axis and a second portion parallel to the second axis. The conduction path is configured to conduct a calibration current that generates a first magnetic flux density measured at the first Hall element and a second magnetic flux density measured at the second Hall element. The angle sensor also includes calibration circuitry configured to generate one or more compensation signals based on the first and second magnetic flux densities and to adjust an external magnetic flux density measured at the second Hall element due to an external magnetic field using the one or more compensation signals to reduce angle error of the angle sensor.
In another aspect, a method includes determining one or more compensation signals based on a first magnetic flux density measured at a first Hall element of an angle sensor disposed on a first axis and a second magnetic flux density measured at a second Hall element of the angle sensor disposed on a second axis perpendicular to the first axis and adjusting an external magnetic flux density measured at the second Hall element due to an external magnetic field using the one or more compensation signals.
In a further aspect, an angle sensor includes a first Hall element disposed on a first axis, a second Hall element disposed on a second axis perpendicular to the first axis, a first conduction path extending parallel to the first axis, a second conduction path extending parallel to the second axis, and calibration circuitry configured to generate one or more compensation signals based on the first and second magnetic flux densities and adjust an external magnetic flux density measured at the second Hall element due to an external magnetic field using the one or more compensation signals to reduce angle error of the angle sensor. The first conduction path is configured to conduct a first calibration current that generates a first magnetic flux density measured at the first Hall and the second conduction path is configured to conduct a second calibration current that generates a second magnetic flux density measured at the second Hall element.
In a still further aspect, an angle sensor includes a first Hall element disposed on a first axis; a second Hall element disposed on a second axis perpendicular to the first axis and a means for calibrating signals from the first and second Hall elements.
The foregoing features may be more fully understood from the following description of the drawings. The drawings aid in explaining and understanding the disclosed technology. Since it is often impractical or impossible to illustrate and describe every possible embodiment, the provided figures depict one or more illustrative embodiments. Accordingly, the figures are not intended to limit the scope of the broad concepts, systems and techniques described herein. Like numbers in the figures denote like elements.
Described herein are techniques to improve angle accuracy of a magnetic-field angle sensor (e.g., on an integrated circuit (IC)) by calibrating signals, on the IC, from Hall elements used in an angle sensor as opposed to a one-time calibration done at an IC manufacturer.
Referring to
In one example, the Hall elements 101 are planar Hall elements. In another example, the Hall elements 101 are vertical Hall elements.
The Hall elements 102 in this embodiment include at least two Hall elements that are orthogonal to each other and the angle sensor 101 is a 2D (two-dimensional) angle sensor. For example, at least one Hall element is along an x-axis and at least one Hall element is along a y-axis.
In other embodiments, the Hall elements 102 may include at least three Hall elements that are orthogonal to each other and the angle sensor 101 is a 3D (three-dimensional) angle sensor. For example, at least one Hall element is along an x-axis, at least one Hall element is along a y-axis and at least one Hall element is along a z-axis.
In one example, the Hall elements 102 provide a signal X 122 from at least one Hall element along the x-axis and a signal Y 122 from at least one Hall element along the y-axis. The signals X 122, Y 124 are sent to the angle processing circuitry 104 and to the calibration circuitry 108.
In one example, in a first mode, the calibration circuitry 108 provides a calibration current Ical 126 used in calibrating signals from the Hall elements 102. The calibration current Ical 126 is used to measure the sensitivity of the Hall elements 101. In particular, the calibration current Ical 126 generates a magnetic flux density that is detected by the Hall elements 102. The signals X 122, Y 124, which are provided by the Hall elements 102, are used by the calibration circuitry 108 to generate one or more compensation signals 128. In one example, the calibration current Ical 126 is an alternating current. In one example, a frequency of the calibration current Ical 126 is 100 kHz.
In a second mode, without the calibration current Ical activated, the Hall elements 102 detect a magnetic field and provide the signals X 122, Y 124. The angle circuitry 104 uses the compensation signals 128 to calibrate one or more of the signals X 122, Y 124. Based on the signals X 122, Y 124 and the compensation signals 128, the angle circuitry 104 provides an output signal 130 that includes an angle.
Referring to
Each Hall element 202a, 202b includes at least five metal contacts. For example, the Hall element 202a includes a contact 206, a contact 208, a contact 210, a contact 212 and a contact 214, and the Hall element 202b includes a contact 216, a contact 218, a contact 220, a contact 222 and a contact 224.
The contacts 206, 214 are used to supply power to the Hall element 202a. The contacts 208, 212 are used to measure signals (e.g., a voltage signal) from the Hall element 202a and the contact 210 provides a ground to the Hall element 202a.
The contacts 216, 224 are used to supply power to the Hall element 202b. The contacts 218, 222 are used to measure signals (e.g., a voltage signal) from the Hall element 202b and the contact 220 provides a ground to the Hall element 202b.
The conduction path 204 is separated from the Hall plates 202a, 202b by a distance D. In one example, the distance D is 1 micron.
The magnetic field flux density generated by the calibration current is:
Assuming a 1 micron distance between the Hall element and the conduction path and a 10 mA conduction current, the expected magnetic flux density is 20G and the coupling factor is
Referring to
Each Hall element 302a, 302b includes at least five metal contacts. For example, the Hall element 302a includes a contact 306, a contact 308, a contact 310, a contact 312 and a contact 314, and the Hall element 302b includes a contact 316, a contact 318, a contact 320, a contact 322 and a contact 324.
The contacts 306, 314 are used to supply power to the Hall element 302a. The contacts 308, 312 are used to measure voltage from the Hall element 302a and the contact 210 provides a ground to the Hall element 302a.
The contacts 316, 324 are used to supply power to the Hall element 302b. The contacts 318, 322 are used to measure voltage from the Hall element 302b and contact 320 provides a ground to the Hall element 302b.
While
Referring to
and the sensitivity of a second Hall element is:
and a sensitivity mismatch is:
where ΔVHall 1 is the change in voltage of the first Hall element, ΔVHall 2 is the change in voltage of the second Hall element, and ΔBext is the change in magnetic field flux density.
Variances in the measured sensitivity causing a sensitivity mismatch lead to harmonic errors. By compensating the sensitivity mismatch by a change in the Hall element biasing current and/or a mathematical factor in angle processing, the angle accuracy may be improved.
Referring to
In one example, the circuit 500a provides a compensation signal in the x-direction. The circuit 500a includes a current source 502a that provides a calibration current Ix cal on a conduction path 504a to a coil 506a. The coil 506a generates a magnetic flux density Bx cal that is detected by a Hall element 510a that is aligned along an x-axis. The coupling factor Fx is equal to Bx cal/Ix cal.
The output signal of the Hall element 510a is amplified by an amplifier 514a and converted from an analog signal to a digital signal by an analog-to-digital converter (ADC) 518a. The digital signal is a calibration signal 524a and represented as Bx cal, measure.
In one example, the circuit 500b provides a compensation signal in the y-direction. The circuit 500b includes a current source 502b that provides a calibration current Iy cal on a conduction path 504b to a coil 506b. The coil 506b generates a magnetic flux density By cal that is detected by a Hall element 510b that is aligned along a y-axis. The coupling factor Fy is equal to By cal/Iy cal.
The output signal of the Hall element 510b is amplified by an amplifier 514b and converted from an analog signal to a digital signal by an ADC 518b. The digital signal is a calibration signal 524b and represented as By cal, measure.
In one example, the circuit 500c provides a compensation signal in the c-direction. The circuit 500c includes a current source 502c that provides a calibration current Iy cal on a conduction path 504c to a coil 506c. The coil 506c generates a magnetic flux density Bz cal that is detected by a Hall element 510c that is aligned along a z-axis. The coupling factor Fz is equal to Bz cal/Iz cal.
The output signal of the Hall element 510c is amplified by an amplifier 514c and converted from an analog signal to a digital signal by an ADC 518c. The digital signal is a calibration signal 524c and represented as Bz cal, measure.
In one embodiment, the current sources 502a-502c are the same current source. In other embodiments, the current sources 502a-502c are current mirrors.
Referring to
In one example, the circuit 600a provides the adjusted signal 612a in the x-direction. The circuit 600a includes the Hall element 510a, which receives a detected magnetic field, Bext,x. The output signal of the Hall element 510a is amplified by the amplifier 514a and converted from an analog signal to a digital signal 602a by the ADC 518a. The digital signal 602a is represented as Bx ext, measure.
In this embodiment, the digital signal 602a is the adjusted signal 612a. In this embodiment, the Hall elements 510b, 510c that are aligned along the y-axis and the z-axis are calibrated with the Hall element 510a along the x-axis. In other embodiments, the Hall elements may calibrate to the Hall element along the y-axis or the z-axis. In other embodiments, two Hall elements may be calibrated to each other. In still further embodiments, the Hall elements may be calibrated to a low drift current source.
In one example, the circuit 600b provides the adjusted signal 612b in the y-direction. The circuit 600b includes the Hall element 510b, which receives a detected magnetic field, Bext,y. The output signal of the Hall element 510b is amplified by the amplifier 514b and converted from an analog signal to a digital signal 602b by the ADC 518b. The digital signal 602b is represented as By ext, measure. The digital signal 602b is provided to a mixer 604b to be mixed with the compensation signal 524a, 524b. That is, the ratio of the compensation signal 524b to the compensation signals 524c (Bx cal, measure/By cal, measure) is mixed with the signal 602b to provide an adjusted signal 612b.
In one example, the circuit 600c provides the adjusted signal 612c in the z-direction. The circuit 600c includes the Hall element 510c, which receives a detected magnetic field, Bext,z. The output signal of the Hall element 510c is amplified by the amplifier 514c and converted from an analog signal to a digital signal 602c by the ADC 518c. The digital signal 602c is represented as Bz ext, measure. The digital signal 602c is provided to a mixer 604c to be mixed with the compensation signals 524a, 524c. That is, the ratio of the compensation signal 524b to the compensation signal 524c (Bx cal, measure/Bz cal, measure) is mixed with the signal 602c to provide an adjusted signal 612c.
Referring to
The Hall elements 102′ includes Hall elements 102′, which are similar to Hall elements 102 (
The angle sensor 101′ includes a Hall element 702a aligned along the x-axis and a Hall element 702b aligned along the y-axis. The Hall elements 702a, 702b are biased by the Hall plate biasing 706.
The calibration circuitry 108′ includes a calibration biasing circuit 708, which supplies the calibration current Ical on the conduction path 704 to generate magnetic field flux densities at the coils 702a, 702b adjacent to their respective Hall element 702a, 702b.
Each Hall element 702a, 702b provides a signal to a multiplexor 710 which is controlled by time multiplexor logic 714. The signals from the multiplexor are converted by an ADC 718 from analog to digital and sent to a multiplexor 712 controlled by the time multiplexor logic 714.
The calibration circuitry 108′ also includes calibration logic 726. The signals from the multiplexor 712 are sent to the calibration logic 726 to determine the compensation signals. The compensation signals are sent to compensation factor 730.
In this embodiment, the signals from the Hall plate 702a are calibrated to the Hall plate 702b. Thus, the signals from the Hall plate 702a are mixed by a mixer 737 of the angle processing circuitry 104′ with compensation signals from the compensation factor 730 and sent to an angle processor 742 while the signals from the Hall plate 702b are sent directly to the angle processor 742.
In one example, the angle processor 742 is a CORDIC (COordinate Rotation DIgital Computer). The angle processor 742 may perform various trigonometric functions that can be used to compute an angle of magnetic field. In one example, the angle processor 742 performs a function, α tan 2 (P1, P2) to determine α, the angle of the direction of the magnetic-field vector, where P1 and P2 are parameters. In one example, P1 may represent signals from the Hall element 702b and P2 represents signals from the Hall element 702a.
The angle determined by the angle processor 742 is sent to digital logic 748 and to an output stage 752. The update timer 734 is used to control the calibration logic and the compensation factor 730 to update the calibration signals on a regular basis.
The compensation circuitry 108′ also includes a non-volatile (NV) memory 758. In one example, the NV memory 758 stores parameters to control the update timer 734, the compensation factor 730, the digital logic 748 and the output stage 752.
In some examples, the NV memory 758 store time adjustment factors and amplitude adjustment factors (PID regulator logic) for the compensation block 730 and the update timer block 734 in order to control the speed in which the compensation factor is being adjusted.
In some examples, the NV memory 758 may be used to control the digital logic 748 to adjust the angle output to fit application requirements (e.g., adjust zero angle point, adjust angle gain, adjust angle saturation and so forth).
In some examples, the NV memory 758 may be used to store configuration values for the output stage 752, so that different interfaces may be used (e.g., SENT, PWM with various tick times, frequencies and so forth).
Elements of different embodiments described herein may be combined to form other embodiments not specifically set forth above. Various elements, which are described in the context of a single embodiment, may also be provided separately or in any suitable subcombination. Other embodiments not specifically described herein are also within the scope of the following claims.