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.

TMAG3001: How to get the direction and velocity data

Part Number: TMAG3001

Tool/software:

Dear TI Engineer,

Our application is as follows: the Hall sensor is fixed and attached to the inside of the knob. When turning the knob, the Hall sensor needs to monitor the direction and speed of rotation.

We have referred to the driver on the website of TMAG3001 and now can get the data on XYZ three-axis and angle. But we need to know the direction and velocity data, can we calculate the direction and velocity data based on data from the XYZ axes data? If yes, do you have corresponding algorithms available?

Thanks,

Kind Regards

  • Lumina,

    Thanks for reaching out on E2E.  If the magnet in this case has a series of repeating poles, you could use the switch mode on the device to program thresholds.  As the sinusoidal input varies from pole to pole you could create an interrupt signal which would indicate speed. 

    To track direction, however, you would need to track the angle of the knob calculated by the sensor and determine whether it is increasing or decreasing based on the previous angle measurement.

    Thanks,

    Scott