# How to re-calibrated DexArm or reset encoder values?

Follow the instructions below to recalibrate your DexArm:&#x20;

**If the robot arm got stuck during operation, you need to reset the encoder value with the following steps:**

1\. Open Rotrics Studio and click Terminal, send command M18, the motor will go into deactivation status.

2\. Adjust the arm to the following position, make sure Axis 1 and Axis 2 is in the maximum position:

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M7lDiZ0MSBWU_cWDqcL%2F-M7lFlDBec6LHrfu31n2%2FArm.jpg?alt=media\&token=14f559a6-d2a4-4d2a-ad58-52ecea38adf2)

2\.  Send command M889. The robot will read and save this position.&#x20;

3\. Then send command M1112, the Arm will move to HOME position (X0 Y300 Z0).

4\. Encoder value reset completed, you can move the arm smoothly now.&#x20;
