How-to · Intermediate · 3 min read
ATmega328P Standalone
Build an Arduino on a Breadboard
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
The ATmega328P is the chip on an Arduino Uno. With a 16 MHz crystal, two 22 pF capacitors, a 10 kΩ reset pull-up and decoupling capacitors, it runs Arduino sketches on a breadboard or your own PCB for a fraction of the cost. Burn the bootloader with another Arduino acting as a programmer, then upload through a USB-to-serial adapter, or use the internal 8 MHz clock and skip the crystal.
Key specs at a glance
- Chip
- ATmega328P, 32 KB flash, 2 KB RAM, 1 KB EEPROM
- Clock
- 16 MHz crystal + 2 x 22 pF, or internal 8 MHz oscillator
- Supply
- 1.8 to 5.5 V (16 MHz needs about 4.5 V or more)
- Reset
- 10 kΩ pull-up to VCC; 100 nF from DTR for auto-reset
- Decoupling
- 100 nF on each VCC/AVCC pin
- Programming
- ISP (MOSI, MISO, SCK, RESET) or serial via bootloader
The minimum circuit
- 1Pins 7 and 20 (VCC, AVCC) to 5 V; pins 8 and 22 to GND. Put a 100 nF decoupling capacitor next to each VCC pin.
- 2Pin 21 (AREF): 100 nF to GND, or leave unconnected if you use the default reference.
- 316 MHz crystal across pins 9 and 10, each with 22 pF to GND.
- 4Pin 1 (RESET) to 5 V through 10 kΩ, plus a button to GND if you want manual reset.
- 5An LED with resistor on pin 19 (D13) for the blink test.
Arduino pin numbers differ from chip pin numbers: D0 to D7 are on port D (chip pins 2 to 6 and 11 to 13), A0 to A5 on pins 23 to 28.
Burning the bootloader
New chips come blank or set to the internal 1 MHz clock.
- 1Upload the ArduinoISP example to an Uno.
- 2Wire Uno D10 to chip RESET, D11 to MOSI (pin 17), D12 to MISO (18) and D13 to SCK (19), plus power and ground. Add a 10 µF capacitor between the Uno's RESET and GND so it does not reset itself.
- 3In the IDE choose board Arduino Uno, programmer Arduino as ISP, then Burn Bootloader. This sets the fuses for the external crystal.
- 4Upload sketches through a USB-to-TTL adapter: TX to RX (pin 2), RX to TX (pin 3), and DTR to RESET through 100 nF so the IDE can auto-reset the chip.
You can also skip the bootloader and upload with Upload Using Programmer.
Low-power and 3.3 V builds
For battery projects, use the MiniCore board package to run from the internal 8 MHz (or 1 MHz) clock, which removes the crystal and lets the chip run at 3.3 V or less. Disable the brown-out detector if you need to run to low voltages, use sleep modes, and you can reach microamp sleep currents, far below a full Uno board with its regulator and USB chip.
Try it: Battery life calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Forgetting the AVCC and second GND pins.
- Missing decoupling capacitors, causing random resets.
- Running at 16 MHz from 3.3 V.
- Not burning the bootloader or fuses on a blank chip.
- Confusing chip pin numbers with Arduino pin numbers.
Frequently asked questions
Do I need a crystal?
No. With MiniCore you can use the internal 8 MHz oscillator, though timing is less precise.
Why will my new ATmega328P not take a sketch?
It probably has no bootloader. Burn it with Arduino as ISP first.
Can I program it without USB on the chip?
Yes, with a USB-to-serial adapter or an ISP programmer such as USBasp.
What is the difference between ATmega328P and ATmega328?
The P is the picoPower version with lower power; both run the same code, though the IDE expects the P signature.
Is a standalone ATmega cheaper than a Nano?
For one board, not by much. For many units on your own PCB it saves cost and space.
Parts for this guide
Calculators
Terms in this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
