You are here

Controlling (HB) Braking from Arduino

1 post / 0 new
Bruce
Bruce's picture
Offline
Last seen: 3 years 1 month ago
Joined: 2021-02-11 00:22
Posts: 2
Controlling (HB) Braking from Arduino

Currently I am using the development branch of RollingGecko/VescUartControl to control two Flipsky 4.12 50A VESCs with an Arduino Mega. I find that the setBrakeCurrent() function has a similar result to the IB (!) button in VESCTool.  This appears to be intented to slow rotation rather than cause a complete stop.  I want to be able to lock up the wheels if rotation is detected when the controller is in neutral.

The HB (!) button in VESC tool provides the type of braking that I need. How can I call this function from an Arduino? 

Thanks for your advice.