attiny85 unknown usb device

Attiny85 Unknown USB Device: Solved

By John Thompson
AD

Have you ever connected your ATtiny85 to your computer only to find it doesn't recognize the device? Instead, you're greeted with a dreaded 'Unknown USB Device' notification? You're not alone. This common issue often leaves users scratching their heads. Let's dive into some solutions to this persistent problem.

Before we troubleshoot, let's understand why this happens. The ATtiny85, despite its capabilities, doesn't have built-in USB support. It requires an external USB-to-serial converter like the USBtinyISP. When connected to your computer, it should appear as a COM port. If not, let's explore why.

Insufficient Drivers or Outdated Firmware

One primary reason for the 'Unknown USB Device' error is insufficient or outdated drivers. Even though ATtiny85 doesn't need drivers per se, the converter does.

AD
Atmel’s ATiny85 powers this IRKey
Atmel’s ATiny85 powers this IRKey
Attiny85 :: Paromanie
Attiny85 :: Paromanie
an electronic device connected to a usb interface
an electronic device connected to a usb interface

First, ensure you've installed the USBtinyISP drivers. You can download them from the official High-Low Tech site. After installation, try connecting your ATtiny85 again.

Firmware Update

Outdated firmware can also cause recognition issues. The USBtinyISP's firmware can be updated using the 'avrdude' command in the Arduino IDE. Before you proceed, make sure to install the USBtinyISP board package in the IDE.

Learn To Use ATtiny85 USB Mini Development Board - EDN
Learn To Use ATtiny85 USB Mini Development Board - EDN
Programming ATtiny85 Directly Through USB | Easy Setup!
Programming ATtiny85 Directly Through USB | Easy Setup!
DIY USB password generator
DIY USB password generator

Follow these steps to update the firmware: 1. Open the Arduino IDE. 2. Click on 'Tools', then 'Board', and select 'Tools -> USBtinyISP'. 3. Click 'Tools', then 'Programmer', and select 'USBtinyISP'. 4. Click 'Tools', then 'Burn Bootloader'. This will update the firmware.

Check Your Connections

Misconnections can easily cause recognition problems. Ensure your ATtiny85 is properly connected to the USBtinyISP, and both are correctly plugged into your computer.

AD

Double-check the wire connections. The Reset pin (D5) should be connected to GND, and the MISO pin (D6) should connect to the D10 pin on the USBtinyISP. If these are correct, try plugging your device into different USB ports to rule out any hardware issues.

ATtiny85 Based AT89S52 USB Programmer
ATtiny85 Based AT89S52 USB Programmer
Programando o ATtiny85 com gravador USBasp - Arduino e Cia
Programando o ATtiny85 com gravador USBasp - Arduino e Cia
ATtiny85 Microcontroller tutorial: GPIO as output - Gadgetronicx
ATtiny85 Microcontroller tutorial: GPIO as output - Gadgetronicx
an electronic device with two wires connected to it
an electronic device with two wires connected to it
A Complete Guide to Build your Own ATtiny85 Project PCB - www.hackster.io
A Complete Guide to Build your Own ATtiny85 Project PCB - www.hackster.io
Attiny85 - Digispark Usb Módulo para Programação como utilizar de forma transparente
Attiny85 - Digispark Usb Módulo para Programação como utilizar de forma transparente

Incorrect Board Selection in Arduino IDE

If your ATtiny85 still isn't recognized, the problem might lie in your Arduino IDE settings.

Arduino IDE might not recognize the ATtiny85 by default. You need to tell it to look for the correct board.

AD

Select the Correct Board

Follow these steps to tell the Arduino IDE to look for an ATtiny85: 1. Open the Arduino IDE. 2. Click on 'Tools', then 'Board', and select 'ATtiny85 (or ATtinyX5 series)'.

ATtiny85 USB Power Tester
ATtiny85 USB Power Tester
Attiny85 Bootloader using USBasp | Tutorial
Attiny85 Bootloader using USBasp | Tutorial
A good collection of ATTiny85 Arduino projects
A good collection of ATTiny85 Arduino projects
Como gravar o bootloader do ATtiny85 com Arduino - Arduino e Cia
Como gravar o bootloader do ATtiny85 com Arduino - Arduino e Cia
an electronic device that is connected to a usb cable and plugged into the board
an electronic device that is connected to a usb cable and plugged into the board
Simple Tones for ATtiny
Simple Tones for ATtiny
ATtiny85 IR USB Receiver
ATtiny85 IR USB Receiver
Atmel ATtiny85 20MHz
Atmel ATtiny85 20MHz
two usb devices connected to each other on top of a white surface with the words limit and charge displayed
two usb devices connected to each other on top of a white surface with the words limit and charge displayed
an electronic device circuit diagram with the following instructions
an electronic device circuit diagram with the following instructions
Learn on the fly
Learn on the fly
Introduction to the ATtiny85 - What is the ATtiny85?
Introduction to the ATtiny85 - What is the ATtiny85?
ATTiny85 - How to Program With Visual Studio Code (VSC) and PlatformIO
ATTiny85 - How to Program With Visual Studio Code (VSC) and PlatformIO
Attiny 85 Digispark Board
Attiny 85 Digispark Board

If your board isn't listed, you may need to install the 'ATtiny' board package. You can do this by clicking on 'Tools', then 'Board', then 'Boards Manager'. Search for 'ATtiny' and install the appropriate board package.

Choose the Correct Serial Port

After selecting the correct board, you need to choose the correct serial port. To do this: 1. Click on 'Tools', then 'Port'. 2. Select your USBtinyISP's COM port (you can find this in your computer's Device Manager).

AD

If your port isn't listed, it might be because Windows has enabled a feature called 'Disable device'. To fix this: 1. Open the Device Manager (search for it in the Windows search bar). 2. Find your USBtinyISP in the list (it might appear as 'Unknown USB Device'). 3. Right-click on it, select 'Enable device'. 4. Once enabled, it should appear in the Arduino IDE's port list.

By following these troubleshooting steps, you should be able to resolve the 'Unknown USB Device' issue for your ATtiny85. If you're still having trouble, try Googling your specific error message for more focused help. Happy coding!

AD