UART/USI -> HID device?
Posted: Fri Oct 31, 2008 9:50 pm
Hello,
I have built several sensor-interface devices using that are built around serial output (MIDI) using the hardware USI of an ATTiny26. Since I'd like to get away from the sort of limited and slow MIDI spec, I am wondering if it is possible to build an HID device using AVR-USB that reads USI/UART serial data and packs it up into an HID report as if it were e.g. a joystick. The idea is to build a modular system where I can plug different controller modules into the base UART->HID board to connect to the computer. All of the controller devices would use the same spec for sending controls (controller numbers, range, etc.). Will the UART interrupts interfere with the USB communication? How would you recommend that I get started? I have a lot of experience working with AVR's but haven't delved very deep into AVR-USB. Would the ATTiny2313 work as the USB chip?
Any advice is greatly appreciated.
Thanks,
Andrew
I have built several sensor-interface devices using that are built around serial output (MIDI) using the hardware USI of an ATTiny26. Since I'd like to get away from the sort of limited and slow MIDI spec, I am wondering if it is possible to build an HID device using AVR-USB that reads USI/UART serial data and packs it up into an HID report as if it were e.g. a joystick. The idea is to build a modular system where I can plug different controller modules into the base UART->HID board to connect to the computer. All of the controller devices would use the same spec for sending controls (controller numbers, range, etc.). Will the UART interrupts interfere with the USB communication? How would you recommend that I get started? I have a lot of experience working with AVR's but haven't delved very deep into AVR-USB. Would the ATTiny2313 work as the USB chip?
Any advice is greatly appreciated.
Thanks,
Andrew