Frequently Asked Question
How to fix the robot's motor running in reverse
Last Updated 8 days ago
Steps to fix the issue:
- Open and upload the code below into the Leanbot that has the issue:
https://git.pythaverse.space/leanbot/Calibration_Tools/blob/master/Step_Motor_Calibration.ino
- Use the TB2A touch button to change the direction of the motor after pressing it.
- Observe that if the Leanbot moves forward, it means it is rotating in the correct direction. (If not, press TB2A one more time.)
- Use the TB2B touch button to stop the Leanbot (after it has moved forward).
- Simultaneously press both TB1A and TB1B buttons to save the current rotation direction to EEPROM memory.
- Upload the new code (the test code currently running) to check.
The code used to upload to the Leanbot: