TIDUC07 March 2022
In any precision motor control application it becomes necessary to assess angular position of the motor shaft to ensure overall control of the system matches expectation. Inaccurate position data may result with impaired user safety, wider manufacturing tolerances and yield loss, navigation failures, or damaged equipment. As a result, it becomes essential in many applications to constantly monitor and evaluate angular position. For example, in autonomous mobile robots and robotic lawnmowers, the ability to match the angular rotation speed of each wheel is critical for proper navigation.
Although various technologies exist for angle measurement, this design demonstrates the use of two standard one dimensional (1D) linear Hall-effect sensors or a three dimensional (3D) linear Hall-effect sensor. Each technique is subject to various challenges which must be addressed.
METHOD | ADVANTAGES | DISADVANTAGES |
---|---|---|
3D Hall-effect (Method demonstrated in this design) |
|
|
1D Hall-effect (Method demonstrated in this design) |
|
|
Hall-effect Incremental Encoding |
|
|
Inductive Sensed Angle Encoding |
|
|
Optical Encoding |
|
|
Stepper Motor Pulse counting |
|
|
Sensorless Motor Control |
|
|
Not all solutions are able to use optical encoding due to contaminants such as dust, dirt, and grime. Optical solutions tend to become bulky to create sealed environments for the sensor, which do not fit well into compact designs.
For inductive and linear Hall-effect based solutions, the premise of the angle calculation uses sinusoidal outputs which are 90° out of phase from each other.
With outputs of this form, use Equation 1 through Equation 4 to describe the absolute angle.
As Equation 4 shows, determine the angle by calculating the arctangent of the ratio of the two outputs. To simplify this calculation step in software, use the atan2() function available in many coding libraries. This function automatically considers the sign of each input and applies adjustments to produce an output ranging from ±180°.
An additional option is to use a device with an integrated CORDIC calculator. CORDIC is an algorithm that approximates a binary search by performing vector rotations and has been optimized for digital logic. Devices such as TMAG5170 and TMAG5273 are capable of generating angle outputs using the device outputs with minimal total system latency.
Linear Hall-effect solutions may be implemented in the following arrangements, which will be explored in more detail in Sensor Location.