THE ULTIMATE GUIDE TO THE ATTINY85 PINOUT

The ATtiny85 is a tiny powerhouse of a microcontroller. This 8-bit AVR chip from Microchip (formerly Atmel) is designed for minimalistic projects where size, power efficiency, and simplicity matter most. Whether you’re building a simple sensor node or a wearable device, the ATtiny85 delivers impressive capabilities in a compact form. In this guide, you’ll learn everything about the ATtiny85 pinout — written with the clear, structured style.

What is the ATtiny85?

Microcontroller Chip

The ATtiny85 is an 8-bit RISC microcontroller with a clock speed up to 20 MHz (depending on configuration), 8 KB flash memory, 512 bytes SRAM, 512 bytes EEPROM, and a rich set of built-in peripherals.

Form Factor

The ATtiny85 comes in DIP, SOIC, and QFN packages. The DIP-8 version is especially popular with makers due to its breadboard-friendly design.

Built for Simplicity and Efficiency

Despite its small footprint, the ATtiny85 includes:

  • 6 configurable GPIO pins
  • Up to 3 ADC channels (10-bit resolution)
  • 2 timers (1x 8-bit, 1x 16-bit)
  • PWM output
  • I²C (via USI)
  • SPI (via USI)
  • Internal temperature sensor
  • Sleep modes for ultra-low power
  • Internal clock (1 MHz, 8 MHz, and 16 MHz)

ATtiny85 Pinout Overview (DIP-8)

PinNameFunctions
1PB5RESET, ADC0, dW (debugWire), Digital I/O
2PB3ADC3, CLKI, Digital I/O
3PB4ADC2, Digital I/O
4GNDGround
5PB0MOSI, PWM (OC0A), Digital I/O
6PB1MISO, PWM (OC0B), ADC1, Digital I/O
7PB2SCK, ADC1, INT0, Digital I/O
8VccPower Supply (2.7V – 5.5V)

ADC – Analog to Digital Converter

The ATtiny85 features three 10-bit ADC channels: PB2 (ADC1), PB3 (ADC3), and PB4 (ADC2). These are ideal for reading analog sensors like light, temperature, or voltage dividers.

Applications:

  • Read sensor values
  • Measure voltage
  • Analog input for user controls (e.g., potentiometers)

PWM – Pulse Width Modulation

PWM outputs are available on PB0 (OC0A) and PB1 (OC0B). Use PWM to control devices like LED’s and motors with variable power levels.

Applications:

  • LED dimming
  • Servo control
  • Soft motor starts

USI – Universal Serial Interface

The ATtiny85 does not have dedicated I2C or SPI hardware. Instead, it uses a flexible USI (Universal Serial Interface) module.

I²C:

  • SDA – PB0
  • SCL – PB2

SPI:

  • MOSI – PB0
  • MISO – PB1
  • SCK – PB2

Digital I/O

All pins (except GND and Vcc) can function as digital inputs or outputs. Internal pull-up resistors are available and should be enabled as needed for switches or sensors.

Interrupt Support: PB2 supports an external interrupt via INT0 — perfect for responding to button presses or sensor triggers.

RESET & debugWire

Pin 1 (PB5) is the RESET pin by default. It can be repurposed as a digital I/O if reset is disabled via fuse settings — but flashing code afterward will require a high-voltage programmer.


debugWire: debugWire allows single-wire debugging using the RESET pin with compatible tools like Atmel-ICE.

Power and Clock

  • Operating Voltage: 2.7V – 5.5V
  • Internal Oscillators: 1 MHz, 8 MHz (calibrated), 16 MHz (optional with fuse)
  • External Clock: Supported via PB3 (CLKO)

Power Efficiency: The ATtiny85 offers multiple sleep modes, making it perfect for battery-powered applications such as sensors or wearables.

How to Program the ATtiny85

Common Methods:

  • USBasp programmer + AVRDude
  • Arduino as ISP
  • Digispark USB bootloader (6 pins only usable)

Programming Pins (ISP):

FunctionPinDescription
MISOPB1Microcontroller to programmer
MOSIPB0Programmer to microcontroller
SCKPB2Clock signal
RESETPB5Controls flash programming mode

Steps:

  1. Connect your programmer to the correct pins
  2. Use Arduino IDE, PlatformIO, or AVRDude
  3. Set fuses correctly (clock speed, RESET behavior)
  4. Upload your code

Best Practices and Common Mistakes

✅ Use pull-up resistors on input pins like buttons
✅ Don’t use ADC pins as outputs while reading analog values
✅ Avoid disabling RESET unless absolutely necessary
✅ Be aware of pin sharing (ADC, PWM, SPI overlap)
✅ Set fuses carefully to avoid bricking the chip
✅ Ensure clean, stable power — the ATtiny85 is sensitive to voltage noise

Conclusion: Small but Mighty

The ATtiny85 is the Swiss Army knife of microcontrollers. It fits in your pocket but punches far above its weight. Understanding its pinout unlocks a wide range of powerful applications — from artistic LED installations to energy-efficient smart sensors. Check out my HALLOWEEN – JACK O’ LANTERN project with an ATtiny85!

Happy Building!

Download the ATTINY85 pinout here in high resolution – for free*!

Free to use under the MIT license — attribution is required.

Scroll to Top