How to Build Your Own ATtiny85 Programmer Using an Arduino UNO
If you want to program an ATtiny85 microcontroller, you might think that you need a dedicated programmer device. However, you can actually use an Arduino UNO board as a programmer with a few simple steps. In this article, we will show you how to build your own ATtiny85 programmer using an Arduino UNO and a breadboard.
What You Need
To build your own ATtiny85 programmer, you will need the following components:
An Arduino UNO board
An ATtiny85 microcontroller
A 10uF capacitor
Some jumper wires
Step 1: Install the Arduino IDE and the ATtiny Core
The first step is to install the Arduino IDE on your computer. You can download it from here. The Arduino IDE is the software that allows you to write and upload code to your Arduino board.
The next step is to install the ATtiny core, which is a set of files that enable the Arduino IDE to recognize and program the ATtiny microcontrollers. You can install it using the Board Manager in the Arduino IDE. Follow these steps:
Open the Arduino IDE and go to File > Preferences.
In the Preferences window, find the \"Additional Boards Manager URLs\" field and paste this URL: https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json
Click OK to save the preferences.
Go to Tools > Board > Boards Manager.
In the Boards Manager window, type \"attiny\" in the search box and find the \"ATtiny by David A. Mellis\" package.
Select it and click Install.
Wait for the installation to finish and close the Boards Manager window.
Step 2: Connect the Arduino UNO to the ATtiny85
The next step is to connect the Arduino UNO board to the ATtiny85 microcontroller using a breadboard and some jumper wires. Follow this wiring diagram:
The 10uF capacitor is used to prevent the Arduino UNO from resetting when uploading code to the ATtiny85. Make sure to connect it with the correct polarity: the negative leg (marked with a stripe) goes to the GND pin of the Arduino UNO, and the positive leg goes to the RESET pin of the Arduino UNO.
Step 3: Upload the ArduinoISP Sketch to the Arduino UNO
The next step is to upload a special sketch called ArduinoISP to the Arduino UNO board. This sketch will turn your Arduino UNO into an in-system programmer (ISP) that can communicate with the ATtiny85 microcontroller.
To upload the ArduinoISP sketch, follow these steps:
Open the Arduino IDE and go to File > Examples > 11.ArduinoISP > ArduinoISP.
Select your Arduino UNO board from Tools > Board > Arduino AVR Boards > Arduino Uno.
Select your serial port from Tools > Port.
Click Upload and wait for the sketch to be uploaded.
Step 4: Upload Code to the ATtiny85
The final step is to upload code to the ATtiny85 microcontroller using your Arduino UNO as a programmer. You can write your own code or use one of the examples provided by the ATtiny core.
To upload code to the ATtiny85, follow these steps:
Write your code or open an example sketch in the Arduino IDE.
Select your ATtiny85 microcontroller from Tools > Board > ATtiny25/45/85 (No bootloader).
Select \"ATtiny85\" from Tools > Processor. aa16f39245