I am using a poteniometer and the output is connected to the ADC pin. I have a switch connected in between the output of the poteniometer and the ADC pin on the vesc. I am using the switch in such a way that when someone stands on the ADC value is fed into the vesc and the motor can run at the desired value and when the user gets off the device turns on. But I am seeing an issue where the ADC value is floating(approx 1.30-1.4 when the switch is off). Is there a way the ADC can get 0V when nothing is connected to it?
I am using VESC MKV6
Run a 1Meg resistor from the ADC pin to ground. This will pull the voltage down to zero when the switch is open but the 1Meg resistance should be high enough to not affect (much) the voltage at the ADC pin when the switch is closed.
Verify the ADC pin’s voltage and your connections carefully before riding.
1 Like
Thanks. Will try that
1 Like
Don’t connect the pot to 5V either. Only use the 3.3V pin.
1 Like
I want pics please.