Flipper Zero SimulatorDismantle, inspect and operate the device.
Interactive lab
Loading the Blender model…
0/50
Read a voltage with the 12-bit ADC.
Module: GPIO and buses
Raw code = Vin / 3.3 V × 4095. Accurate readings need a low-impedance source and averaging.
A potentiometer on the prototyping module makes a variable voltage divider for the ADC.
FuriHalAdcHandle* adc = furi_hal_adc_acquire();
furi_hal_adc_configure(adc);
uint16_t raw = furi_hal_adc_read(adc, FuriHalAdcChannel4);
Full-scale 12-bit code?
Try it yourself
l17_analog_input_adc.c
FuriHalAdcHandle* adc = furi_hal_adc_acquire();
furi_hal_adc_configure(adc);
uint16_t raw = furi_hal_adc_read(adc, FuriHalAdcChannel4);