Programmer for ATtiny 85

by lonesoulsurfer in Circuits > Arduino

5003 Views, 92 Favorites, 0 Comments

Programmer for ATtiny 85

Custom Programmer for ATtiny 85 Using Arduino Nano
DSC_3144.JPG
Picture1.gif

Make your own ATtiny 85 programmer using an Arduino Nano and a custom made PCB!

I've been building a few projects of late that use a ATtiny 85 microcontrollers and wanted to create a specifically designed programmer to make the job easier.

If you are an old hand with programming ATtiny 85's or a total novice and want to learn, then this bit of kit is essential. Once you have the hardware, programming the ATtiny becomes quite simple. I did do an 'Ible on how to Program a ATtiny with an Arduino which you can find here. Note that I was only really just learing then myself and did the Ible so I wouldn't forget how to do it! However, the programmer I did make was rudimental and I wanted something more permanent.

Along with the build of this project, I'll run through how to program the ATtiny 85 and get the blinking light sketch to work. Once you have conquered that - the sky's the limit!

This build was inspired by SF94's build on Instructables

Supplies

DSC_3101.JPG
DSC_3108.JPG
DSC_3111.JPG
DSC_3104.JPG

Along with the hardware below, you will also need to get one of the custom PCB's printed. I've explained how to do this in the next step.

PARTS:

  1. Arduino Nano - Ali Express
  2. Header Pins Female - (Length - 15 pins) X 2 - Ali Express
  3. Header Pins female - (2X3) - Ali Express
  4. Zif 14 ic socket - Ali Express
  5. 330R Resistors X 4 - Ali Express
  6. LED - 3mm (any colours) X 4 - Ali Express
  7. 10uf Capacitor - Ali Express

Getting the PCB Printed

DSC_3099.JPG
board.png
schematic.png

Firstly, you can find all of the files including the gerber files for this build in my Google Drive.

To get your board printed, You’ll need to send the Gerber files to a PCB manufacturer like JLCPCB (Not affiliated) who will print the boards for you. Jump into my Google Drive link, download the Gerber file to your computer and then send them off to your PCB manufacturer of choice.

If you have no idea how to do this well, I've put together an Instructable on how to get your broads printed which you can find here.

If you are interested in having a look at the schematic or board files then I have included these as well and you can also find them in my Google Drive. I've also attached the schematic to this step.

Adding Components to the PCB Part 1

DSC_3115.JPG
DSC_3116.JPG
DSC_3122.JPG
DSC_3124.JPG
DSC_3126.JPG

This is pretty straight forward as there really aren't many components to add to the PCB!

STEPS:

  1. Always stsrt with the lowest profile components which in this case is the resistors
  2. Solder the 4 LED's into place. 3 of these are indicators when the sketch is uploading, the other is for the blink skech whih we will load upa little laer to the ATtiny. It's a simple way to make sure everything is working as it should be.
  3. Next you can add the header pins in for the capacitot. The capcitor is removable as you can sometimes have issues with loading Sketches when it is in place.
  4. I've also included a header pin so you can use jumper wires to connect to an ATtiny if it is soldered in place to a PCB. This can also be soldered into place.
  5. Now you can add the Arduino to he PCB. Make sure that you add the header pins in first to the Arduino and then solder it intp place to the PCB. It will ensure that the Arduino is lined up right and the header pins go in straight


Adding Components to the PCB Part 2

DSC_3102.JPG
DSC_3127.JPG
DSC_3130.JPG
DSC_3134.JPG
DSC_3136.JPG
DSC_3138.JPG
DSC_3143.JPG

Now it's time to add he ZIF socket IC holder. This is an easy way o hold he ATtiny into place whist you are programming it

STEPS:

  1. Place the socket holder ino place in he PCB
  2. Make sure that the little lock handle is facing down towards the LED's
  3. Now you can solder it into place
  4. Trim the capacitor legs and place into the 2 header pin. I have indicaed on the board wih a little - symbol which leg of the cap needs to go to ground.
  5. Lastly, add a ATtiny to the ZIP socket holder

That's it - you are now ready to sart programming your ATtiny

Programming the ATtiny 85

F7UB2Q2M13L74XL.gif
1.jpg
FFGF5BUM10QBLGL.jpg

I've actually done an 'Ible now how to program the ATtiny using a Aduino Nano which you can find here

However, I've also gone through he process again in the vid that you can find in the intro

STEPS:

  1. Once you are ready to upload the blink sketch to the ATtiny (just follow the steps in the vid or the link above), open the 'blink sketch' in my Google Drive
  2. Upload the sketch to your ATtiny 85
  3. Watch the little LED blink away!

Once you have mastered this basic upload to the ATtiny, you can then move on to more fun things like these games that I made, or whatever projects that you can find on line. You might even want to try your hand at coding! baby steps first.

I hope this Instrucable was of some help - if you have any questions, please don't hesitate to add a comment and let me know!


All the best

Lonesoulsurfer