Skip to content

Chip on Its Own

You'll program a bare ATtiny using your Arduino as the programmer, and run it alone on a breadboard from a coin cell with no board around it.

About

The Arduino board is a chip plus the things that make it easy, and most of those things cost power and money. An ATtiny85 is about a dollar, has eight pins, and runs for months on a coin cell once you know how to program it without a USB port. You'll use the Uno as an in-system programmer, set the fuses for the internal oscillator, and watch the chip blink with nothing else attached. The first failure is nearly always the wiring of the six programming lines, and the second is forgetting the capacitor that stops the Uno from resetting itself.

At a glance

Per requirement
25 XP
Completion bonus
150 XP
Requirements
5
Takes
One weekend
Skill level
Intermediate (months of practice)
Cost
Cheap (under $10)
Supplies
You need some
Where
At home
Other people
On your own
Locked for now
Earn two more Common badges in Microcontrollers & Robotics to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Load ArduinoISP onto the Uno and wire the six lines to an ATtiny85 on a breadboard. Uno pins 13, 12, 11 and 10 go to the tiny's SCK, MISO, MOSI and RESET (pins 7, 6, 5 and 1), plus 5 V and ground. After ArduinoISP is loaded, put a 10 uF capacitor between RESET and GND on the Uno so the IDE can't reset it while it's acting as the programmer. Take a photo of the wiring with the pin numbers labeled. Photo
  2. 2
    Burn the bootloader to set the fuses for a 1 MHz internal clock, then upload Blink. Add the ATTinyCore board package, pick ATtiny85, 1 MHz internal, and Arduino as ISP as the programmer. Burn Bootloader sets the fuses, then use Upload Using Programmer. Never pick an external clock option unless a crystal is wired, because that choice bricks the chip until you give it one. Film the LED blinking on one of the tiny's pins. Video
  3. 3
    Pull the programmer away and run the chip from a coin cell. A CR2032 holder, the chip, the LED and a resistor, and nothing else. Take a photo of it blinking with no Arduino in the frame. Photo
  4. 4
    Measure the current with the chip sleeping between blinks. Use the watchdog to sleep for 8 seconds between flashes. With the meter on the uA range you should see single-digit microamps asleep. Work out how long the coin cell's 220 mAh will last at that average. Take a photo of the reading and your arithmetic. Photo
  5. 5
    Give the chip a job that uses an input. A touch pad made from a bit of foil, a tilt switch, a thermistor or a light sensor, driving an LED or a buzzer. Fit it in a small box or a key fob. Take a photo of the finished thing working. Photo