How it works
The ATtiny85 has 8 legs: VCC, GND and six I/O pins (P0–P5; P5 is also RESET). It runs at 16.5 MHz with 8 KB of program memory. P0, P1 and P4 can do PWM (analogWrite); P2, P3, P4 and P5 can read voltages, as analog channels 1, 3, 2 and 0. The Digispark board adds a USB plug and a 5 V regulator, and a built-in LED on P1.
What it is made of
- Chip: Silicon die in a black epoxy package SiCHO
- Legs and pads: Copper alloy plated with tin CuSn
- Board: Glass-fibre and epoxy with copper tracks CuSi
Where the materials come from: Silicon from quartz sand; copper from chalcopyrite; tin from cassiterite.
The chemistry
Its program is kept in flash memory: electrons trapped on an insulated "floating gate" stay there for years without power.
Biology connection
Like a single neuron, a tiny chip can only do a little on its own, but connected to sensors and outputs it can make simple decisions, the way a reflex arc does without the brain. Reflex arc →
Safety and the environment
It has no USB serial: debug with an LED. Keep P5 (reset) free in simple projects.
Did you know? An ATtiny85 is so small and cheap that it is used in toys, greeting cards and blinking jewellery.
Microcontroller simulator Elements inside: SiCHOCuSn
Try it in the simulator
In Free build, choose ATtiny85 (Digispark) under Board. The starter code blinks the built-in LED on P1; add an LED and 220 Ω on P0, or read a knob on P2 with analogRead(1).
Questions students ask
What does an ATtiny85 do?
A tiny 8-pin microcontroller: a whole computer in a chip smaller than a fingernail, here on a USB board.
How does an ATtiny85 work?
The ATtiny85 has 8 legs: VCC, GND and six I/O pins (P0–P5; P5 is also RESET). It runs at 16.5 MHz with 8 KB of program memory. P0, P1 and P4 can do PWM (analogWrite); P2, P3, P4 and P5 can read voltages, as analog channels 1, 3, 2 and 0. The Digispark board adds a USB plug and a 5 V regulator, and a built-in LED on P1.
What is an ATtiny85 made of?
Chip: Silicon die in a black epoxy package. Legs and pads: Copper alloy plated with tin. Board: Glass-fibre and epoxy with copper tracks.
Is an ATtiny85 safe? How should it be recycled?
It has no USB serial: debug with an LED. Keep P5 (reset) free in simple projects.
More boards and wiring
Connected tools
The same idea from another angle, across the site.