Opens in a new tab

BBC micro:bit V2 Pinout

BBC micro:bit is an educational board with the nRF52833 chip, a 25-LED matrix, buttons, an accelerometer, a magnetometer, a speaker and a microphone. It is programmed in MakeCode, MicroPython or Scratch. Everything else connects via the edge connector: five rings for banana plugs and alligator clips (0, 1, 2, 3V, GND) and 20 narrow pads for the edge connector of expansion boards.

Specifications

  • nRF52833: ARM Cortex-M4F 64 MHz, 512 KB flash, 128 KB RAM
  • Bluetooth LE 5
  • 19 GPIO on the edge connector, 6 analog inputs (P0–P4, P10), touch on P0–P2 and the logo
  • SPI (P13–P15), external I2C (P19/P20), UART and PWM on any pin
  • 5 × 5 LED matrix, A and B buttons, speaker, microphone, accelerometer and magnetometer
  • 51.6 × 42 mm

The diagram shows the front side rotated by 90° – the edge connector is on the left, P3 at the top, GND at the bottom. The contact order is the same on V1 and V2. The narrow pads have a 1.27 mm pitch; besides their rings, 3V and GND each have two more pads with the same voltage.

On V2, P19/P20 are a separate external I2C bus (the onboard sensors use an internal one) and P9 is free. Pins P3, P4, P6, P7 and P10 are display columns – you can use them as GPIO only with the display turned off.

Pinout and pin table

Hover over a pin in the diagram or a table row; use the filter to highlight a bus. You can download the pinout as PNG or SVG.

BBC micro:bit V2 – edge connector pinoutBBC micro:bit V2 – edge connector pinoutchiptron.eu · CC BY 4.0AB P3 P0.31 AIN7 displej COL3 P0 P0.02 AIN0 dotyk zvuk (MakeCode) P4 P0.28 AIN4 displej COL1 P5 P0.14 button A P6 P1.05 displej COL4 P7 P0.11 displej COL2 P1 P0.03 AIN1 dotyk P8 P0.10 P9 P0.09 P10 P0.30 AIN6 displej COL5 P11 P0.23 button B P12 P0.12 reserved P2 P0.04 AIN2 dotyk P13 P0.17 SCK P14 P0.01 MISO P15 P0.13 MOSI P16 P1.02 3V ↔ 3.3 V output (max. 190 mA) 3V ↔ 3V ↔ P19 P0.26 SCL P20 P1.00 SDA GND GND GND Edge connector GPIO nRF52833 I2C SPI ADC (analog) Touch Power Ground (GND)
Download:PNGSVG
Pin table – BBC micro:bit V2
PinNamenRF52833DirectionI2CSPIADCTouchNote
Edge connector 1P3P0.31input/outputAIN7Display column COL3 – usable as GPIO only with the display off (display.disable()); light sensing stops working along with the display.
Edge connector 2P0P0.02input/outputAIN0dotykAnalog input, touch (ring). MakeCode also sends speaker audio to P0 – move it elsewhere with pins.setAudioPin().
Edge connector 3P4P0.28input/outputAIN4Display column COL1 – only with the display off.
Edge connector 4P5P0.14input/outputButton A (10 kΩ pull-up) – do not use as GPIO
Edge connector 5P6P1.05input/outputDisplay column COL4 – only with the display off.
Edge connector 6P7P0.11input/outputDisplay column COL2 – only with the display off.
Edge connector 7P1P0.03input/outputAIN1dotyk
Edge connector 8P8P0.10input/outputFree GPIO (NFC2 on the chip, GPIO by default).
Edge connector 9P9P0.09input/outputFree on V2 (on V1 it was a display column). NFC1 on the chip – GPIO by default.
Edge connector 10P10P0.30input/outputAIN6Display column COL5 – only with the display off.
Edge connector 11P11P0.23input/outputButton B (10 kΩ pull-up) – do not use as GPIO
Edge connector 12P12P0.12input/outputReserved for accessibility
Edge connector 13P2P0.04input/outputAIN2dotyk
Edge connector 14P13P0.17input/outputSCK
Edge connector 15P14P0.01input/outputMISO
Edge connector 16P15P0.13input/outputMOSI
Edge connector 17P16P1.02input/output
Edge connector 183Vinput/output3.3 V output for accessories, max. 190 mA. When powered via the 3V ring, the voltage goes straight to the chips' supply – use only a regulated 1.8–3.6 V source, ideally through a diode.
Edge connector 193Vinput/output3.3 V output for accessories, max. 190 mA. When powered via the 3V ring, the voltage goes straight to the chips' supply – use only a regulated 1.8–3.6 V source, ideally through a diode.
Edge connector 203Vinput/output3.3 V output for accessories, max. 190 mA. When powered via the 3V ring, the voltage goes straight to the chips' supply – use only a regulated 1.8–3.6 V source, ideally through a diode.
Edge connector 21P19P0.26input/outputSCLExternal I2C SCL with a 4.7 kΩ pull-up. On V2 the accelerometer, magnetometer and interface chip are on a separate internal bus (on V1 it was shared).
Edge connector 22P20P1.00input/outputSDAExternal I2C SDA, 4.7 kΩ pull-up
Edge connector 23GND–
Edge connector 24GND–
Edge connector 25GND–

Pins used on the board

These chip pins are used by parts on the board and are not broken out:

PinFunction on the board
P0.00Reproduktor
P0.05Mikrofon (AIN3)
P0.20Power for the microphone and its LED
P1.04Touch logo
P0.08, P0.16Internal I2C SCL, SDA – accelerometer and magnetometer (0x19, 0x1E), interface chip (0x70/0x72)
P0.25Sensor interrupt
P0.21, P0.22, P0.15, P0.24, P0.19LED matrix rows ROW1–ROW5
P0.06, P1.08UART to the interface chip (USB)

What to watch out for

  • GPIO are not 5V tolerant (3.3 V logic).
  • P3, P4, P6, P7 and P10 are shared with the display – turn it off (display.disable()).
  • P5 and P11 are buttons A and B – don’t use them as GPIO.
  • Draw at most 190 mA from the 3V ring; power it externally only with a regulated 1.8–3.6 V.
  • MakeCode also sends audio to P0 – move it elsewhere with pins.setAudioPin().

More pinouts

See all pinouts on the Pinouts page.

Related Articles