You are here

Kill Function - Analogue Input

6 posts / 0 new
Last post
austrobots
Offline
Last seen: 3 months 1 week ago
VESC Free
Joined: 2022-11-21 09:44
Posts: 4
Kill Function - Analogue Input

Hello. I am intending to use the analogue input as a kill switch for my VESCs. I was hoping to pull AD1 low with a 5k resistor to ground an then enable it with a 5V input from an Arduino (via a safety lanyard switch).  I can not see in any documentation what the "high" value is for the analogue input. Will 5V be high enough to pull it "High"?

austrobots
Offline
Last seen: 3 months 1 week ago
VESC Free
Joined: 2022-11-21 09:44
Posts: 4

Also, does Mode "ADC2 Low" mean the VESC cuts power when the signal is low or when the signal is high? 

frank
Offline
Last seen: 1 day 6 hours ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847

low

austrobots
Offline
Last seen: 3 months 1 week ago
VESC Free
Joined: 2022-11-21 09:44
Posts: 4

Thank you. it cuts power when teh analogue input goes "low".

What voltage is read as high? Above 0.6?, 1.5?, 2.0? 

 

The reason I ask is that I have two MakerrX 300A ESCs and am controlling them via UART.  When I connect the two A2 inputs and have 5 Volts on them and enable "A2 Low", they produce no power.

 

 

 

frank
Offline
Last seen: 1 day 6 hours ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847

The analogue Inputs should nver see above 3.3V. The Pins are not 5V tolerant and 5V will damge the STM processor.

Low: connected to GND with 10K resistor. High: pulled up to 3.3V for example.

austrobots
Offline
Last seen: 3 months 1 week ago
VESC Free
Joined: 2022-11-21 09:44
Posts: 4

Thanks!  I have it working.