1. Electronics Tools
  2. Interactive Pinouts: Arduino, ESP32, STM32, Raspberry Pi

Interactive Pinouts: Arduino, ESP32, STM32, Raspberry Pi

Pick a board, then hover or tap any pin to see everything it can do — PWM, analog input, I²C, SPI, UART, touch — which pins to avoid, and a line of code to start.

MCUGPIO21SDAPWM
Show

Hover or tap a pin

16MHzLTXRXONATMEGA328PUNOR3 · 5 VDIGITAL (PWM~)POWERANALOG INSCLSDAAREFGND1312~11~10~987~6~54~32TX→1RX←0NCIOREFRESET3.3V5VGNDGNDVinA0A1A2A3A4A5

Coloured dots show each pin's functions. Click a pin to keep it selected and get the link.

Hover, tap or tab to a pin to see what it can do.

Logic level
5 V
Current per pin
20 mA (40 max)
ADC resolution
10 bit · 0–1023
PWM pins
6

Pins 0 and 1 are the USB serial port: leave them free while uploading. A0–A5 also work as digital pins 14–19.

All pins

Good to know

5 V vs 3.3 V

The Uno speaks 5 V, the ESP32 3.3 V and its pins are not 5 V tolerant. Between the two, use a level shifter.

Pins are not power supplies

Keep each pin under 20 mA (Uno) or 12 mA (ESP32). Motors, relays and LED strips go through a transistor or driver.

Watch the strapping pins

ESP32 GPIO 0, 2, 5, 12 and 15 decide how it boots. If uploads fail, disconnect what's on them first.

Analog with Wi-Fi

On the ESP32, only ADC1 (GPIO 32–39) can be read while Wi-Fi is running. Plan analog sensors on those pins.

Reading a pinout

Each pin has a number (what you write in code) and several possible jobs: digital input/output, PWM for dimming and motors, an analog input, or a line of a bus like I²C (SDA/SCL), SPI (MOSI/MISO/SCK) or serial (TX/RX). Only one job at a time — and some pins have side effects at boot, which is why they're marked here.

How to pick the right pins

How to read a pinout

Most pins do several jobs. On the Arduino Uno, the pins marked ~ (3, 5, 6, 9, 10, 11) give PWM, A0 to A5 are analog inputs, I2C is on A4 (SDA) and A5 (SCL), SPI on 10 to 13, and 0/1 are the serial port shared with USB.

The ESP32 can route most functions to almost any GPIO, but not every pin is free. GPIO 6 to 11 are wired to the flash memory, GPIO 34 to 39 are input-only with no pull-up, and GPIO 0, 2, 5, 12 and 15 are strapping pins read at boot, so a circuit that pulls them the wrong way stops the board from starting.

The two boards also differ electrically: the Uno works at 5 V with a 10-bit ADC (0 to 1023), the ESP32 at 3.3 V, its pins are not 5 V tolerant, and its ADC is 12-bit (0 to 4095). ADC2 pins cannot be read while Wi-Fi is on.

Worked example: wiring a Wi-Fi weather station on an ESP32

You want to connect a BME280 sensor (I2C), a potentiometer and a dimmable LED to an ESP32 that sends data over Wi-Fi.

  1. Sensor on the default I2C pinsWire.begin(21, 22); // SDA, SCL
  2. Potentiometer on an ADC1 pin (works with Wi-Fi)int value = analogRead(34); // 0–4095
  3. LED on a free PWM-capable GPIOledcAttach(27, 5000, 8); ledcWrite(27, 128);

GPIO 21/22 for I2C, GPIO 34 for the potentiometer (input-only is fine for reading), GPIO 27 for the LED, and no strapping or flash pins used, so the board always boots.

Common mistakes

  • Reading an ADC2 pin with Wi-Fi on

    On the ESP32, analogRead() on GPIO 0, 2, 4, 12 to 15 and 25 to 27 fails while Wi-Fi is running. Use ADC1 pins (GPIO 32 to 39) for analog inputs.

  • Driving an output from GPIO 34 to 39

    These pins are input-only and have no internal pull-up or pull-down. A button on them needs an external resistor.

  • Connecting 5 V signals to an ESP32

    ESP32 pins take 3.3 V at most. A 5 V sensor output or an Arduino pin needs a level shifter or a voltage divider.

  • Using D0 and D1 on the Uno

    They are the serial port shared with USB: anything connected there can block uploads and garble the Serial Monitor. Keep them free unless you need hardware serial.

Pinout FAQ

Pins 3, 5, 6, 9, 10 and 11, marked with ~ on the board. analogWrite(pin, 0…255) sets the duty cycle.

On the Uno, SDA is A4 and SCL is A5 (also repeated next to AREF). On the ESP32 the defaults are SDA GPIO 21 and SCL GPIO 22, but Wire.begin(sda, scl) can use other pins.

GPIO 6 to 11 (flash memory), and with care the strapping pins 0, 2, 5, 12 and 15. GPIO 34 to 39 are input-only. GPIO 1 and 3 are the USB serial port.

The Uno: 20 mA recommended per pin, 40 mA absolute maximum. The ESP32: about 20 mA recommended per pin, 40 mA maximum. For motors, relays or LED strips use a transistor or MOSFET.

A strapping pin (often GPIO 12 or 0) is being pulled the wrong way at power-on. Move that connection to a free GPIO, or make sure the circuit leaves the pin at its default level during boot.

Free shipping

On orders over 5000DA

Easy returns

7-day hassle-free returns

Fast checkout

payments on delivery and fast shipping

24/7 support

We're here to help

Dzduino Online Store

Eempowering engineers, students, makers, researchers, and businesses with high-quality and innovative technical solutions.

  • Sales: store@dzduino.com
  • Store: +213 550 88 88 27
  • Sales: +213 550 88 88 29
  • Support: +213 550 88 88 37
  • 043 Cite Remila (Route du Port), Tigditt - Mostaganem

Shop

  • All Categories
  • Électronique & Développement
  • Tools & Equipements & DIY
  • Téléphonie & Communication
  • Fabrication & Prototyping
  • Computers & Networks
  • Power & Energy & Solar
  • Video Surveillance & Security systems
  • Educational, Scientific and Laboratory

Support

  • Track order
  • Orders
  • Account
  • Shipping & returns
  • Shipping calculator

Company

  • About
  • Contact us
  • Site map
  • Privacy
  • Terms

Stay in the loop

New stock, maker deals, and electronics tips — straight to your inbox.

© 2026 Dzduino Electronics, All Rights Reserved

TermsPrivacyShipping & returnsSite map
CIBBARIDI MobFawriPayCash
Free express shipping on orders over 10,000DA
SpecialSaleBlogPrint & CutLabContact usToolsNewLabNew

Related products

Boards, modules, and kits that pair with this tool.

Arduino UNO SMD (Arduino Compatible)
DZD0000520

Arduino UNO SMD (Arduino Compatible)

DZD 1,500.00Out of StockOut of Stock
Arduino DUE ( Compatible) EN
DZD0000530

Arduino DUE ( Compatible) EN

DZD 6,000.00Out of StockOut of Stock
Iteaduino Tiny (Arduino Compatible)
DZD0000540

Iteaduino Tiny (Arduino Compatible)

DZD 900.00Out of StockOut of Stock
Iteaduino Nano (Arduino Compatible)
DZD0000550

Iteaduino Nano (Arduino Compatible)

DZD 2,500.00Out of StockOut of Stock
Iteaduino
DZD0000570

Iteaduino

DZD 1,500.00Out of StockOut of Stock
RBOARD (Relay Board)
DZD0000661

RBOARD (Relay Board)

DZD 4,900.00In StockIn Stock
Screw shield V1.0 for Arduino
DZD00007310

Screw shield V1.0 for Arduino

DZD 1,200.00In StockIn Stock
Joystick shield (Arduino Compatible)
DZD0000740

Joystick shield (Arduino Compatible)

DZD 1,000.00Out of StockOut of Stock
View all