You are here

Brake Switch

2 posts / 0 new
Last post
Fotherja
Offline
Last seen: 1 year 2 months ago
Joined: 2017-11-02 01:59
Posts: 3
Brake Switch

Hi,

I'm using the VESC6 in my electric scooter. I have the throttle input going into ADC1. I want to use a push button switch on the handlebars to swap the motor torque direction ie. to activate regen mode. Essentially the throttle will become a variable regen brake whilst the switch is pushed.

My question is, what input do I connect the switch to? Is there a pin with a pull up resistor so the switch can just pull the input to ground? It'd be nice to avoid having to do all that myself.

Thanks in advance,

James

Fotherja
Offline
Last seen: 1 year 2 months ago
Joined: 2017-11-02 01:59
Posts: 3

The answer to this question is: RX_SDA_NSS which is pin 5 on the  8-pin COMM connector. At least for "Current No Reverse Brake Button" in ADC app mode. When in this mode, the pin is pulled high by the STM32F4.