Python program for testing motor on ODRIVE Driver with closed loop parameter settings
- Closed loop settings (KP, KI, Ramp Rate, etc.)
- Change direction of motor using keybind
- Auto reset motor error when running
- Incremental velocity with delay
- Motor PID graphic with Matplotlib
- Python 3.x
- keyboard library (pip install keyboard)
- odrivetool library (pip install odrive)
- time library (pip install time)
- Clone this repository or download the OdriveTEST.py file to your computer.
- Open a terminal or command prompt and navigate to the directory where the OdriveTEST.py file is located.
- Install all of the library by running: pip install keyboard pip install odrive pip install time
- Be super user by running command: sudo su
- Run the program by running the command python OdriveTEST.py.
- The program window will appear, wait the motor calibrate itself.
- run the your prefered speed by clicking the keybind (p, o, l, k)
- if you want to turn off the motor, simply click h in your keyboard
- To exit the program, simply click the "Exit" button or close the window.
This program was created by Nafianjaaay. If you have any questions or suggestions, please feel free to contact me at [email protected].