Using VESC custom app to cut power when stopped

Howiep

1 mW
Joined
Jul 1, 2019
Messages
11
Hi everyone,

I'm running a Kepler style friction drive with a VESC and torque sensor. It works really well, except I find it irritating when the bike is stopped - if I rest my foot on the pedal the bike wants to go. This leads to me awkwardly hovering my foot above the pedal at the lights.

I believe you can add this functionality to the VESC via the custom app, but it's really out of my depth as to how.

I can find what seems like a pretty good description here -

https://electric-skateboard.builders/t/roll-to-start-or-the-police-will-take-it-away-eu/88829/31

There is also a Vedder guide for using/creating custom apps, but it's from 2015, and I wonder if there are any differences now that I won't catch if I follow the guide - http://vedder.se/2015/08/vesc-writing-custom-applications/


Both these are written for someone who knows what their doing with coding. I can probably figure out how to copy in the code and upload the edited firmware. I'm still not sure of a few things though, such as -

- I'm using ADC input, not PPM, so I just copy Deodand's text into app_adc.c? just like this?

if(mc_interface_get_rpm() > 1000)
Send current to motors

Else
Send no current


- How do I also do that for current commands less than zero as suggested?
- Is there any way to do this on a phone via the Android app so I don't have to hook the thing up to my computer?

Would appreciate any suggestion or instruction. I'm sure there are others out there too who'd enjoy this feature. Thanks in advance.
 
That is a good idea which I could implement with the tiny force sensing resistors I’m using for the torque sensor.

I just dread having to make/crimp any more tiny damned JST wiring, but may have to bite the bullet.

Thanks for the tip!
 
Back
Top