How to program an Attiny85 or Attiny84: Difference between revisions

From lechacal
Jump to navigation Jump to search
Line 15: Line 15:
===Connect the hardware===
===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.
====For Circuit with ISP port====


Connect the Programmer board to the FTDI adaptor. Both grounds must be connected together.
Connect the NanoProg to the USB port of the computer.
Connect the 6 pin ribbon cable to the ISP port of the board to program. Make sure grounds are connected together.


Connect the FTDI adaptor to the computer with a USB cable.
====For Attiny85 DIP8====


Make sure the FTDI adaptor is set to operate on 5V.
Insert the Attiny85 MCU on the DIP8 socket of the Nanoporg. Beware of the direction when the inserting the MCU. The small dot must be pointed toward the inside of the board.
 
Once all connected the Programmer board will show heartbeat with the green led.


===Initial Setup===
===Initial Setup===

Revision as of 09:34, 19 March 2017

Prerequisite

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

For Circuit with ISP port

Connect the NanoProg to the USB port of the computer. Connect the 6 pin ribbon cable to the ISP port of the board to program. Make sure grounds are connected together.

For Attiny85 DIP8

Insert the Attiny85 MCU on the DIP8 socket of the Nanoporg. Beware of the direction when the inserting the MCU. The small dot must be pointed toward the inside of the board.

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.