Skip to main content
The ADC application reads analog voltages from the COMM header’s ADC1 and ADC2 pins and maps them to a motor output level. It is the standard choice for physical throttle and brake levers that output a voltage proportional to position.

Voltage range

Default voltage mapping from appconf_default.h:
If the measured voltage falls outside voltage_minvoltage_max, the application treats it as a disconnected sensor and cuts motor output. Ensure your sensor voltage never exceeds 3.3 V on standard VESC hardware.

Control types

Configuration struct

Key parameters

Throttle curve

The throttle_exp and throttle_exp_brake fields tune the exponential response curve, controlled by throttle_exp_mode:
A value of 0.0 gives a linear response. Positive values make the initial part of the throttle softer.

Runtime API

app_adc_range_ok returns false when either ADC channel voltage is outside the configured min/max bounds, which can be polled to detect a disconnected sensor.