ATTiny powered Arduino Projects

ATTiny powered Arduino Projects

Arduino is a great platform. No question. But what if I told you that you could take your entire board and compact it into tiny package. And I mean really small. The chip in the picture is an ATTiny84, and that is the big version. So if your project only needs a few pins and isn’t very complicated, this little chip and do it in a fraction of the space! Not only that, but each of these ATTiny chips are only $2 a piece.ATTiny powered Arduino Projects

Just another thing I made at TechShop.

http://www.techshop.ws

Step 1: Materials

You will need:

An arduino uno

One of the following. All of these are 8bit microcontrollers as apposed to the 32bit chips in the standard Arduino platform. Whatever fits your needs. (I’m using an ATTiny84)

ATTiny44 – 4kb flash storage & 14pins
ATTiny45 – 4kb flash storage & 8pins
ATTiny84 – 8kb flash storage & 14pins
ATTiny85 – 8kb flash storage & 8pins

10microFarad capacitor

For the display, see this instructable
http://www.instructables.com/id/Arduino-powered-7-seg-LED-display-using-Shift-Regi/

Step 2: Setting up the ATTiny programmer

There are a couple of important steps to getting the Arduino to talk to the ATTiny. Essentially, we need to turn the arduino into an ISP or In System Programmer.

Make sure that you are using at least Arduino 1.0 IDE. This will not work on older versions.

Next download this file from github:   https://github.com/damellis/attiny/tree/Arduino1

Now locate your arduino sketch folder. If it does not have the folder “hardware” there, create it now.

Put the attiny folder in that directory. It should look like Documents->Arduino->hardware->attiny

Reset the arduino program. Now when you open Tools->Board it should have the ATTiny boards as well.

ATTiny powered Arduino Projects Schematic

Step 3: The Circuit

Now we need to connect the ATTiny to the arduino.

On the Uno the connections are like this

Uno                           ATTiny
Pin13          ->           SCK
Pin12          ->           MISO
Pin11          ->           MOSI
Pin10          ->           RESET

And a 10microFarad cap across the Reset on the Uno to prevent it from just resting the bootloader immediately.

Step 4: Getting Programs Onto the ATTiny

Now to program! With the ATTiny connected to the arduino for programming, set the board to ATTiny 84 (1Mhz).

Set the programmer to Arduino as ISP.

Upload the program you want onto the ATTiny. In this example, I’m using the Shift Register program from before. Located at the bottom.

You may get this warning. If that happens, that’s OK. It worked.
ATtiny84
avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATtiny84

If it doesn’t work, try opening the ArduinoISP under example and running that on the Uno by itself. No wires or cap connected. Then retry programing the ATTiny board using

Read more: ATTiny powered Arduino Projects

Leave a Comment

Your email address will not be published. Required fields are marked *