How to stop ODrive when the microcontroller shuts down

I am communicating with m5stack core2 via CAN. is there any way to stop the motor immediately when the microcontroller shuts down after the motor starts moving by specifying the target position with Trajectory control?

You can use the reset pin.


1 Like


You could read the encoder estimated position and send it straight back as a target position just before powering the microcontroller down, this is what I do to stop my CNC mill if requiring an immediate stop. Or, a guess, use one of the GPIO ODrive pins to control a motor idle state when the microcontroller 3.3v output pin changes from 3.3v to 0v, or as above use the reset pin as suggested by @Stijn_Carelsbergh.

Kind regards,


1 Like