WARNING, THIS INSTRUCTABLE HAS BECOME OBSOLETE



The v-usb library is designed to work with USB 1.1 protocol that hardly exists nowadays. With the arrival of USB3 you'll have more than a headache trying to make v-usb devices to work. After changing my multimedia center, I have got many stability issues and even though the receiver works, after a while it stops working. I have been unsuccessful trying to fix it. I made also an atmega328p version but this one had the same issues.

Using a watchdog timer to reset the board periodically didn't help either so I give up on v-usb.

Make yourself a favor and do not go ahead with this instructable unless it is for educational purposes. I recommend instead buying a chip module ATmega 32U4 which has already integrated the usb interface and follow this guide:

https://www.sparkfun.com/tutorials/337

Then throw in an IR sensor TSOP31238 and you are good to go.

----------------------------------------------------------------------------------------------------

Hello makers!

this is an instructable to build a working USB IR receiver using an Attiny85 microcontroller.

I started this project to overcome the lack of support (at least complete support) for some IR remotes in the GNU/Linux OS. Following this instructions you could build a programmable USB IR receiver that works with any IR remote for a few bucks.

First of all, this instructable wouldn't exists without the hard work of the people that created the libraries that I use here:

David A. Mellis for his attiny core https://github.com/damellis/attiny

Rowdy Dog Software for their library TinyTuner https://storage.googleapis.com/google-code-archiv...



Rowdy Dog Software for their tiny bootloader https://storage.googleapis.com/google-code-archiv...



Rancidbacon (http://rancidbacon.com/) for his arduino port of the v-usb library (https://code.google.com/archive/p/vusb-for-arduino/downloads)

seejaydee for his IR library for tiny cores found on the comments of the instructable https://www.instructables.com/id/Attiny-IR-librar... code on https://www.instructables.com/id/Attiny-IR-librar...

Sometimes is not easy to find the right owner of a library, so in case I made a mistake, please leave a comment and I would solve the issue ASAP.

This guide exists because I didn't find a complete tutorial/guide working out of the box (it may exist, but I couldn't find it) so I gathered all the info available on the web and after a good amount of trials and errors I came up with a complete guide to build a working USB IR receiver that actually works pretty well.

The main sources of information that I have followed: