Connect AVR to a USB device

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Deth20
 
Posts: 17
Joined: Wed Mar 26, 2008 6:37 pm

Connect AVR to a USB device

Post by Deth20 »

Hi!

Does anyone know if it's possible to establish a communication between a AVR and a USB-device. For example a keyboard and a atmega8 with lcd?
Or what I want to do: Connect a usb-bluetooth-module and a AVR.


Any protips?

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

pretty much impossible, you would need a usb host chip for such a thing

Hazard
 
Posts: 196
Joined: Tue Oct 30, 2007 7:27 am

Post by Hazard »

There are a few AVR that can host USB devices.
Check this one http://www.atmel.com/dyn/products/produ ... rt_id=3876

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Post by mtbf0 »

ftdi makes a usb host controller that can talk to an avr via spi or uart. of course, these things are programmable so you may not need the avr.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

im pretty sure the at90's are usb clients not hosts
the ftdi chips, in theory, could do it...but they're still very new and aparently buggy. theres a low cost devboard pluggy available tho

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Post by mtbf0 »

ladyada wrote:im pretty sure the at90's are usb clients not hosts
the at90usb1287 and at90usb647 will do client host and otg.

mattkenny
 
Posts: 7
Joined: Thu May 01, 2008 12:23 am

Re: Connect AVR to a USB device

Post by mattkenny »

Deth20 wrote:establish a communication between a AVR and a USB-device. For example a keyboard and a atmega8 with lcd?
If you put the little USB->PS/2 connector on the end of the keyboard, you should be able to decode the PS/2 signals from the keyboard. I haven't done it myself, but I know people have without much difficulty (and there are libraries for it too). That removes the whole ugly USB-Host problem.
Deth20 wrote:Or what I want to do: Connect a usb-bluetooth-module and a AVR.
If you want bluetooth connectivity from an AVR, check out these from sparkfun: http://www.sparkfun.com/commerce/categories.php?c=115 (is it ok to post this link?)

Depending on what module you use, you should be able to get a bluetooth connection to your PC (as a virtual comm-port), or with 2 modules you can get a bluetooth connection between two circuits (both using serial comms over bluetooth). Again, never used 'em, but always wanted to (never had a need unfortunately).

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”