M5Stack ATOM Lite pinout

M5Stack ATOM Lite (ESP32-PICO-D4), ESP32-PICO-D4, 3.3 V logic, 24×24 mm, 13 pins

verified20.10.2026

PWM on every GPIO, no GPIO tolerates 5 V, ADC2 doesn't work with Wi-Fi on, outlined: default in arduino-esp32.

Bottom view (the header and sticker side), Grove connector at the bottom edge; USB-C on the same end, G39 button and RGB LED on the opposite side.

BuyCompareDownload PNG
Chip
ESP32-PICO-D4
Logic
3.3 V
Power
USB-C 4.75-5.25 V5V (header or Grove) 4.75-5.25 V
Defaults in arduino-esp32 (M5Stack-ATOM)
I2C: SDA 26, SCL 32SPI: MOSI 33, MISO 23, SCK 22, SS 19UART: TX 1, RX 3

Which M5Stack ATOM Lite pins are safe to use

Free to use

GPIO19, GPIO21-23, GPIO25, GPIO26, GPIO32, GPIO33

Important

  • 3.3 V logic, don't put 5 V on the GPIO.
  • The drawing is a bottom view: this is how the pins look on the case. The button, RGB LED and IR LED are on the other side and are not broken out.
  • Button: G39, input only, 4.7 kΩ pull-up to 3.3 V on the board, pressing gives a low level.
  • SK6812 RGB LED on G27, 5 V supply. IR LED on G12 through 22 Ω; G12 is the strapping pin MTDI, a low level at reset selects 3.3 V flash.
  • SPI in arduino-esp32 (M5Stack-ATOM board): SCK G22, MISO G23, MOSI G33, SS G19. The M5Stack pinout labels it differently: MOSI G19, CLK G23, MISO G33.
  • I2C in arduino-esp32: Wire on Grove (SDA G26, SCL G32). The M5Stack pinout shows another pair: SCL G21, SDA G25.
  • USB-UART on CH552T, M5Stack docs say the FTDI VCP driver is needed.
  • Header positions are taken from the dimension drawing, Grove is drawn approximately.
  • The 5V of the header and Grove comes from USB through a 1N5819 diode and a 1 A resettable fuse. 3.3 V comes from the SY8089A DC-DC.

All pins

LabelNumberFunctionsLimitsCheck
3V33.3 Vpower outputverified
G22GPIO22interruptPWM (LEDC)SPI SCKnot 5 V tolerantverified
G19GPIO19interruptPWM (LEDC)SPI SSSPI MOSI (M5Stack pinout)not 5 V tolerantverified
G23GPIO23interruptPWM (LEDC)SPI MISOSPI CLK (M5Stack pinout)ADC1_CH6 via GPIO34not 5 V tolerantverified
G33GPIO33interruptPWM (LEDC)ADC1_CH5TOUCH8RTC_GPIO8XTAL_32K_N (32 kHz crystal)SPI MOSISPI MISO (M5Stack pinout)not 5 V tolerantverified
G21GPIO21interruptPWM (LEDC)I2C SCL (M5Stack pinout)not 5 V tolerantverified
G25GPIO25interruptPWM (LEDC)ADC2_CH8RTC_GPIO6DAC1I2C SDA (M5Stack pinout)ADC2 doesn't work with Wi-Fi onnot 5 V tolerantverified
5V5 Vpower inputpower outputverified
GGroundverified
GGroundverified
5V5 Vpower inputpower outputverified
G26GPIO26interruptPWM (LEDC)ADC2_CH9RTC_GPIO7DAC2I2C SDA (Wire)ADC2 doesn't work with Wi-Fi onnot 5 V tolerantverified
G32GPIO32interruptPWM (LEDC)ADC1_CH4TOUCH9RTC_GPIO9XTAL_32K_P (32 kHz crystal)I2C SCL (Wire)not 5 V tolerantverified

Sources

Every pin is verified against the manufacturer's documents.

Size: 24×24×9.5 mm case; pin positions taken from the M5Stack dimension drawing (bottom view), accuracy about 0.1 mm (approximate).

FAQ

Which M5Stack ATOM Lite pins are I2C, SPI and UART?
By default in arduino-esp32 (M5Stack-ATOM): I2C: SDA GPIO26, SCL GPIO32; SPI: MOSI GPIO33, MISO GPIO23, SCK GPIO22, SS GPIO19; UART: TX GPIO1, RX GPIO3.
Are the M5Stack ATOM Lite pins 5 V tolerant?
No. The logic is 3.3 V and the pins are not 5 V tolerant: use a divider or a level shifter for 5 V signals.
Does ADC2 on the M5Stack ATOM Lite work with Wi-Fi on?
No. ADC2 pins (GPIO25, GPIO26) can't read analog while Wi-Fi is on. With Wi-Fi, use GPIO23, GPIO32, GPIO33 for the ADC.

You might also need

Similar boards

Next

Need firmware or a device built on ESP32? I'll build it to order