Through-hole (DIP) microcontrollers for breadboards

The DIP microcontrollers still worth using, from 8-pin PICs and ATtinys to 28-pin AVRs and a 32-bit PIC32, for breadboards, stripboard and boards you solder with an iron.

12 parts, 4 recommended. Updated .

What to look for

  • A DIP package that drops straight into a breadboard and solders with an iron, ideally with a surface-mount version of the same chip for the finished board
  • Runs from 5 V (or 3.3 V) with nothing but a decoupling capacitor. An internal oscillator saves the crystal, and a wide supply range saves the regulator
  • The programmer it needs. UPDI needs only a USB-serial adapter; classic AVRs use an ISP programmer (or an Arduino as one); PICs need a PICkit or MPLAB Snap
  • Still in production, at a sensible price. Several famous DIP parts are now marked not recommended for new designs, or cost several times their modern replacements
  • The peripherals for the job. A UART for debug output is worth having; check the ADC, PWM, I2C and SPI too
  • The tools you will use. Arduino cores exist for the AVRs (ATTinyCore, DxCore, MiniCore); PICs use MPLAB X with the XC8 compiler and MPLAB Code Configurator

Alternatives

PIC12F675

Microchip (PIC12F629 has no ADC)

, , DFN-8

The classic 8-pin PIC, still in production and still a fine little chip for simple timing, sensing and switching at 5 V. Use it for existing code and designs; for a new one the PIC16F18313 has the same pins, more of everything and costs less. Keep the oscillator calibration value (see the pitfalls).

  • 8-bit mid-range PIC
  • 20 MHz at 4.5 V or more (4 MHz from 2.0 V)
  • internal 4 MHz oscillator (±1% at 3.5 V and 25 °C, ±5% over the full range)
  • 1K words flash
  • 64 B RAM
  • 128 B EEPROM
  • 2.0–5.5 V
  • 4-channel 10-bit ADC
  • comparator
  • 2 timers
  • 6 I/O
Price not yet checked
Datasheet Microchip DS41190G, Mar 2010

PIC12F1840

Microchip

, , DFN-8

The 8-pin PIC with the most program memory, twice the PIC16F18313's flash, with a UART, I2C and SPI. Choose it when the code outgrows 2K words.

  • 8-bit enhanced mid-range PIC
  • 32 MHz
  • 7 KB flash (4K words)
  • 256 B RAM
  • 256 B EEPROM
  • 2.3–5.5 V
  • 4-channel 10-bit ADC
  • comparator
  • DAC
  • ECCP
  • EUSART
  • I2C/SPI
  • capacitive touch
  • 6 I/O
Price not yet checked
Datasheet Microchip DS40001441F, Apr 2015

ATtiny84A

Microchip (formerly Atmel; ATtiny24A and ATtiny44A have less memory)

, and others

The ATtiny85 with twice the I/O and a 16-bit timer, in 14 pins. Same tools and programmer.

  • 8-bit AVR
  • 20 MHz at 4.5 V
  • internal 8 MHz oscillator (±10% from the factory)
  • 8 KB flash
  • 512 B SRAM
  • 512 B EEPROM
  • 1.8–5.5 V
  • 8-channel 10-bit ADC
  • comparator
  • 8-bit and 16-bit timers
  • USI (I2C/SPI)
  • 12 I/O
Price not yet checked
Datasheet Microchip DS40002269A, Oct 2020

AVR128DA28 / AVR128DB28

Microchip (AVR DA and DB families)

, and others in the family

The biggest AVRs in a DIP. Twice the AVR64DD28's memory and an extra USART, for larger programs, displays or protocol stacks, with the same UPDI programming and DxCore support.

  • 8-bit AVR
  • 24 MHz
  • 128 KB flash
  • 16 KB SRAM
  • 512 B EEPROM
  • 1.8–5.5 V
  • 12-bit ADC
  • DAC
  • 3 USARTs
  • UPDI programming
  • DA adds a touch controller; DB adds 2 op-amps and multi-voltage I/O
Price not yet checked
Datasheet Microchip DS40002183E, Sep 2024 (AVR128DB28 DS40002247B, Jan 2023)

ATmega328P

Microchip (formerly Atmel)

, ,

The Arduino Uno chip, and the classic "Arduino on a breadboard" with a 16 MHz crystal and the Uno bootloader. Still made, but Microchip now marks it not recommended for new designs; use it for Uno compatibility and existing projects, and the AVR64DD28 for anything new.

  • 8-bit AVR
  • 20 MHz at 4.5 V
  • internal 8 MHz oscillator (±10%)
  • 32 KB flash
  • 2 KB SRAM
  • 1 KB EEPROM
  • 1.8–5.5 V
  • 6-channel 10-bit ADC in the DIP
  • USART
  • I2C
  • SPI
  • 3 timers
  • 6 PWM
  • 23 I/O
Price not yet checked
Datasheet Microchip DS40002061B, Aug 2020 (status NRND, Dec 2026)

MSP430G2553

Texas Instruments (MSP430G2553IN20 in DIP)

, , ,

The low-power choice in a DIP. Microamp sleep currents for battery and coin-cell projects, and the MSP430 LaunchPad board programs it in place and then lifts out into your own circuit. 3.3 V only.

  • 16-bit MSP430
  • 16 MHz at 3.3 V or more (12 MHz at 2.7 V)
  • calibrated internal oscillator (±3% at 3 V, 0–85 °C)
  • 16 KB flash
  • 512 B RAM
  • 1.8–3.6 V
  • 8-channel 10-bit ADC
  • comparator
  • 2 timers
  • UART
  • I2C and SPI
  • 16 I/O
  • Spy-Bi-Wire programming
Price not yet checked
Datasheet TI SLAS735J, May 2013

PIC32MX170F256B

Microchip (PIC32MX270F256B adds USB)

, , SSOP-28,

A 32-bit MCU in a breadboard-friendly DIP, with 64 KB of RAM, which no 8-bit DIP part comes close to. Popular for BASIC interpreters and small computers. It needs a 10 µF capacitor on its VCAP pin.

  • 32-bit MIPS M4K
  • 40 MHz (50 MHz for the -50I/SP order code)
  • internal 8 MHz oscillator (±0.9%)
  • 256 KB flash
  • 64 KB SRAM
  • 2.3–3.6 V with 5 V-tolerant pins
  • 10-channel 10-bit ADC
  • 3 comparators
  • 2 UARTs
  • 2 SPI
  • 2 I2C
  • DMA
  • 21 I/O
Price not yet checked
Datasheet Microchip DS60001168L, Sep 2019

Avoid for new designs

PIC16F84A

Microchip

, , SSOP-20

The PIC in countless older books and tutorials. Still made, but it needs a crystal, has no ADC or UART and costs several times a modern PIC. A PIC16F18313 or PIC12F1840 does everything it does with fewer parts around it.

  • 8-bit mid-range PIC
  • 20 MHz with an external crystal or resonator (no internal oscillator)
  • 1K words flash
  • 68 B RAM
  • 64 B EEPROM
  • 4.0–5.5 V (4.5 V for the 20 MHz grade)
  • no ADC
  • comparator
  • PWM or UART
  • 13 I/O
Price not yet checked
Datasheet Microchip DS35007C, 2011

Which one to start with

  • A small 8-pin job at 5 V (LEDs, a sensor, a timer, replacing logic): the PIC16F18313 with MPLAB, or the ATtiny85 with Arduino.
  • An Arduino-style project on a breadboard: the AVR64DD28, programmed over UPDI, or the ATmega328P when you need Uno compatibility.
  • USB on a breadboard: the PIC16F1455.
  • Battery or coin-cell power: the MSP430G2553.
  • Lots of RAM, or 32 bits: the PIC32MX170F256B.
  • For the finished board, most of these come in SOIC too. If the design does not need a DIP, also look at Microcontrollers for small projects.

Typical circuits

The minimum around a DIP microcontroller

  • Decoupling: 100 nF across each VDD/GND pair, at the pins, plus 10 µF on the supply rail. On a breadboard keep the capacitor’s legs short and right at the chip.
  • Reset: a 10 kΩ pull-up on MCLR (PIC) or RESET (AVR) unless the pin is configured as I/O. The newer PICs and AVRs can run with it as an input, but leaving it as reset keeps programming simple.
  • Clock: the internal oscillator, for every part here except the PIC16F84A. Use a crystal only for accurate timing or a UART at high baud rates on parts with a ±10% oscillator.
  • A programming header in the chip’s standard order, so it can be reprogrammed in place: 6-pin ICSP for PICs (MCLR, VDD, GND, PGD, PGC), 6-pin ISP for classic AVRs, or 3 pins (UPDI, VDD, GND) for the AVR DA/DB/DD.

Programmers

  • PIC: a PICkit 5 or MPLAB Snap with MPLAB X. Both also debug the enhanced PICs here.
  • Classic AVR (ATtiny85, ATtiny84A, ATmega328P): any USBasp-type ISP programmer, or an Arduino running the ArduinoISP sketch.
  • AVR DA/DB/DD: a USB-serial adapter and a resistor, using SerialUPDI from the Arduino IDE.
  • MSP430: the MSP430 LaunchPad’s built-in programmer, over Spy-Bi-Wire.

Pitfalls

  • The PIC12F675’s oscillator calibration word. Its factory calibration value is stored as an instruction in the last program memory location (3FFh). A bulk erase loses it unless the programmer saves and restores it. Read and note the value before you first erase a new chip. The PIC12F683 and newer PICs keep the calibration in hardware.
  • GP3/MCLR is an input only on the 8-pin PICs. Plan the six pins as five I/O and one input.
  • Classic AVR fuses. The ATtiny85 and ATmega328P ship running at 1 MHz (the CKDIV8 fuse), so delays run eight times slow until the fuses are set. Setting RSTDISBL to use the reset pin as I/O locks out ISP programming; only a high-voltage programmer recovers the chip.
  • A ±10% oscillator is too loose for a reliable UART at high baud rates. The ATtiny and ATmega328P need a crystal, or a calibrated OSCCAL, for dependable serial; the AVR DA/DB/DD and the newer PICs are accurate enough on their own.
  • Speed depends on supply voltage. Most 8-bit parts reach full speed only at 4.5 V or more, and some 3.3 V MSP430 and PIC limits are lower too. Check the speed graph before running 20 MHz at 3 V.
  • The PIC32MX’s VCAP pin needs its 10 µF capacitor (not connected to VDD), or the core does not start.
  • Old datasheets and tutorials. Much of the material online is for the PIC16F84A and other old parts. The newer parts have different register names and better peripherals; work from the current datasheet.

About this guide

A short list of parts worth starting with for this job, chosen on engineering merit, with the reasons, typical circuit notes and the usual pitfalls. Prices are shown at a small quantity and at volume, with the source and the date they were checked.

Disclaimer

  • Guidance only. Specifications are summarised in my own words from the manufacturer's datasheet revision shown; always design from the current datasheet. Parts marked "not yet checked" have not been verified against it.
  • Prices are a guide, not a quote, and change often. Check with your supplier before you order.
  • Part and manufacturer names are used only to identify parts. This guide is independent and not affiliated with, endorsed by or sponsored by any manufacturer or supplier.
  • Provided as is, without warranty. You are responsible for the designs you build.