USB-Keyboard on Attiny2313 @16MHz

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Heinrich M.
Posts: 2
Joined: Mon Nov 16, 2009 6:06 pm

USB-Keyboard on Attiny2313 @16MHz

Post by Heinrich M. » Mon Nov 16, 2009 6:18 pm

Hi

Im new at USB, but am trying to get my Atmega2313 to work as a keyboard. When a push-button is pressed the controller starts to send every second 'Hi' to the computer.
When I connect the controller to the computer the computer doesnt identify my controller.

I zipped my main.c, usbconfig.h and the circuit. => [DELETED]

'dmesg' Output:

Code: Select all

[  223.289142] usb 3-1.3: new low speed USB device using ehci_hcd and address 3
[  223.377125] usb 3-1.3: device descriptor read/64, error -32
[  223.569096] usb 3-1.3: device descriptor read/64, error -32
[  223.761051] usb 3-1.3: new low speed USB device using ehci_hcd and address 4
[  223.849046] usb 3-1.3: device descriptor read/64, error -32
[  224.041146] usb 3-1.3: device descriptor read/64, error -32
[  224.232976] usb 3-1.3: new low speed USB device using ehci_hcd and address 5
[  224.640763] usb 3-1.3: device not accepting address 5, error -32
[  224.728899] usb 3-1.3: new low speed USB device using ehci_hcd and address 6
[  225.136668] usb 3-1.3: device not accepting address 6, error -32


I hope anyone can help.

Thanks, Heinrich

Heinrich M.
Posts: 2
Joined: Mon Nov 16, 2009 6:06 pm

Re: USB-Keyboard on Attiny2313 @16MHz

Post by Heinrich M. » Tue Nov 17, 2009 8:02 pm

Problem solved

Thanks!

Guest

Re: USB-Keyboard on Attiny2313 @16MHz

Post by Guest » Wed Nov 18, 2009 11:18 am

Heinrich,

Can you tell us how you solved this problem?

Thank you

rosin
Posts: 1
Joined: Sat Jan 23, 2010 4:46 am

Re: USB-Keyboard on Attiny2313 @16MHz

Post by rosin » Sat Jan 23, 2010 4:48 am

Is the intent here to make an Atmega2313 function as a USB keyboard?

Post Reply