Installing USBasp Driver on Windows 8.1

Summary: Windows drivers for the USBasp AVR programmer are open-source and not digitally signed. Latest generations of Windows (7, 8, 8.1, 10) require drivers to have a digital signature before they are allowed to install. The usual procedure to disable the digital signature requirement is tedious and uncertain to work. A method is described here that makes it simple to install USBasp drivers on these Windows systems.

I have been trying to sue the ATtiny85 for a project and using my Arduino UNO as the programmer. One of the headaches with using the UNO as a programmer is that I have to take it with me everywhere and every time I travel but want to still work on the ATtiny85’s software. The UNO itself is not a big deal to carry around but the wires that connect the UNO and the ATtiny are just too fragile to survive traveling too much. I finally broke down and spent a few dollars to buy the USBasp programmer which is very compact and easy to carry.

The problem with the USBasp programmer is that its Windows drivers (Linux and OS X do not need drivers to work with USBasp) are open-source and digitally unsigned which is a no-no for the newer Windows operating systems (Windows 7, 8, 8.1, 10). I searched around and found a few ways to disable the digital signature requirement temporarily to install the driver but there are also comments that those methods do not give universally good result; they work for some machines but not on others. Eventually I stumbled across this page which gives a method that works for me. It involves downloading a small .exe which automatically finds the connected USBasp or USBtiny programmer and install the driver for you. This program provides the digital signature that satisfies Windows’ requirement.

The steps are:

  1. go to http://zadig.akeo.ie/ to download the program (not that Windows XP needs a different version from all other Windows varieties – download the correct version for your system)
  2. Plug in your USBasp or USBtiny programmer
  3. Run the Zadig program; it will see your connected programmer and gives you some choices for the driver to install. I installed the libusb-win32 (v. 1.2.6.0); I don’t know the differences with those other choices.

And that was it! My computer sees the programmer and says that driver was installed correctly.

Installing USBasp Driver on Windows 8.1

Using Arduino UNO as a Bridge to Program Another Arduino Board

Summary: If you have an AVR device or an Arduino board that has the Arduino Boot Loader, using another Arduino board as a serial bridge is the most straight-forward way to program that device.

ArduinoAsSerialBridge_bb

Hello, everyone. As a newbie in the world of Arduino, I’ve been benefited tremendously by the articles that were written and shared freely by many Arduino enthusiasts; I can say 90% of what I know about how to use Arduino comes from reading on the web. So here is my attempt at giving back to the community as much as a way to document some of the things I learn along the way so I can use them later without having to go and read it from my notebook.

Now let’s move onto the subject of my post today: using the Arduino UNO board to program other AVR microcontrollers or other Arduino boards. Depending on the UNO board you have, using it as a programmer may not be as easy as some tutorials indicate. The first place one should visit to learn about using the Arduino as a programmer is the ArduinoISP tutorial at the Arduino web site. A couple of other tutorials by the High Low Tech group at MIT (here and here) also gave me some insight into the subject. (I am working on a project that uses an ATtiny85 so the High Low Tech tutorials were my primary source of education).

I have 2 Arduino boards, both of which are made by OSEPP; one is labelled as UNO-compatible and the other is a PRO-compatible. Neither board is the “R3” design which means that neither of them has the SPI signals (MOSI, MISO, SCK) brought out to the header for the digital pins 11, 12, and 13. These boards also don’t have the I2C (SCL, SDA) signals brought out to the headers. In fact, if you check on the OSEPP web site about how to use their UNO board, their advice is that due to some firmware issues, you need to tell the Arduono IDE that the OSEPP board is a Duemilanove with the ATMega328P processor. For one of my projects, I was trying to use the UNO to program the PRO and I had to experiment a lot to get it to work despite the wide availability of help available out on the world wide web. The lack of the SPI signals in the headers (or maybe it’s the design of way the OSEPP boards) is my main source of frustration when trying to use the UNO to program the PRO board and the bare ATtiny85.

I am using Arduino 1.6.6 on Windows 8.1 running on an ASUS XT205A laptop (Intel Atom Z335F 1.33 MHz processor, 2GB RAM with 32GB of embedded Flash drive) as my main IDE. I also use 1.6.7 especially when dealing with the ATtiny85 about which I will write another post discussing my experience with it. Because of the architecture of the environment, the Arduino 1.6.6 and 1.6.7 IDE’s can co-exist in your system and they can both use the external cores (such as ESP8266 core and David A. Mellis’ ATtiny core) and libraries that you install.

If you are a newbie like me and you read around the web to look for the instruction for using the Arduino UNO to program another UNO or similar Arduino board, you will find that essentially you need to use digital pins 10, 11, 12, and 13 of the “programmer UNO” to the target Arduino board. I found that if your target board is also an Arduino type board, this procedure is overkill. The main reason that you need to use those digital pins (the SPI interface) is if your target board does not have the Arduino Boot Loader already loaded; i.e. if you are trying to program a bare ATmega or ATtiny microcontroller or if you had deleted the boot loader from your board.

If you are like me and are trying to program an Arduino PRO (or any other Arduino board that does not have the USB connector) and you had not deleted the boot loader, then simply using your UNO as a “serial bridge” to program will work fine. Here is how you do it:

  1. While power is off to your “programmer UNO” board, connect its RESET pin to GND; doing this basically leaves the USB-to-serial chip active while keeping the main processor on the UNO board disabled
  2. Connect digital pins 0 and 1 of the “programmer UNO” to digital pins 0 and 1 of the target board
  3. Connect the 5V and GND of your “programmer UNO” to the 5V and GND of your target board; doing this supplies power to the target board via the USB port
  4. Connect the USB cable from your computer to the “programmer UNO” board
  5. Start the Arduino IDE, read in the sketch that you want to load into the target board
  6. Make sure that you use the “Tools” menu to select the correct board, processor, and port settings
  7. The selection of Tools -> Programmer is NOT important since the “programmer UNO’s” processor is disabled anyway
  8. Press “Upload”
  9. Press briefly and release the RESET button on the target board once the Arduino software finishes compilation and shows that it is trying to upload

And voila! It’s done!

Note that this technique only works with boards or devices that already have the Arduino boot loader loaded AND the device or board has a serial (UART) interface.

I learned about this technique by reading this tutorial and another one which, unfortunately, I have lost the bookmark.

Happy hacking!

Using Arduino UNO as a Bridge to Program Another Arduino Board