SNOAAA5 April 2024 DRV8220 , FDC1004-Q1 , LDC3114-Q1 , TMAG5131-Q1 , TMAG5173-Q1 , TMAG6180-Q1
Tracking the position of a deployable door handle as the door handle is extended and retracted can be achieved in several different ways using magnetic sensing. The movement of the handle can be tracked as either linear motion or a rotation motion. For the purposes of this application note, we consider the rotation of the handle on the axis as the handle is extended and retracted, as shown in Figure 4-7.
A diametric cylinder magnet can be embedded in the deployable door handle such that the magnet is centered and rotates on the same axis as the handle itself. Thus, the angle of the magnet changes as the door handle extends and retracts. An AMR angle sensor or 3D-linear Hall-effect sensor can be placed on-axis with the magnet or off to the side in an off-axis position, as shown in Figure 4-8.
The sensor detects the angle of the magnetic field as the magnet rotates. For an accurate angle measurement, the two axes' amplitudes must be normalized. For an on-axis alignment, typically the amplitudes are well-matched, as shown in Figure 4-9. Off-axis topologies often result in an amplitude mismatch between the two axes, as shown in Figure 4-10. Devices like the TMAG5170-Q1 and TMAG5173-Q1 offer an on-chip gain adjustment option to account for amplitude mismatch and mechanical position misalignments.
Depending on what kind of sensor is chosen, the magnetic output signals can be analog or digital signals. With two signals that have well-matched amplitude and are 90° out of phase, the angle can be calculated using the arctangent function shown in Equation 1.
Where:
In this example, the X and Y components of the magnetic field vector are used. Depending on sensor placement, it can be appropriate to use the X and Z or Y and Z field components for the angle calculation instead.
Some devices, such as the TMAG5170-Q1 and TMAG5173-Q1, offer an integrated CORDIC that provides full 360° angle position information for both on-axis and off-axis angle measurement topologies. With a reliable and accurate angle measurement from the magnet, changes in the angle are then correlated to the handle position as it deploys, retracts, is pulled or is pushed for proper state detection.