Blinking an LED with ATtiny85 Microcontroller


Regularly we see Light Emitting diodes (LEDs) are utilized in every other electronic circuit. Particularly, it is utilized regularly at the load side for indication. In-home lighting frameworks, vehicle indicators, signal warnings, game devices, on various occasions for decoration. We utilize LEDs all over. And therefore we have already made a lot of circuit tutorials of LEDs, also we have interfaced them with Arduino. But, how about we attempt to an interface that LED with ATtiny85? So, In this tutorial, we will learn “How to Blink an LED with ATtiny85 Microcontroller”.

JLCPCB is the foremost PCB prototype & manufacturing company in china, providing us with the best service we have ever experienced regarding (Quality, Price Service & Time).

Circuit Diagram

Arduino Code

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(0, OUTPUT);

// the loop function runs over and over again forever
void loop() {
  digitalWrite(0, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(0, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second