Pages: [1]   Go Down
Author Topic: Can the Atmega32U4 be a USB host?  (Read 2325 times)
0 Members and 1 Guest are viewing this topic.
Wisconsin
Offline Offline
Edison Member
*
Karma: 4
Posts: 1001
I LOVE THIS STUFF!!!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I'm working on an android/arduino project.  Since android USB host isn't supported before Android version 3.1, I need the arduino to act as a USB host. 
I know that there is a USB host shield, although I don't understand how it functions and frankly has too many components for me to break it down and put it on my project. 

So is there some way that the Atmega32U4 can be used as a host? I mean it already has onboard USB support, I don't think it would be too much of a stretch to make it work.
Logged

Accelerate to 88 miles per hour.

Leeds, UK
Offline Offline
Edison Member
*
Karma: 80
Posts: 1729
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The 32U4 doesn't have host capability. You would need either a chip that does, or a seperate USB host IC.
Logged

~Tom~

Greenville, IL
Offline Offline
Edison Member
*
Karma: 15
Posts: 1330
Warning Novice on board! 0 to 1 chance of errors!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


 You need to use bluetooth.
http://www.amarino-toolkit.net/index.php/plug-in.html

http://www.instructables.com/id/Use-your-android-phone-sensors-on-the-arduino-/

Logged


Wisconsin
Offline Offline
Edison Member
*
Karma: 4
Posts: 1001
I LOVE THIS STUFF!!!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The 32U4 doesn't have host capability. You would need either a chip that does, or a seperate USB host IC.

Do you have any IC's that you would recommend? Ones that could be easily used with the 32U4?

You need to use bluetooth.

As much as I would love to, I need to use the power to also power my project, so I might as well just have the data sent through the usb as well.  And as I understand it, bluetooth dealios are usually larger than a usb host chip
Logged

Accelerate to 88 miles per hour.

Greenville, IL
Offline Offline
Edison Member
*
Karma: 15
Posts: 1330
Warning Novice on board! 0 to 1 chance of errors!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


 This maybe of no help but, maybe can figure out what they are doing on this board. http://arduino.cc/en/Main/ArduinoBoardADK
Logged


Wisconsin
Offline Offline
Edison Member
*
Karma: 4
Posts: 1001
I LOVE THIS STUFF!!!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've checked that out, It includes the MAX3421E. I could reverse engineer it I guess to see how it interfaces with the mega2560 although I still wouldn't have the code.  I'm sure I could find some, although the MAX3421E seems to need a good amount of external components such as a crystal and I simply don't have the board space for it. 
Logged

Accelerate to 88 miles per hour.

Fort Lauderdale, FL
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

although the MAX3421E seems to need a good amount of external components such as a crystal
I would call a crystal and a couple of caps a pretty minimal implementation for a Host controller.  Some of the other components are for if you need the Host to provide power to the device.   Depending on what you need to do in your application, I doubt you'll find a more minimal setup.

Keep in mind that USB isn't a simple protocol.  Depending on what you plan to connect to the USB-Host, you'll have to write your own drivers and can be a tall order.  The Uno / Leonardo's relatively small amount RAM is another challenge.  (The Mega's 8K is a little easier.)
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.c

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 137
Posts: 6792
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
it already has onboard USB support, I don't think it would be too much of a stretch to make it work.
USB host processing and USB device processing are MUCH different.  You're not going to see anything significantly simpler than the MAX3421 circuitry (significantly expensive chip + crystal + etc.)
Logged

Wisconsin
Offline Offline
Edison Member
*
Karma: 4
Posts: 1001
I LOVE THIS STUFF!!!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Holy crap that chip is expensive!
Looks like i'll have to get 100 of them to get a decent price break.
Logged

Accelerate to 88 miles per hour.

Wisconsin
Offline Offline
Edison Member
*
Karma: 4
Posts: 1001
I LOVE THIS STUFF!!!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there a library for the MAX3421E?
Looking at the datasheet, I don't understand it.
Logged

Accelerate to 88 miles per hour.

Fort Lauderdale, FL
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Google:  max3421e arduino library
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.c

Wisconsin
Offline Offline
Edison Member
*
Karma: 4
Posts: 1001
I LOVE THIS STUFF!!!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh wow, I thought I did. Haha guess not.

Thanks!
Logged

Accelerate to 88 miles per hour.

Pages: [1]   Go Up
Jump to: