Arduino connection to Android device through USB hub

Hi all,

I'm looking for some kind of board that's able to communicate with an android device through a USB hub: Android device --> USB hub --> some kind of board. I have tried with the ytai IOIO-OTG and it works fine with a direct connection, but doesn't seem to function through the USB hub. I have searched the net for solutions and found that an Arduino board with a shield might be a solution, but I'm not sure about this, but I hope you can give me the answer.

Is it possible to make a connection with an Arduino board to an android device through a USB hub? If yes, what would be the best approach?

Thanks in advance :slight_smile:

An Arduino Leonardo will do it.

Or use bluetooth. Arduino+Bluetooth is really really easy to do.

An Arduino Leonardo will do it.

Can you explain what there is about the Leonardo that is different from any
other Ardiuno?

oric_dan:

An Arduino Leonardo will do it.

Can you explain what there is about the Leonardo that is different from any
other Ardiuno?

If you gooogle "arduino leonardo" or go to the main page and click on "Leonardo" you get this:

http://arduino.cc/en/Main/ArduinoBoardLeonardo

Hi Fungus.

I will look further into it. Thanks for your precise and fast reply :slight_smile:

fungus:

oric_dan:

An Arduino Leonardo will do it.

Can you explain what there is about the Leonardo that is different from any
other Ardiuno?

If you gooogle "arduino leonardo" or go to the main page and click on "Leonardo" you get this:

http://arduino.cc/en/Main/ArduinoBoardLeonardo

Yeah, sorry I wasn't more specific with my question. When you said the Leonardo will do it,
won't "any" Arduino also do it, or has the Leonardo something special?

oric_dan:

fungus:

oric_dan:

An Arduino Leonardo will do it.

Can you explain what there is about the Leonardo that is different from any
other Ardiuno?

If you gooogle "arduino leonardo" or go to the main page and click on "Leonardo" you get this:

http://arduino.cc/en/Main/ArduinoBoardLeonardo

Yeah, sorry I wasn't more specific with my question. When you said the Leonardo will do it,
won't "any" Arduino also do it, or has the Leonardo something special?

You know how I know you didn't bother clicking the link I provided...?

I DID click on the link, but couldn't read your mind as to what specifically you were trying
to refer to. Simply saying "An Arduino Leonardo will do it" isn't very explanatory.

oric_dan:
I DID click on the link, but couldn't read your mind as to what specifically you were trying
to refer to. Simply saying "An Arduino Leonardo will do it" isn't very explanatory.

OK, my bad. You have to click the link and read the text on the page, I should have explained that more clearly.

nb. The second paragraph is important (that one that starts: "The Leonardo differs from all preceding boards ...")

OK, but I still don't see how that solves OP's problem, because all the usual
Arduino boards do have USB ports, albeit using FTDI chips to do USB to RS232
translation. So I guess the Leonardo does things totally differently? Guess
I'll have to take its code apart.

oric_dan:
OK, but I still don't see how that solves OP's problem, because all the usual
Arduino boards do have USB ports, albeit using FTDI chips to do USB to RS232
translation. So I guess the Leonardo does things totally differently? Guess
I'll have to take its code apart.

Leonardo has a proper USB controller inside it, yes, see: http://www.atmel.com/Images/doc7766.pdf

But ... my bad. The problem is only the hub? I suspect he may need a hub with a power supply.

Fernis:
Hi Fungus.

I will look further into it. Thanks for your precise and fast reply :slight_smile:

Did you succeed? I'm planning to do something similar but I can't find a correct answer.

I want to connect multiple accessories to an android phone (keyboard, mouse, webcam,...), this is possible with phones supporting USB OTG, using a powered hub. But I also want to connect an arduino. USB host port on MEGA ADK or USB host shield is not possible (I think) because the phone is the host. Is the Leonardo the correct choice? Or will a UNO also do the trick?