ATtiny85 Programming

What is ATtiny85?

It is the 8-bit processorthat Atmel has produced. 8K program range, 6 I/O line (Input/Output) and 4 channels 10-bit ADC. It works with an external 20MHz crystal and has programming capability on the circuit. ATtiny85;  We can program Atmega 18 and Atmega16 with various parallel programmers that we program, as well as with Arduino, it has a structure that can be used entirely in accordance with the need, and is ready to be the heart of your new project with its low price!

But when loading our code into the processor, we follow a very different method! Please do it by carefully reviewing our content, feel free to contact us for any error messages that may occur, we have offered solutions for some error messages at the bottom of our article, as well as helping with the errors that come with the comments!


You can also use AtmelStuido instead of Arduino IDE.

Digipark Attiny85 Features:

  • 8KB program memory
  • 512 bytes EEPROM memory
  • 512 bytes SRAM
  • Built-in USB support
  • 6 input/output pins (2 used for USB communication)
  • Adjustable PWM output in 3 pads
  • Adjustable ADC in 4 pads
  • Built-in 5V 150mA regulator
  • Operating voltage: 7-16V via 5V or Vin pin (automatically selected)
  • SPI/TWI(I2C) connection support
  • Power and status/test LEDs
  • Low power consumption

attiny85 It's worth noting that the device I'm using is a cloned Digispark. It has 2 types of card models officially introduced by Digispark on the market. One is plugged directly into devices with USB F ports on computers or similar devices, while the other has a MICRO USB socket. Apart from that, all the features are the same, since the model I use is the MICRO USB mode, so I used the first MICRO USB TO USB cable that I got.

Initial Preparation;

Let's download the Digispark driver for Windows here; attiny85 Let's take our .zip folder anywhere; attiny85 If your operating system is 32bit, let.exe "DPinst" and 64bit "DPinst64.exe".   attiny85 When we have completed the installation, let's open "Device Manager" to check and make sure that the necessary driver is installed. Then let's follow this path to download the necessary card files to the Arduino IDE; Arduino IDE > File > Preferences We enter the additional circuit boards manager URL and write it down attiny85

Adding the Card to the Arduino IDE

From the card manager section, let's set up the package called Digistump AVR Boards. attiny85 After the URL process is finished, we save it with the "OK" button and turn the Arduino IDE off and back on. We check if the necessary cards for ATtiny85 are coming in and make sure we select the programmer "USBasp" Arduino IDE > Tools > Card > Digispark (Default – 16.5mhz) and Programmer: "USBasp" attiny85 All our preparations are complete so far, we can now start uploading our code, but not in a way that we are used to arduino or other microprocessors! Here's what you need to pay attention to. When installing our code on ATtiny85, our card should not be plugged into the computer when we press the "install" button when the card is not inserted, it will ask us to insert our card; attiny85 " Running Digispark Uploader… Plug in device now… (will timeout in 60 seconds) " After seeing this article, we attach the ATtiny85 to the USB port of the computer and it is automatically programmed and then we understand that the process is completed with a return as follows; attiny85

Problems that may occur;

  • Card Recognition Problem;

Go back to the "Device Manager" section and mark View > Hidden Devices Show, when you go down to the bottom the "Digispark Bootloader" device will appear under the "libusb-win32devices" section, right-click "Update driver" and then with the option "Scan my computer for driver software", we select the driver folder that we originally downloaded, our problem disappears.

  • "Reconnect Your Card" Problem;

This error usually occurs when the card is disconnected during installation, you can repeat the same operations and try to install again, if you do not get results; try again on another port of your computer.