Microchip (Atmel) · Microcontroller

ATmega328P

The 8-bit chip at the heart of the Arduino Uno. Simple, well understood, and happy on 5 V.

Processor
AVR, 8-bit
Max clock
20 MHz
Flash
32 kB
IO pins
23
Supply
1.8–5.5 V
Package
TQFP-32
3D viewLoading 3D model…
Layers

Pinout

Seen from above. Select a pin to see what it does.

ATmega328P

TQFP-32 · 7 × 7 mm · 0.8 mm pitch · the dot marks pin 1

Specifications

Core and memory

Architecture
AVR, 8-bit
Cores
1
Max clock
20 MHz
SRAM
2 kB
On-chip flash
32 kB
EEPROM
1 kB

Power

Supply
1.8–5.5 V
For 20 MHz
4.5 V or more
Active
0.2 mA at 1.8 V, 1 MHz
Power-down
0.1 µA at 1.8 V
Temperature
−40 to +105 °C

Peripherals

IO pins
23
ADC
8 inputs, 10-bit
UART
1
SPI
2 (one through the UART)
I2C
1
PWM
6 channels
Timers
Two 8-bit, one 16-bit

Package

Package
TQFP-32
Body
7 × 7 × 1.0 mm
Across the leads
9 × 9 mm
Pin pitch
0.8 mm
Height
1.2 mm at most

What to build

Projects that play to this chip's strengths.

Beginner

Plant watering reminder

Read a soil-moisture probe on an analog input and light an LED when the pot runs dry.

ADCGPIO
Intermediate

Servo robot arm

Timers generate the pulses that position hobby servos, one PWM output per joint.

PWMTimers
Advanced

Coin-cell sensor node

Sleep in power-down, wake on a pin change, take a reading and send it over an SPI radio.

Power-downPin-change interruptSPI

Boards with this chip

A bare chip needs supporting parts around it. These boards include them.

  • Arduino Uno R3The classic board: USB, 5 V and headers that take add-on shields.
  • Arduino NanoThe same chip on a board that plugs into a breadboard.
  • Arduino Pro MiniA bare-minimum board with no USB, sold in 3.3 V and 5 V versions.
  • SparkFun RedBoardAn Uno-compatible board with a different USB chip.