How to program an Attiny85 or Attiny84: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[File: | [[File:IMG_1005_mod_small.png | right ]] | ||
===Prerequisite=== | ===Prerequisite=== | ||
* Arduino IDE must be installed | * Arduino IDE must be installed | ||
* You have a programmer board | * You have a programmer board - NanoProg. [[FTDI_Programmer]] | ||
===Tiny Core Library=== | ===Tiny Core Library=== |
Revision as of 09:27, 19 March 2017

Prerequisite
- Arduino IDE must be installed
- You have a programmer board - NanoProg. FTDI_Programmer
Tiny Core Library
We recommend the tiny core library from this link below.
http://code.google.com/p/arduino-tiny/
Download it and install it in the sketchbook/hardware folder. Follow instructions in the README file for this.
Connect the hardware
Insert the MCU (Atiny85 or Attiny84) on the programmer board. Beware of the direction when the inserting the MCU. The small dot must be pointed toward the left of the board.
Connect the Programmer board to the FTDI adaptor. Both grounds must be connected together.
Connect the FTDI adaptor to the computer with a USB cable.
Make sure the FTDI adaptor is set to operate on 5V.
Once all connected the Programmer board will show heartbeat with the green led.
Initial Setup
For anything below make sure Arduino as ISP is selected in Tools | Programmer menu.
Bootloader
If programming the MCU for the first time you must burn the bootloader onto it. For this first select the appropriate board in the Arduino IDE. Tools | Board | ATtiny85 @ 8Mhz. Then select Tools | Burn Bootloarder.
Upload Sketch (ATtiny)
Open your sketch file with the Arduino IDE. Make sure you select the appropriate MCU type in Tools | Board. Upload the sketch from the IDE.