Secondary Menu

Programming the TinyBoard - ATTiny85 Development Board

This instructable covers how to program the ATTiny85 based TinyBoard (from daflabs.com) using an Arduino Uno. This tutorial is covered using the Uno, but it can just as easily be used with any other Arduino.

Step 1: Make Arduino As ISP

We will be using the Arduino Uno as the programmer to upload code from the computer to the TinyBoard since the TinyBoard does not have a USB interface.

For that, you will need to :

1. From Tools > Board select "Arduino Uno"

2. From Tools> Port select the port number where your Arduino appears

3. Open File > Examples > ArduinoISP, and upload that code onto the Uno. The Uno will now function as a programmer and relay all the code coming from the computer to the TinyBoard.

Step 2: TinyBoard Core File Setup

The zip file contains the "core" files that the Arduino IDE requires to translate user code written using Arduino style methods into standard C code. The "core" files create the mapping between the pin numbers you use in the software to the actual ATTiny85 pin numbers

You will need to extract the zip file from the previous step. After extraction, copy the folder called "attiny" into :

Note : You will need to use Arduino v1.5.4 or above (BETA ONLY). The mainstream stable release does not, for some reason, support adding third party boards by adding core files in the location mentioned above.

Step 3: Make the Physical Connections

You first need to connect the Arduino Uno to the TinyBoard. The connections are shown in the image.

Arduino +5V ---> TinyBoard VCC

Arduino Ground ---> TinyBoard GND

Arduino Pin 10 ---> TinyBoard RST

Arduino Pin 11 ---> TinyBoard MOSI

Arduino Pin 12 ---> TinyBoard MISO

Arduino Pin 13 ---> TinyBoard SCK

Step 4: Arduino IDE Setup

In the Arduino IDE, under the Tools menu, you need to make the following settings for Board, Clock, Processor, Port, and Programmer, as shown in the images.

a. Select "ATTiny" as the board from the top of the "Boards"

b. Select "8 MHz (internal)" from "Clock"

c. Select "ATTiny85" from "Processor"

d. Select the USB port number where your Arduino is connected in "Port"

e. Select "Arduino as ISP" in "Programmer"

Step 5: Burn Bootloader

Next, burn the bootloader by clicking on Tools > Burn Bootloader. This does not actually burn a bootloader, but it sets some fuse bits including the clock frequency. This is important, because with an incorrect clock frequency the delays and timings for communications will be off, and some libraries (including the Adafruit Neopixel library) will not work with a clock frequency of 1MHz.

You should get a message saying "Done burning bootloader" at the bottom status bar.

Step 6: Upload Your Code

Next, write your sketch like you would for any other Arduino Board, Verify, and Upload ! You are done !

Safe and Secure Challenge

Faux-Real Contest

Epilog X Contest

Discussions

I followed the same but the ATTiny file is not being accepted by even one of the arudino versions. I tried MIT Media Labs high low tech tutorial: http://highlowtech.org/?p=1695 , the file I downloaded from there being recognised by all the arduino IDE versions but when I try to boot-load the chip with all the above mentioned settings it give me this error: