loading
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
<p>Made PCB for ATtiny85</p><p><a href="https://www.instructables.com/id/A-Complete-Guide-to-Build-Your-Own-ATtiny85-Projec/">https://www.instructables.com/id/A-Complete-Guide-t...</a></p>
<p>Is PWM possible with attiny85?</p>
Ya..
<p>https://www.htlinux.com/product/attiny-isp-shield/ This makes the job just more easier.</p>
cool !
Can i program atmega 328p using usbasp too?<br>Btw thanks for tutorial :)<br>Very usefull
<p>If You whant to program a stand alone Atmega328P or similar just add this </p><p><a href="https://raw.githubusercontent.com/sleemanj/optiboot/master/dists/package_gogo_diy_atmega8_series_index.json" rel="nofollow">https://raw.githubusercontent.com/sleemanj/optiboo...</a></p><p>to board manager in Arduino IDE 1.6.X, install it.</p><p>Now You can decide to burn bootloader and progrma it like an Arduino or not and progam with UsbAsp (safe 2kB of flash)</p>
yes ! you can ...<br><br><br>https://www.instructables.com/id/Easy-Technique-for-Bootloading-Atmega328pu-and-Atm<br>
<p>Great Instructable. I've been using '85s for years as micro-Arduinos. I learned a ton about inputs, outputs, timers, etc. as I got into the gritty details of these little powerhouses. Try making cool flashy Christmas Tree ornaments as gifts!! To those who like this and are interested in th enext steps, I might suggest some of the available ATTinyX5 boards like Tinusaur.</p>
<p>https://www.youtube.com/watch?v=30rPt802n1k will also help your if your having trouble getting it to work for you.</p>
Hi, I don't really see the goal of the boot loader here ? Usually on a arduino you put the boot loader in order to use the usb/serial port and remove usbasp but here if you just upload the blink program without uploading the boot loader before it should Work? Or am I missing something ?<br>Thanks.
You are right !<br><br><br>What is a Bootloader?<br><br>Atmel AVRs&nbsp;are great little ICs, but they can be a bit tricky to program. You need a special programmer and some fancy .hex files, and its not very beginner friendly. The Arduino has largely done away with these issues. They&rsquo;ve put a .hex file on their AVR chips that allows you to program the board over theserial port, meaning all you need to program your Arduino is a USB cable.<br><br>The bootloader is basically a .hex file that runs when you turn on the board. It is very similar to the&nbsp;BIOSthat runs on your PC. It does two things. First, it looks around to see if the computer is trying to program it. If it is, it grabs the program from the computer and uploads it into the ICs memory (in a specific location so as not to overwrite the bootloader). That is why when you try to upload code, the Arduino IDE resets the chip. This basically turns the IC off and back on again so the bootloader can start running again. If the computer isn&rsquo;t trying to upload code, it tells the chip to run the code that&rsquo;s already stored in memory. Once it locates and runs your program, the Arduino continuously loops through the program and does so as long as the board has power.<br><br>Why Install a Bootloader<br><br>If you are building your own Arduino, or need to replace the IC, you will need to install the bootloader. You may also have a bad bootloader (although this is very rare) and need to reinstall the bootloader. There are also cases where you&rsquo;ve put your board in a weird setting and reinstalling the bootloader and getting it back to factory settings is the easiest way to fix it. We&rsquo;ve seen boards where people have turned off the serial port meaning that there is no way to upload code to the board, while there may be other ways to fix this, reinstalling the bootloader is probably the quickest and easiest. Like I said, having a bad bootloader is actually very very rare. If you have a new board that isn&rsquo;t accepting code 99.9% of the time its not the bootloader, but for the 1% of the time it is, this guide will help you fix that problem.<br><br>
<p>it's work thanx</p>
Good !
<p>I have never been able to get my Arduino IDE to recognise an ATtiny device. I thought you had the solution but following your instructions did not cure the problem. Even installing the full version of the URL you provided into the 'Preferences' &gt; 'Additional Boards Manager URLs' did not result in the IDE giving me an ATtiny option. Can you confirm that this is the correct address of the URL? https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json</p>
https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json<br><br><br><br>yes ! this is working well for me..!<br>but the same type of problem occurred for me once when I was trying to install node MCU module to Arduino! I don't know the solution for that !
<p>I love the Attiny85, but hate doing to the wiring to program it, so I designed an Arduino shield that makes it quick and easy:</p><p><a href="https://www.instructables.com/id/Arduino-AVR-Progamming-Shield/" rel="nofollow">https://www.instructables.com/id/Arduino-AVR-Progam...</a></p><p>Here is one of my favorite Attiny85 projects if you need inspiration:</p><p>https://www.instructables.com/id/SnapNsew-An-Educational-Soft-Circuit-Platform/ </p>
awesome sir !
<p>In the e-mail is said: #ONLY 3STEPS</p><p>but on this page it is 9 Steps !</p>
ha ha !! Bro<br><br>but still its a 3 only<br>1)connection<br>2)Bootloading<br>3)Led blinking
how abaut usbasp error like udate......?<br>and error notsuported board (have this problem a few days ago with arduino mega +usbasp)
<p>make sure you are not using BETA of arduion i mean software</p>
https://www.instructables.com/id/Easy-Technique-for-Bootloading-Atmega328pu-and-Atm<br><br><br>go through this....<br><br>you don't get error when connection is proper..! <br><br>can you send screenshot of that error message.!!
try Updating drivers ..!
<p>AT tiny is always fun when cost get reduced </p>
True !
<p>Thanks for Instructable very helpful. Preferences board address incomplete</p><p>should be</p><p><a href="https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json" rel="nofollow">https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json</a></p><p>thanks again</p><p>Jamie</p>
Thank you very much !!
thanks for it.
Welcome !

About This Instructable

29,497views

383favorites

License:

Bio: Electronics and Automation Engineer, Game designer, Artist! EMAIL: amaraxr@gmail.com
More by AXR AMAR:#DIY# How to grow Bonsai (or any plant) using Internet of things (IOT) #DIY# A Complete Guide to Build Your own ATtiny85 Project PCB with Relay and Interfacing HC05 Bluetooth Module to it  Pinguino Project (a PIC microcontroller based Arduino #No Programmer Required) 
Add instructable to: