TIDUFF8 September   2025

 

  1.   1
  2.   Description
  3.   Resources
  4.   Features
  5.   Applications
  6.   6
  7. 1System Description
    1. 1.1 Key System Specifications
  8. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Design Considerations
    3. 2.3 Highlighted Products
      1. 2.3.1 LDC5072-Q1
      2. 2.3.2 MSPM0G3507
      3. 2.3.3 TPSM365R3
      4. 2.3.4 TLV9062
  9. 3System Design Theory
    1. 3.1 Hardware Design
      1. 3.1.1 Target PCB
      2. 3.1.2 Coil PCB
      3. 3.1.3 Signal Chain PCB
        1. 3.1.3.1 Inductive Angle Position Sensor Front-End Schematic
        2. 3.1.3.2 Differential to Single-Ended Signal Conversion
      4. 3.1.4 MSPM0G3507 Schematic Design
      5. 3.1.5 Power Supply Design
    2. 3.2 Absolute Position Calculation
    3. 3.3 Software Design
      1. 3.3.1 Angle Calculation Timing
      2. 3.3.2 Rotary Angle Error Sources and Compensation
  10. 4Hardware, Software, Testing Requirements, and Test Results
    1. 4.1 Hardware Requirements
      1. 4.1.1 PCB Overview
      2. 4.1.2 Encoder Interface
    2. 4.2 Software
    3. 4.3 Test Setup
    4. 4.4 Test Results
      1. 4.4.1 Inductive Sensor Sine and Cosine Noise Measurement
      2. 4.4.2 Absolute Angle Noise Measurement
      3. 4.4.3 Rotary Angle Accuracy Measurement
      4. 4.4.4 Impact of Air Gap on Noise, 4th Electrical Harmonics and Total Angle Accuracy
      5. 4.4.5 Power Consumption Measurement
  11. 5Design and Documentation Support
    1. 5.1 Design Files
      1. 5.1.1 Schematics
      2. 5.1.2 BOM
      3. 5.1.3 PCB Layout
      4. 5.1.4 Altium Project Files
      5. 5.1.5 Gerber Files
      6. 5.1.6 Assembly Drawings
    2. 5.2 Tools and Software
    3. 5.3 Documentation Support
    4. 5.4 Support Resources
    5.     Trademarks
  12. 6About the Author

Rotary Angle Error Sources and Compensation

Align the center of the target board to the center of the coil board, with acceptable tolerances, for accurate angle measurement. Follow these steps to calibrate the encoder for best accuracy:

  • Set the reference angle based on the magnet alignment to the sensor. This error can be saved in the microcontroller for runtime absolute position calculation. This error is also known as Angle offset in a system.
  • Electrical offset calibration - See the Calibration of AMR Angle Sensors application report for the offset calibration procedure. If the sensor cannot be rotated across the full range, then the electrical offsets cannot be calibrated.
  • Amplitude mismatch calibration - See the Calibration of AMR Angle Sensors application report for the amplitude mismatch calibration procedure. If the sensor cannot be rotated across the full range, then the amplitude mismatch cannot be calibrated.

Further error sources include nonlinearity of the sensor signal chain such as the 3rd harmonics, and a mechanical error through coupling a reference angle encoder to the shaft of the absolute inductive encoder. The following figures outline the error source and the impact to the angular error to understand and compensate these types of errors.

TIDA-010961 Shaft Adapter Mechanical DisplacementFigure 3-11 Shaft Adapter Mechanical Displacement
TIDA-010961 Target Board and Coil Board DisplacementFigure 3-13 Target Board and Coil Board Displacement
TIDA-010961 Mechanical Angle Error Due to Shaft Adapter DisplacementFigure 3-12 Mechanical Angle Error Due to Shaft Adapter Displacement
TIDA-010961 Electrical Angle Error due to Target Board and Coil Board DisplacementFigure 3-14 Electrical Angle Error due to Target Board and Coil Board Displacement

Figure 3-15 to Figure 3-17 show examples of the electrical offset, gain-mismatch and nonlinearity (3rd harmonics) of the sensor signal chain impact the angle error.

TIDA-010961 Electrical Angle Error due to Sine Signal and Cosine Signal Chain Offset (0.1%)Figure 3-15 Electrical Angle Error due to Sine Signal and Cosine Signal Chain Offset (0.1%)
TIDA-010961 Electrical Angle Error due to Sine Signal and Cosine Signal Chain Nonlinearity (0.1%)Figure 3-17 Electrical Angle Error due to Sine Signal and Cosine Signal Chain Nonlinearity (0.1%)
TIDA-010961 Electrical Angle Error due to Sine Signal and Cosine Signal Gain Mismatch (0.1%)Figure 3-16 Electrical Angle Error due to Sine Signal and Cosine Signal Gain Mismatch (0.1%)

Because the outer coils have 16 periods, multiply the electrical angle error order by 16 to get the mechanical angle error order. Table 3-3 summarizes the impact on the angular error pattern.

Table 3-3 Errors Sources and Impact on Angle Error Harmonics
ERROR SOURCESSHAFT COUPLING DISPLACEMENTTARGET BOARD AND COIL BOARD DISPLACEMENTSIGNAL CHAIN OFFSETSIGNAL CHAIN
GAIN MISMATCH
SIGNAL CHAIN NONLINEARITY (3RD HARMONIC)
ELECTRICAL ANGULAR
ERROR HARMONIC
1st1st2nd4th
MECHANICAL ANGULAR
ERROR HARMONIC
1st16th16th32nd64th

For more information on angle position calculation algorithms, see also the Achieving Highest System Angle Sensing Accuracy application report.