GPIO Button Motor Control

Is there a way to map digital GPIO input to place a motor into IDLE or CLOSED_LOOP_CONTROL states? I have successfully connected a potentiometer to control the velocity of my motor via analog_mapping, but the min/max range is so large that even at the bottom end the motor isn’t completely stopped (with velocity 0). The GPIO I intend to have is a button that would toggle the motor from idle/closed loop and a potentiometer that controls velocity when it is in closed loop control. The goal is to have the odrive in an installation that is independent from a computer. If anyone can point me in the right direction that would be amazing, thank you!

1 Like

Sorry, no. this isn’t possible.