HOW TO PROGRAMME ATTINY 85 MICROCONTROLLER TUTORIAL

Hello friends In this tutorial we will see how to Burn bootloader and upload basic LED blink code to ATTINY 85 microcontroller. you can watch the video for complete tutorial or you can continue reading the post.

 

What is ATTINY 85 ?

Attiny 85 is the member of ATMEL family microcontroller, I sure those who reading this article must have used arduino microcontroller.

Attiny is nothing but just the small pack of microcontroller which have comparatively low numbers of INPUT & OUTPUT pins.

Attiny85  is the high-performance, low-power Microchip 8-bit AVR RISC-based microcontroller combines

  • 8KB ISP flash memory,
  • 512B EEPROM, 512-Byte SRAM
  • 6 general purpose I/O lines
  • 32 general purpose working registers
  • one 8-bit timer/counter with compare modes
  • one 8-bit high speed timer/counter
  • USI, internal and external Interrupts
  • 4-channel 10-bit A/D converter
  • programmable watchdog timer with internal oscillator
  • three software selectable power saving modes
  • debugWIRE for on-chip debugging. The device achieves a throughput of 20 MIPS at 20 MHz and operates between 2.7-5.5 volts.

 

ATTINY 85 PINOUT
ATTINY 85 PINOUT

 

BURNING BOOTLOADER TO ATTINY85

New ATTINY first need to burn BOOTLOADER, some suppliers provide pre-uploaded bootloader. but it is advisable to upload bootloader before using new ATTINY 85.

Followings are the items we need to proceed.

 

 

 

Loading ISP Code to Arduino UNO board

For this open arduino IDE goto FILE>EXAMPLE>ArduinoISP and upload the code.

Do wiring as shown in Image below

Copy this URL : – https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json

and paste it in FILE > PREFERENCES  > BOARD MANAGER URL and click on OK

 

 

 

NOW go to TOOLS > BOARD > BOARD MANAGER  a new window will open scroll down you will find the firmware for Attiny85 click on install.

 

Now click on TOOL tab and do settings as follow.

Board = ATtinny25/45/85

processor  = ATtinny85

Clock = Internal 8MHZ

port = as per you COM port

programmer = Arduino as ISP

and click on BURN BOOTLOADER

half way is done now bootloader is uploaded to ATTINY85, now attiny85 is ready to load code so we will upload a basic LED blink code just shake of example, so do wiring as given below.

Upload this code to Attiny 85 same as we upload code to arduino just make sure the basic settings are as follow.

Board = ATtinny25/45/85

processor  = ATtinny85

Clock = Internal 8MHZ

port = as per you COM port

programmer = Arduino as ISP

 

Now you can see the LED will ON & OFF for 1 second.

 

 

 

 

Low cost PCB on PCBWay - only $5 for 10 PCBs and FREE first order for new members

PCB Assembly service starts from $88 with Free shipping all around world + Free stencil 

PCBWay 2nd PCB Design Contest

 

 

sandeep

Hobbiest Electrical DIY project passionate

Leave a Reply

Your email address will not be published. Required fields are marked *

Enter Captcha Here : *

Reload Image