tusindfryd
Published © GPL3+

Programming ATtiny MCUs with USBasp and Arduino IDE

Getting started with ATtiny microcontrollers

BeginnerFull instructions provided6,795
Programming ATtiny MCUs with USBasp and Arduino IDE

Things used in this project

Hardware components

Microchip ATtiny
Choose the one you like: https://en.wikipedia.org/wiki/ATtiny_microcontroller_comparison_chart
×1
USBasp programmer
This programmer is open source - a lot of producers manufacture their own versions that you can buy online.
×1

Software apps and online services

Arduino IDE
Arduino IDE
Zadig
For installing drivers

Story

Read more

Schematics

Wiring

Connecting the ATtiny to the programmer (and an LED)

Code

Blink

Arduino
Blinking the LED
const uint8_t LED = 4;

void setup() {
  pinMode(LED, OUTPUT);
}

void loop() {
  digitalWrite(LED, HIGH);
  delay(1000);
  digitalWrite(LED, LOW);
  delay(1000);
}

Credits

tusindfryd

tusindfryd

0 projects • 14 followers

Comments