
4.2.2 Rotate and Push Demo
To use the rotate and push demo:
1. Attach the Rotate & Push Module to the EVM as shown in
.
Figure 4-10. Rotate & Push Module on EVM
2. In the GUI register page:
a. Make sure that the DEVICE_CONFIG → OPERATING_MODE says
(TRIGGER_MODE Active)
.
b. Make sure that SYSTEM_CONFIG → TRIGGER_MODE is set to the default value.
c. Under the SENSOR_CONFIG register:
i.
Make sure both the x and y channels are enabled (MAG_CH_EN).
ii. Set X_RANGE and Y_RANGE to ±100mT for A1 versions, and ±133mT for A2 versions.
iii. Optional: Set ANGLE_EN to X-Y angle calculation.
d. At the top of the register map, set
Auto Read
to
As fast as possible
.
3. Go to the
Rotate & Push
tab inside the plots page (see
).
Figure 4-11. Rotate & Push GUI Page
4. If the push button LEDs are not triggering at every angle or trigger when they are not supposed to, calibrate
the module by doing the following:
a. With the settings set to run the demo, slowly rotate the module 360° and use the plots page to record the
absolute value of the minimum and maximum magnetic field measurements (in mT) for both the X and Y
channels.
b. Adjust the
Push threshold calibration
value found in the
Rotate & Push
tab to be about 3-5mT larger than
the maximum value recorded above.
Operation
8
TMAG5170UEVM
SBAU388A – SEPTEMBER 2021 – REVISED FEBRUARY 2022
Copyright © 2022 Texas Instruments Incorporated