Introduction: #DIY# Tiny Arduino(without Crystal)

About: Electronics and Automation Engineer, Game designer, Artist! EMAIL: amaraxr@gmail.com

It is easy to program a Attiny ! just follow these simple steps...! you will do it in less than 30mins.

Step 1: About Attiny 85

The high-performance, low-power Atmel 8-bit AVR RISC-based microcontroller combines 8KB ISP flash memory, 512B EEPROM, 512-Byte SRAM, 6 general purpose I/O lines, 32 general purpose working registers, one 8-bit timer/counter with compare modes, one 8-bit high speed timer/counter, USI, internal and external Interrupts, 4-channel 10-bit A/D converter, programmable watchdog timer with internal oscillator, three software selectable power saving modes, and debugWIRE for on-chip debugging. The device achieves a throughput of 20 MIPS at 20 MHz and operates between 2.7-5.5 volts.

By executing powerful instructions in a single clock cycle, the device achieves throughputs approaching 1 MIPS per MHz, balancing power consumption and processing speed.

Step 2: Components Needed !

1) Attiny85-1
2) Breadboard-1
3)Led-2
4)jumpers-10
5)Usbasp (10pin) -1
6)Usbasp adaptor (10pin to 6pin)#Optional
7) Resistors (220ohm-1k) - 2




Software - Arduino IDE

Step 3: NOTE : : YOU MUST BOOTLOAD YOUR ATtiny85 IC FIRST TO UPLOAD ANY ARDUINO CODE ...!!

Step 4: Connections to Bootload Attiny !

Connect the Jumpers between the Attiny and Usbasp as shown in the Circuit diagram !

Step 5: To Add Attiny Support Package to the Arduino IDE

#1 Open the preferences dialog in the Arduino software.Find the “Additional Boards Manager URLs” field near the bottom of the dialog.

#2 Paste the following URL into the field (use a comma to separate it from any URLs you’ve already added):

https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-

#3 Click the OK button to save your updated preferences.

#4 Open the boards manager in the “Tools > Board” menu.

#5 Scroll to the bottom of the list; you should see an entry for “ATtiny”.

#6 Click on the ATtiny entry. An install button should appear. Click the install button

#7 The word install would appear on the screen


Now your Arduino Ide is ready to program your Attiny ..!

Step 6: Bootloading Attiny85

Once connection is complete and Support package is installed ,now you can upload the bootloader program to your tiny85.

for that follow these steps :

Goto “Tools > Board” menu>select ATtiny

Select >Processor as Attiny

Goto Tools > select programmer as "USBasp


then click " Burn Bootloader"

Step 7: Connecting LEDs to ATtiny

Connect two LED's anode pin to PB1 and PB0 respectively and short it's cathode to ground pin through Resistor.

Step 8: Attiny Blink Code !

void setup ( )
{
pinMode (1,OUTPUT);
pinMode(0,OUTPUT);
}

void loop (){
digital write(0,HIGH);
delay(100);

digital write(0,LOW);
delay(100);


digital write(1,HIGH);
delay(100);


digital write(1,LOW);
delay(100);

}

Step 9: Thank You !! Please Do Comment If You Have Any Doubt ...

amaraxr@gmail.com
www.xolcano.com

Beyond the Comfort Zone Contest

Participated in the
Beyond the Comfort Zone Contest