Introduction: How to Make a Cheap Attiny Arduino Board

Well most of time i get troubled when i need Arduino in some projects where i need few I/O pins
Well thanks to Arduino-Tiny platform
Arduino program can be burned into the Avr-tiny Series like Attiny 85/45

Arduino-Tiny is an open source set of ATtiny "cores" for the Arduino platform.

It provides a core that enables Arduino users to work with the ATtiny84 (84/44/24), ATtiny85 (85/45/25), and ATtiny2313 (4313) processors.

=============================================================

Advantages of Attiny series
Cheap cost hardly 1$
They can be used as stand alone in any circuit
Disadvantages of Attiny

Few I/O pins as compared to megaSeries

Less memory usually Attiny 25/45/85 have 2kb 4kb and 8kb respectively

=============================================================

But if u ask me Attiny are really useful for small projects
Even i think it is too cheap for a dummy to experiment on it.
So i made this small project that anyone can make their cheapest tiny arduino at home

Also like my page for support
https://www.facebook.com/makewithRex

Step 1: Parts

Things that you will need

  1. Veroboard -0.3$
  2. 8 pin IC Socket -0.10$
  3. Wires single core 22 gauge- 0.10$
  4. Attiny 85- 1.35$
  5. Male header-0.16$
  6. Female header-0.16$

So Total cost is 2.17$

Step 2: Circuit Diagram

Almost all chips are programed By Using 6 pins

  • MISO(Master In Slave Out)
  • MOSI(Master OUt Slave In)
  • RESET
  • SCK(Slave Clock)
  • Vcc
  • Gnd

==========================================================

Connecting With Arduino

Pin13 will be connected to SCK

Pin12 will be connected to MISO

Pin11 will be connected to MOSI

Pin10 will be connected to RESET

Next part will Cover how to use the arduino as ISP to Program the attiny85

Step 3: Using Arduino As ISP

Setting Up the Firmware

You need to download this file for programing the attiny

http://code.google.com/p/arduino-tiny/

after you install it

  • Open Arduino.exe
  • File > Examples >ArduinoISP
  • Upload Sketch to your Board
  • On the Arduino Uno, you'll need to connect a 10 uF capacitor between reset and ground (after uploading the ArduinoISP sketch)
  • Connect The Arduino Pins To the Arduino Tiny Board
  • Goto Tools >Boards>Attiny 85 8 MHz
  • Goto Tools>Programmer>Arduino as ISP
  • Burn Bootloader

CONGO attiny is Ready To be Programmed By arduino

Lets Us see a simple Program "Blink " in action

Again going to

File > Examples >Blink

Change The pin no. from 13 to any one of the pin out of Attiny85

0,1,2,3,4

Upload it

==================================================

Step 4: Blinky in Action

The Blink Program In action

Enjoy Your Board

It can be Also Run on A external Power source You just need a regulated Power supply of 5

You can also Use a Serial Programmer to Burn the Bootloader and sketche

If You have any queries Feel free to ask me

https://www.facebook.com/prajjwal.nag

Comments

author
KunalK25 made it! (author)2016-04-25

hey buddy nice tutorial. Can you please tell me if we can use this ATtiny for serial communication via HC05 module. I mean if we can use its two pins as Rx Tx pins.

Thanks.

author
The Answer Guy made it! (author)2015-11-21

Hey you can get cheap arduino nano for about 4$ on eBay and aliexpress. Just two times the cost of this but infinitely more useful.

author
DmitryP2 made it! (author)2015-11-16

What about stm32f0 ? it,s 2x cheaper, 4x faster, has dma transfer ?

author
SalmanF4 made it! (author)2015-10-14

why 10uf capacitor is used?

Where the capacitor is connected?

author
AT made it! (author)2015-04-16

Nice little solution. I spent a little more money and dedicated a proto shield for pushing code to my ATTiny85. I am going to get some 84s and set up the proto shield to accept either chip.

author
geekrex made it! (author)geekrex2015-07-04

thats cool would like to see it

author
AT made it! (author)AT2015-08-26

I will take a picture of that the next time I get that out. :)

author
AmitM12 made it! (author)2015-07-13

Awsome Man ..

author
geekrex made it! (author)geekrex2015-07-13

thank u

author
andsen942 made it! (author)2015-04-25

What if I used a atmega328 with a 28pin socket instead? How would I have to do this differently?

author
geekrex made it! (author)geekrex2015-07-04

andsen u have to modify the board u will need a crystal oscillator for atmega328

author
KingsleyF made it! (author)2015-04-19

Don't seems to work in Arduino IDE 1.6.3. Any solution?

author
Rouxlet made it! (author)Rouxlet2015-04-29

>> https://github.com/damellis/attiny/archive/ide-1.6.x.zip

Tested on Arduino IDE 1.6.1 + ATtiny85, works !!

author
geekrex made it! (author)geekrex2015-04-19

Use lower version ,the core is not updated for 1.6

author
martin.pfitzner.942 made it! (author)2015-04-15

Im Sorry, but i still don't understand your Step 2 in the way its shown on the schreenshot. The pins of the IC seem to be connected to nothing. Is your circut ment to function like beeing on breadboard so all pins in a row are meant to be automatically connected?

author
geekrex made it! (author)geekrex2015-04-15

Ya its like we connect on breadboard plz see the schematics given in comment below .
if still unable to understand i am here :)

author
NajiK1 made it! (author)2015-04-12

can I use 100uf capacitor instead of 10uf ?

author
geekrex made it! (author)geekrex2015-04-13

No you have to use 10uf as specified by arduino

author
NajiK1 made it! (author)NajiK12015-04-14

Thanks :)

author
Hapis made it! (author)2015-04-07

I dont have arduino uno, can i use usb to ttl to program the chip?

author
JRV31 made it! (author)JRV312015-04-09

this is a good programmer for an ATtiny if you don't have an Arduino:

https://www.sparkfun.com/products/11801

Instruction for set-up and use are here:

https://learn.sparkfun.com/tutorials/tiny-avr-programmer-hookup-guide/

author
geekrex made it! (author)geekrex2015-04-07

No u need to have ICSP programmer
U can buy a usb to icsp programmer

author
dinodroppings made it! (author)2015-04-07

Brilliant work, I have added proper printer friendly PDF file more on ATTINY85

http://www.atmel.com/Images/Atmel-2586-AVR-8-bit-M...

ATTINY.pdf
author
geekrex made it! (author)geekrex2015-04-07

Thank You

author
dinodroppings made it! (author)dinodroppings2015-04-08

Hey add this PDF to your instructable, people are confused from the fritzing diagram.

author
geekrex made it! (author)geekrex2015-04-08

I already added a schematics

author
geekrex made it! (author)geekrex2015-04-08

Ya

author
dglick made it! (author)2015-04-07

I don't understand the circuit diagram. It doesn't look like the 8-pin socket is connected to anything at all.

author
geekrex made it! (author)geekrex2015-04-07

See the schematics for reference

author
colin37 made it! (author)2015-04-07

I do not understand your circuit diagram in step 2. The various pins of the IC seem to be connected to nothing if you are using a board as the one shown on the photo. Can you show us the other side of your board so we can see the connections between IC pins and other components?

author
geekrex made it! (author)geekrex2015-04-07

i have given a schematics plz go through it i think ur problem would be solved

author
geekrex made it! (author)2015-04-07

I think this should help

AttinyArduino_schem.jpg
author
Phoenix78 made it! (author)2015-04-07

I'm a little known with arduino but unknown with avr.

So I have a few questions.

1. What is avr?

2.What is a Bootloader exactly? (Arduino = avr + Bootloader) ???

3.Can you use the Arduino ICSP-header to write the Attiny?

NIce instructable with example.

Greetz...

author
JRV31 made it! (author)JRV312015-04-07

1 - AVR is the series of microcontrollers made by Atmel.

2 - On an Attiny85 the "Burn Bootloader" option does not actually burn a boot loader. It only sets the fuse bits to the right frequency.

3 - No

author
jmrobinson made it! (author)2015-04-07

Awesome!!

author
Muhammad Tanvir made it! (author)2015-04-07

Graet Idea.

author
verlwb made it! (author)2015-04-07

Good.

author
geekrex made it! (author)geekrex2015-04-07

Thank You

author
stannickel made it! (author)2015-04-07

Wonderful idea! Gotta try it!

author
geekrex made it! (author)geekrex2015-04-07

Sure Try it

author
geekrex made it! (author)2015-04-03

we are using arduino language to simplify the programming. you can also program with avr c with a serial programmer . For that you don't need to burn the boot loader

author
discostu956 made it! (author)discostu9562015-04-03

I'm pretty new to all this. does that mean that to use the arduino language you have to program it with an arduino, or can you still use another isp and use the arduino language?

author
geekrex made it! (author)geekrex2015-04-04

ya u can use arduino isp then program it with any other language

author
discostu956 made it! (author)discostu9562015-04-04

Cheers

author
geekrex made it! (author)geekrex2015-04-04

I hope u make ur own board and upload its pic
i would love to see it

author
discostu956 made it! (author)2015-04-03

That's great, thanks! Does it have to be programmed with arduino or can you do it with an avr isp?

author
geekrex made it! (author)geekrex2015-04-04

you can program in arduino or avr c
but writing codes in arduino is way simpler than avr c

author
MAYER MAKES made it! (author)MAYER MAKES2015-04-03

The arduino acts as ISP programmer for the Attiny.

you can use any ISP programmer that can program Atmel MCUs

A similar contruction is used to programm the Arduino pro mini

author
geekrex made it! (author)geekrex2015-04-03

The pro mini works on mega series chip which are a little costly but ya i would like you to make ur own arduino

author
discostu956 made it! (author)discostu9562015-04-03

Thanks guys. Sounds good, will give it a whirl

About This Instructable

54,093views

974favorites

License:

Bio: So basically i am a crazy person, who loves to think the most odd way ever possible,who makes what he thinks and also let ... More »
More by geekrex:$200 DIY 3D Printer Build$1 DIY Fidget ToyHow to Make a DC Motor Speed Controller
Add instructable to: