vedderb / bldc

The VESC motor control firmware
2.14k stars 1.34k forks source link

Safety Feature Request: emergency stop app #528

Closed AkbarRamzan closed 1 year ago

AkbarRamzan commented 1 year ago

It would be nice if there was an app that triggered an emergency stop if a given pin state becomes high or low. There should be support to select internal pull-up or pull down for the input. On ebikes, this would commonly be an ignition key switch or a magnetic clip that goes from your handlebar to your clothing so if you fall off, it detaches and triggers an emergency stop. This can be different to using ADC2 brake as you may want the vehicle to freewheel to a stop rather than regen brake.

vedderb commented 1 year ago

There is already a kill switch setting in the app config where you can use the ppm or adc pin as a kill switch. Is this what you are looking for?

AkbarRamzan commented 1 year ago

Yes actually that's exactly it, thanks