ODRIVE 3.6 velocity mode brake

I wonder if I can control my ebrake strength on my odrive 3.6, I am going to use on my skate board.
Any feedback will be appreciated.

Usually adding an external motion controller such as an Arduino to do direct torque commands based on throttle input + speed is the best move.

Thank you for your response. I apologize for any confusion in my previous message. I am seeking guidance on implementing an electronic brake for my skateboard using ODrive. Specifically, I want the brake to engage when I push the trigger on the remote (used for brake) and for the throttle to activate when I pull the trigger. Additionally, I aim for the brake force to vary based on the input level from a potentiometer. Could you provide detailed instructions or assistance on how to achieve this with the ODrive?

I’d generally approach this by using an external Arduino communicating with the ODrive over UART, with the throttle/brake connected to the Arduino. The simplest thing is to use the throttle to command a torque to the ODrive, with the velocity limit additionally set via the throttle proportion as well - this way you have the throttle correspond to both torque and speed, so a low throttle on a flat surface doesn’t eventually accelerate you up to max speed :slight_smile:

Similar thing for brake - just command a negative torque proportional to the brake, but ramp it down as the ODrive speed approaches zero (with some simple logic on the Arduino) so you don’t start going backwards.

thank you very much bro, I’ll take a shot
and what if I want my motor to be free run? for the case when I release the throttle of the skateboard without brake, to let the board run freely?

regards
cyrus

If you’re controlling with the Arduino, simply commanding a zero torque setpoint will let the motors coast :slight_smile:

thank you so much bro, I’ll try it with stm32 or arduino

hey bro, I wonder whether the commands for arduino are the same ones for uart?

regards
cyrus

Yes ASCII Protocol — ODrive Documentation 0.5.6 documentation

got it, and I have tried, but the weird thing is my odrive was only taking the commands begins with t, q, p, it didn’ t response to commands begins with v, c,

I am glad for your reply bro
regards
cyrus