How to Program ATtiny85 with Arduino Uno

9,531 views

Introduction

It is always easier to program on Arduino IDE because of its good interface and simpler ways to compose and upload the programs in Arduino as well as in other controllers. However, it requires a little bit of extra knowledge to upload the codes in the different controllers that do not belong to the Arduino board category. Moreover, it requires very few external components like resistors or capacitors for that purpose. To make the process of programming more smooth, here in this article we have come up with Program ATtiny85 with Arduino Uno.

Hardware Required

S.noComponentValueQty
1.ArduinoUNO1
2.USB Cable Type A to B1
3Jumper Wires
4.Breadboard1
5.ATtiny851

ATtiny85 Pinout

Circuit Diagram

attiny85-program-arduino-uno-circuit

Connections

Arduino UNOATtiny85
5VVcc
GNDAnd
Pin 13Pin 2/PB2
Pin 12Pin 1/PB1
Pin 11Pin 0/PB0
Pin 10Reset/PB5

Steps

  • To burn or upload your code you first need to connect attiny85 with arduino microcontroller according to a above given diagram
  • After you do this , open Tools from menu bar, go on board and click the Board Manager
  • The board manager window will be open. Now, scroll down until you see “attiny by Davis A. Mellis”. Click on that option and install it.
  • When it get installed, now you could see a new entry in the Board menu
  • Now you need to go back to Arduino IDE. Go to the tools, Select Processor: “ATtiny85” option. And select 85 MHz. Below the Processor option, there is a clock option, go there and select 8MHz (internal)
  • In the same tool option, there is a Programmer option, select that and then select arduino as ISP
  • The tools also contain the Burn Bootloader option. Select that option.
  • You then get the message if the burning bootloader was successful.
  • Now open your code and burn that.

Conclusion

We have discussed the easier way to program your ATtiny85 using Arduino. And hence it is never difficult to make a project on this tiny controller that can surely do wonders for tiny portable electronic devices and circuits.