Let's Make Robots!

Com. between Android & Fez Panda

Hi Guys
Im planning to use my old Galaxy S3 for a sort of display/face for my small bot.
So i want to have some sort of way to communicate between my phone and my Fez Panda 2 board...

As i see it i got 3 possible ways to do this, WiFi, Bluetooth or USB.
I would love to do this over usb, but not sure if its possible ? My experiance with USB comm. is that it seems at bit complicated...

Any ideas, or experiences? 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Some time ago I have ported the MicroBridge Library from Arduino to FEZ devices, for more infos see my blog post. FezBridge is only tested with FEZ Domino. To make this work with the FEZ Panda you will need to modify the Panda/USB cable. This code will not work with USB OTG.

I already have a "host modified" cable for my panda, so this might be a solution.
I'll check that out 

You should know that the FezBridge is not a ready to use library, it's more a proof of concept and not easy to use. The easier way would be, as 6677 suggested, to use a serial link or bluetooth. But you will need extra hardware. 

Another way would be using ADK (Android open accesory) instead of ADB (Android Debug Mode). Don't know if your phone supports ADK. Look here for an example. 

I presume the only reason for USB over the other 2 methods is more to do with wanting a wired connection rather than wireless,

There is actually a UART on the S3, although I wouldn't go there if I were you: http://forum.xda-developers.com/showthread.php?t=2096404
Not easy to get at and may not work at all.

Otherwise, there is this libraries for android which allow USB>Serial cables to work on an android device with USB host, the S3 supports USB host if you buy a cheap USB-OTG adaptor (I really recommend all android users having one of those around, damn handy). Seems the most recommended of the free libraries is this one: https://code.google.com/p/usb-serial-for-android/ More recommended overall costs $99 though. The free one works with CP2102, some FTDI models and CDC. Then it would just be a case of connect USB to phone with the OTG adaptor, connect the serial lines to your panda 2.

You could try and work out how to do the USB comms yourself but I have no idea how. Bluetooth is more straightforward and cheaper than wifi if you dont go USB. Most bluetooth modules for use with microcontrollers are just the serial port profile which android fully supports, just becomes a wireless UART. Wifi modules are more expensive and like raw USB are pretty complex.