SBAS645 August   2019 DRV5057-Q1

PRODUCTION DATA.  

  1. Features
  2. Applications
  3. Description
    1.     Device Images
      1.      Typical Schematic
      2.      Magnetic Response
  4. Revision History
  5. Pin Configuration and Functions
    1.     Pin Functions
  6. Specifications
    1. 6.1 Absolute Maximum Ratings
    2. 6.2 ESD Ratings
    3. 6.3 Recommended Operating Conditions
    4. 6.4 Thermal Information
    5. 6.5 Electrical Characteristics
    6. 6.6 Magnetic Characteristics
    7. 6.7 Typical Characteristics
  7. Detailed Description
    1. 7.1 Overview
    2. 7.2 Functional Block Diagram
    3. 7.3 Feature Description
      1. 7.3.1 Magnetic Flux Direction
      2. 7.3.2 Sensitivity Linearity
      3. 7.3.3 Operating VCC Ranges
      4. 7.3.4 Sensitivity Temperature Compensation for Magnets
      5. 7.3.5 Power-On Time
      6. 7.3.6 Hall Element Location
    4. 7.4 Device Functional Modes
  8. Application and Implementation
    1. 8.1 Application Information
      1. 8.1.1 Selecting the Sensitivity Option
      2. 8.1.2 Decoding a PWM
        1. 8.1.2.1 Decoding a PWM (Digital)
          1. 8.1.2.1.1 Capture and Compare Timer Interrupt
          2. 8.1.2.1.2 Oversampling and Counting With a Timer Interrupt
          3. 8.1.2.1.3 Accuracy and Resolution
        2. 8.1.2.2 Decoding a PWM (Analog)
    2. 8.2 Typical Applications
      1. 8.2.1 Full-Swing Orientation Example
        1. 8.2.1.1 Design Requirements
        2. 8.2.1.2 Detailed Design Procedure
        3. 8.2.1.3 Application Curve
      2. 8.2.2 Half-Swing Orientation Example
        1. 8.2.2.1 Design Requirements
        2. 8.2.2.2 Detailed Design Procedure
    3. 8.3 What to Do and What Not to Do
  9. Power Supply Recommendations
  10. 10Layout
    1. 10.1 Layout Guidelines
    2. 10.2 Layout Example
  11. 11Device and Documentation Support
    1. 11.1 Documentation Support
      1. 11.1.1 Related Documentation
    2. 11.2 Receiving Notification of Documentation Updates
    3. 11.3 Community Resources
    4. 11.4 Trademarks
    5. 11.5 Electrostatic Discharge Caution
    6. 11.6 Glossary
  12. 12Mechanical, Packaging, and Orderable Information

Package Options

Mechanical Data (Package|Pins)
Thermal pad, mechanical data (Package|Pins)
Orderable Information

Detailed Design Procedure

As illustrated in Figure 20, this design example consists of a mechanical component that moves back and forth, an embedded magnet with the south pole facing the printed-circuit board, and a DRV5057-Q1. The DRV5057-Q1 outputs a PWM that describes the precise position of the component. The component must not contain ferromagnetic materials such as iron, nickel, and cobalt because these materials change the magnetic flux density at the sensor.

When designing a linear magnetic sensing system, always consider these three variables: the magnet, sensing distance, and the range of the sensor. Select the DRV5057-Q1 with the highest sensitivity possible based on the system distance requirements without railing the sensor PWM output. To determine the magnetic flux density the sensor receives at the various positions of the magnet, use a magnetic field calculator or simulation software, referring to magnet specifications, and testing.

Magnets are made from various ferromagnetic materials that have tradeoffs in cost, drift with temperature, absolute maximum temperature ratings, remanence or residual induction (Br), and coercivity (Hc). The Br and the dimensions of a magnet determine the magnetic flux density (B) produced in 3-dimensional space. For simple magnet shapes, such as rectangular blocks and cylinders, there are simple equations that solve B at a given distance centered with the magnet. Figure 21 shows diagrams for Equation 4 and Equation 5.

DRV5057-Q1 mag.gifFigure 21. Rectangular Block and Cylinder Magnets

Use Equation 4 for the rectangular block shown in Figure 21:

Equation 4. DRV5057-Q1 RectEQ.gif

Use Equation 5 for the cylinder illustrated in Figure 21:

Equation 5. DRV5057-Q1 CylEQ.gif

where

  • W is width
  • L is length
  • T is thickness (the direction of magnetization)
  • D is distance
  • C is diameter

This example uses a cylinder magnet; therefore, Equation 5 can be used to create a lookup table for the distances from a specific magnet based on a magnetic field strength. Figure 22 shows a magnetic field from 0 mm to 16 mm with the magnet defined in Table 2 as C = 4.7625 mm, T = 12.7 mm, and Br = 1480 mT.

DRV5057-Q1 D009_SBAS645.gifFigure 22. Magnetic Field vs Distance

In this setup, each gain version of the sensor produces the corresponding duty cycle shown in Figure 23 for 0 mm to 16 mm.

DRV5057-Q1 D008_SBAS645.gifFigure 23. %D vs South Pole Distance (All Gains)

With a desired 5-mm movement swing, select the DRV5057-Q1 with the largest possible sensitivity that fits the system requirements for the magnet distance to the sensor. Assume that for this example, because of mechanical restrictions, the magnet at the nearest point to the sensor must be selected to be within 5 mm to 8 mm. The largest sensitivity option (A1) does not work in this situation because the device output is railed at the farthest allowed distance of 8 mm. The A2 version is not railed at this point, and is therefore the sensor selected for this example. Choose the closest point of the magnet to the sensor to be a distance that allows the magnet to get as close to the sensor as possible without railing but stays within the selectable 5-mm to 8-mm allowed range. Because the A2 version rails at approximately 6 mm, choose a closest distance of 6.5 mm to allow for a little bit of margin. With this choice, Figure 24 shows the %D response at the sensor across the full movement range.

DRV5057-Q1 D007_SBAS645.gifFigure 24. %D vs South Pole Distance (Gain A2)

The magnetic field strength is calculated using Equation 6, where a negative number represents the opposite pole (in this example a south pole is over the sensor, causing the results to be a positive number).

Equation 6. DRV5057-Q1 drv5057-equation-3.gif

For example, if the A2 version of the DRV5057-Q1 measured a duty cycle of %D = 74.6% using Equation 1 , then the magnetic field strength present at the sensor is (74.6 – 50) / 1 = 24.6 mT.

Using the lookup table that was used to create the plot in Figure 22, the distance from the magnet at 24.6 mT is D ≈ 8.2 mm.

For more accurate results, the lookup table can be calibrated along the movement path of the magnet. Additionally, instead of using the calibrated lookup table for each measurement, consider using a best-fit polynomial equation from the curve for the desired movement range to calculate D in terms of B.

The curve in Figure 24 is not linear; therefore, the achievable accuracy varies for each position along the movement path. The location with the worst accuracy is where there is the smallest change in output for a given amount of movement, which in this example is where the magnet is farthest from the sensor (at 11.5 mm). Determine if the desired accuracy is met by checking if the needed %DLSB at this location for the specified accuracy is greater than the noise level (PWM jitter) of 0.1%D. Thus, with a desired accuracy of 0.1 mm, the needed %DLSB is the change in %D between 11.4 mm and 11.5 mm. Using the lookup table to find B and then solving for %D in Equation 6, at 11.5 mm, B = 11.815 mT (which equates to 61.815%D), and at 11.4 mm B = 12.048 mT (which equates to 62.048%D). The difference in %D between these two points is 62.048 – 61.815 = 0.223%DLSB. This value is larger than the 0.1%D jitter, so the desired accuracy can be met as long as a %DLSB is selected that is equal to or less than 0.223 using Equation 2.