This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM263P4-Q1: Motor Direction Detection Using Resolver Angle and Speed

Part Number: AM263P4-Q1

Hi Team,

I’m currently working on the resolver module of a motor controller project. I’d like to understand how to determine the direction of rotation (clockwise or counter‑clockwise) using the resolver angle and speed information.

As per the resolver documentation: AM263Px MCU+ SDK: RESOLVER 

  • The angle output from the ArcTan and Track2 loops is a signed 16‑bit value
  • It maps to a physical angle range of –180° to +180°

My initial understanding was:

  • Angle varying between 0° to +180° → clockwise rotation
  • Angle varying between 0° to –180° → counter‑clockwise rotation

However, I’m not sure if this interpretation is correct, especially when the angle wraps around between +180° and –180°.

Questions:

  1. Can the motor direction be reliably determined directly from the absolute resolver angle?
  2. If not, what is the recommended way to detect direction using resolver angle and/or speed?
  3. Are there any standard approaches or edge cases (like angle wrap‑around) that I should consider?

Any guidance or references would be appreciated.

Thanks in advance.

image.png

  • The angle represents where the motor is right now within a revolution. The velocity, however, is a signed derivative d(theta)/dt and the sign represents the direction. That is speed > 0 --> forward, speed < 0 --> reverse speed == 0 --> stopped.