#DIY# Tiny Arduino(without Crystal)
by AXR AMAR in Circuits > Arduino
40725 Views, 413 Favorites, 0 Comments
#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.
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.
By executing powerful instructions in a single clock cycle, the device achieves throughputs approaching 1 MIPS per MHz, balancing power consumption and processing speed.
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
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
NOTE : : YOU MUST BOOTLOAD YOUR ATtiny85 IC FIRST TO UPLOAD ANY ARDUINO CODE ...!!
Connections to Bootload Attiny !
Connect the Jumpers between the Attiny and Usbasp as shown in the Circuit diagram !
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 ..!
#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 ..!
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"
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"
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.
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);
}
{
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);
}
Thank You !! Please Do Comment If You Have Any Doubt ...
amaraxr@gmail.com
www.xolcano.com
www.xolcano.com