Programming ATtiny13 with Arduino Uno © GPL3+

This is a tutorial on how to make it work.

  • 7,222 views
  • 4 comments
  • 16 respects

Components and supplies

Apps and online services

About this project

Tested with Arduino 1.8.0 on Ubuntu 17.10.

0. Turn the Arduino into a AVRISP

(AVR is a family of microcontrollers. ISP means In System Programmer)

Open Arduino IDE -> File -> Examples -> 11.ArduinoISP ->ArduinoISP and upload to Arduino

1. Install hardware package for ATtiny13

1.1 Open Arduino IDE -> File -> Preferences go to Additional Boards Manager URLs and copy this:

https://mcudude.github.io/MicroCore/package_MCUdude_MicroCore_index.json

Ok.

1.2 Open Arduino IDE -> Tools -> Board -> Boards manager. Find MicroCore and click Install.

2. Connect the hardware

  • ATtiny13A leg 1 -> Arduino 10
  • ATtiny13A leg 5 -> Arduino 11
  • ATtiny13A leg 6 -> Arduino 12
  • ATtiny13A leg 7 -> Arduino 13
  • ATtiny13A leg 8 -> 5v
  • ATtiny13A leg 4 -> Ground (GND)

LED and resistor is needed only for testing to see does uploaded example code works or not.

3. Arduino IDE settings

Go to Arduino IDE -> Tools and select:

  • Board: ATtiny 13
  • BOD: 4.3v
  • Clock: 1.2 MHz internal osc.
  • Compiler LTO: Enable
  • Port: (Your Arduino port)
  • Programmer: Arduino as ISP

4. Burn Bootloader

(You only need to do this once per chip)

Go to Arduino IDE -> Tools -> Burn Bootloader

You might see an error, but ignore it.

5. Upload sketch

Copy Blink sketch:

void setup() {
 // initialize pin 4 (ATtiny leg 3) as an output.
 pinMode(4, OUTPUT);
}
void loop() {
 digitalWrite(4, HIGH);   // turn the LED on (HIGH is the voltage level)
 delay(1000);             // wait for a second
 digitalWrite(4, LOW);    // turn the LED off by making the voltage LOW
 delay(1000);             // wait for a second
} 

Go to: Arduino IDE -> Sketch -> Upload Using Programmer

6. Demo

If all works, the LED should blink now:

Blink demo

7. More info

Comments

Similar projects you might like

Simple ATTiny13 Shield for Arduino UNO

Project showcase by Hugo Blanc

  • 613 views
  • 0 comments
  • 4 respects

Programming ATtiny85 with Arduino Uno

Project tutorial by Arjun Ganesan

  • 190,601 views
  • 70 comments
  • 167 respects

Programming the ATtiny85 (Using an Arduino Uno)

Project tutorial by Ian Cumming

  • 1,822 views
  • 1 comment
  • 2 respects

ATtiny13/13a/25/45/85 Programming Shield

Project tutorial by Viktor S

  • 21 views
  • 0 comments
  • 0 respects

Programming the ESP8266 with the Arduino IDE

by Metavix

  • 14,903 views
  • 3 comments
  • 10 respects
Add projectSign up / Login