Programming Shield for Attiny85 Micro-controller

by M_waleed in Circuits > Electronics

286 Views, 2 Favorites, 0 Comments

Programming Shield for Attiny85 Micro-controller

Protoboard.png

In this Instructable, we will guide you through the process of creating a programming shield for the ATtiny85 microcontroller using veroboard. This shield will make it easier to program and experiment with the ATtiny85, which is a popular and versatile microcontroller for small projects. By the end of this tutorial, you will have a handy programming shield.

Supplies

  • Attiny85
  • Arduino UNO
  • Veroboard
  • 220 ohm resistor
  • LED
  • Soldering iron
  • Soldering wire
  • Wires
  • 8 pin dip socket
  • Male header (2.54mm pitch)

Design the Shield

Protoboard_bb.png

Before you start soldering, plan the layout of your programming shield. Here's a suggested layout:


Connections

Arduino UNO ----------- ATtiny85

Pin 10 --------------- Pin 1

Pin 11 --------------- Pin 5

Pin 12 --------------- Pin 6

Pin 13 --------------- Pin 7

5V --------------- Pin 8

Ground --------------- Pin 4

Solder the Components

Follow these steps to solder the components onto the veroboard:

  • Solder the ATtiny85 DIP socket at the center of the veroboard.
  • Solder the male headers to the left and right side of the attiny85 micro-controller.
  • Start making the connections from the right side of the micro-controller first and then on the left side.
  • Make sure to check all the connections before plugging the attiny85 shield onto the Arduino UNO board.


Connect the Shield

Protoboard.png
  • Insert the ATtiny85 into the socket, aligning it correctly with the socket pins.
  • Now, you can connect your attiny85 programming shield to your Arduino UNO.

Programming

With your programming shield connected to the Arduino UNO and powered, you can now program the ATtiny85 using AVRDUDE or your preferred programming software.

Remember to select the correct programmer and target device in your programming software, and make sure the connections are secure before programming.

In order to upload the code the Attiny8y you have to burn the bootloader first.

To do this you have to open the Arduino ISP from the File > examples > Arduino ISP

  • First select the the board from the tools menu as Arduino UNO.
  • Select the right PORT.
  • Programmer as AVRISP mkll and hit the upload button.
  • This will upload the code to the Arduino first.
  • After that select the board as Attiny /85/ (No bootloader)
  • Frequency = Internal 8MHz crystal
  • Programmer = Arduino as ISP
  • Press the Burn Bootloader button in tools drop down list. This will make the attiny85 ready for programming.
  • Again from File > examples > Basic > Blink.
  • Click on the Blink upload the code by selecting the Arduino UNO as ISP.