HOW TO – Programming ATtiny13 with USBtinyISP

 Wp-Content Uploads 2009 11 Usbtinyisp Set Up
Lars shows you how to program an ATtiny13 with the Adafruit USBtinyISP

To program the ATtiny13 or other AVR tiny microcontrollers I use the USBtinyISP. It is a diy build programmer, you can buy a package and you only need to solder. The nice thing is that it works with USB and can power the circuit directly. More information about the programmer can be found here: http://www.ladyada.net/make/usbtinyisp/ I use Windows Vista for programming. USBtinyISP uses an USB driver to work under Windows. This works good on 32 bit Vista system, but on 64 bit system you need to disable Windows check of unsigned drivers. This can be done by pressing F8 during boot and selecting a boot option at the bottom. This needs to be done every time you want to program the microcontroller. Perhaps a reader knows a solution to that? Please post in the comments. The USBtinyISP is cheap and works great…


Adafruit publishes a wide range of writing and video content, including interviews and reporting on the maker market and the wider technology world. Our standards page is intended as a guide to best practices that Adafruit uses, as well as an outline of the ethical standards Adafruit aspires to. While Adafruit is not an independent journalistic institution, Adafruit strives to be a fair, informative, and positive voice within the community – check it out here: adafruit.com/editorialstandards

Join Adafruit on Mastodon

Adafruit is on Mastodon, join in! adafruit.com/mastodon

Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 9/13/2024 Featuring Adafruit Feather RP2350 with HSTX Port! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: CircuitPython Comes to the ESP32-P4, Emulating Arm on RISC-V, and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — IoT Vulnerability Disclosure, Decorative Dorm Lights, and more!

Maker Business – Adafruit Daily — A look at Boeing’s supply chain and manufacturing process

Electronics – Adafruit Daily — Autoscale is cheating!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



9 Comments

  1. I did a little project using the AT2313 (programming in some form of Basic) a few years ago and made up a parallel port programmer for it (just a couple of resistors if I remember correctly). More recently I’ve played with a couple of Arduinos a bit.

    It seems to me that it would be fairly trivial to program the Arduino to work as an ISP for one of the ATtiny chips using just an ISP header and a couple of wires. The advantages would be reuse of hardware people would likely have to hand anyway and avoiding the need for any special drivers.

    Am I missing something?

  2. I’ve used my USBtiny for several tiny13 and tiny85 projects. The only difference is that I use a SparkFun breakout board to connect the programmer to the breadboard. (pic: http://www.instructables.com/id/SUTEZKVFKD1M38Q/) It’s handy because the pins are labeled and the header connector insures a good connection. 22GA wire doesn’t always get a secure connection when used in a female header plug.

  3. I have plans to build a “universal” AVR programmer using a universal 40-pin ZIF socket and your USBtinyISP cable. The idea is similar to what Lars has done here, in that the programming header is broken out into individual jumper wires which can be moved to whichever pin is necessary according to the pinout. The pins of the IC will be accessible through female header sockets corresponding to each pin on the ZIF socket. I’ll try to remember to post pictures when I’m done.

  4. The AVR toolchain has been wonky under Snow Leopard. I’ve published a piece on how to get it working. Short answer: use Fink

    http://regs.posterous.com/getting-avr-tools-working-on-mac-os-x-snow-le

  5. I got back into electronics as a hobby recently after a decades long hiatus thanks to the AVR microcontrollers, but I have recently put that hobby back on hold until the USBtinyISP x64 Vista/Win7 driver issue is resolved.

  6. The Arduino makes a reasonably good ISP. See

    http://code.google.com/p/mega-isp/

    Art: Sad that you let drivers stand in your way.

  7. Thanks Randall, I wasn’t missing something.

  8. For the tiny series, the AVR Dragon works in something called the “high voltage serial programming” mode – which allows you to use the reset pin as a port pin.

    I just got one from digikey – it also has JTAG and ISP in addition to HVSP and HVPP.

    It works well.

    The other problem is that under Linux, it doesn’t properly detect these usbtiny based programmers without a hub.

    One other thing is I got some pomona clips (DIP and SSOP) and built an ISP to clip adapter, so I can program things which don’t have a voltage problem by just clipping to them.

    I have some of this on my blog, if you want to see – I should have a dragon pic later this weekend.

  9. I just made a little ATTiny dev board with an ISP connection that, strangely enough, works with my AVRISPmkII programmer but not my USBtinyISP. Can’t quite figure out why

Sorry, the comment form is closed at this time.