Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Analog to Digital Converter (ADC) in nRF52833

The nRF52833 features a 12-bit Successive Approximation Register (SAR) ADC, referred to by Nordic as the SAADC, and supports up to 8 input channels for analog measurements.

Here is a mapping of analog input channels (AIN0 to AIN7) to their corresponding GPIO pins on the nRF52833.

Analog InputGPIO Pin
AIN0P0.02
AIN1P0.03
AIN2P0.04
AIN3P0.05
AIN4P0.28
AIN5P0.29
AIN6P0.30
AIN7P0.31

Microbit Pin Layout

Microbit Edge Connector ADC

This table shows which analog input channels on the nRF52833 are accessible from the micro:bit v2 edge connector. The large pins (Ring 0, Ring 1 and Ring2) provide safe and direct access to analog input without conflict. The small pins (3, 4, 10) are also ADC-capable but are shared with the LED matrix, so they should only be used for analog input when the display is disabled.

microbit PinGPIO (nRF52833)Analog InputAccessible viaShared WithNotes
0P0.02AIN0Large ringFully available
1P0.03AIN1Large ringFully available
2P0.04AIN2Large ringFully available
3P0.31AIN7Small pin 3LED Column 3Only usable when display is off
4P0.28AIN4Small pin 4LED Column 1Only usable when display is off
10P0.30AIN6Small pin 10LED Column 5Only usable when display is off

Reference