JAJU835 December 2021
Similar to the DRV5032, the magnetic flux density detected by the DRV5056 is dependent on the magnet dimensions, magnet material, and the distance from the magnet to the sensing element within the Hall sensor. The DRV5056 device in this design uses the TO-92 through-hole package. Figure 2-21 shows the location of the sensing element for this package of the DRV5056. The sensing element is located about 1.03 mm from the back side of the package. If the TO-92 width is 1.62 mm, the distance from the front of the package to the sensing element is 0.61 mm.
The DRV5056 is a unipolar device that only responds to a positive field. The device detects a positive field when a south magnetic pole is near the front (marked-side) of the package, as shown in Figure 2-22. The device can also detect a positive field when the north pole of a magnet is applied behind the back of the package.
In this design, the north pole of the magnet is applied behind the back of the package. This made for a slightly more compact design due to the Hall element placement within the package being further from the back of the package than the front of the package. If desired, the polarity and direction of approach could be changed to a south pole from the front. If this is done, then switches U1 and U2 need to swap polarities.
Based on the magnet specifications and the distance from the magnet to the sensing elements, a calculation of the magnetic flux density was done to find a proper placement of the DRV5056 by using the DRV5056 Distance Measurement Tool. This tool is able to calculate magnetic flux density for the head-on configuration used in this design, assuming that there are no x or y displacements from the center of the magnet to the sensing element. For more information, see the Head-on Linear Displacement Sensing Using Hall-Effect Sensors application brief. Since the displacement input is based on the distance from the magnet to the sensing element instead of the magnet to the top of the package, it can calculate the magnetic flux density detected when the magnet is behind the Hall sensor package as well as when the magnet is in front of the Hall sensor package.
The following procedure was used to find the placement of the DRV5056:
Based on implementing the previous procedures, the following distances were obtained and used for this design:
Figure 2-23 shows the settings used to estimate the magnetic flux density for the DRV5056. Once the settings have been entered into the tool, the tool calculates a table of the magnetic flux density. Figure 2-24 is the corresponding magnetic flux density graph, which includes the magnetic flux density waveform obtained from simulation and the magnetic flux density calculated by the DRV5056 distance measurement tool. Similarly, Figure 2-25 shows the simulated and calculated output voltage of the DRV5056.