#DIY# Tiny Arduino(without Crystal)

31,346

391

31

Posted

Introduction: #DIY# Tiny Arduino(without Crystal)

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

2 People Made This Project!

  • Made PCB for ATtiny8...-AXR AMAR

    AXR AMAR made it!

  • it's work thanx-MarcinKnd

    MarcinKnd made it!

Recommendations

  • Epilog Challenge 9

    Epilog Challenge 9
  • First Time Author Contest 2018

    First Time Author Contest 2018
  • Gluten Free Challenge

    Gluten Free Challenge
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

28 Comments

Is PWM possible with attiny85?

https://www.htlinux.com/product/attiny-isp-shield/ This makes the job just more easier.

Can i program atmega 328p using usbasp too?
Btw thanks for tutorial :)
Very usefull

If You whant to program a stand alone Atmega328P or similar just add this

https://raw.githubusercontent.com/sleemanj/optiboo...

to board manager in Arduino IDE 1.6.X, install it.

Now You can decide to burn bootloader and progrma it like an Arduino or not and progam with UsbAsp (safe 2kB of flash)

yes ! you can ...


https://www.instructables.com/id/Easy-Technique-for-Bootloading-Atmega328pu-and-Atm

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.

https://www.youtube.com/watch?v=30rPt802n1k will also help your if your having trouble getting it to work for you.