I would like to know if it is possible to implement a wired communication link between the Arduino Yun (USB host) and an Android phone using a standard USB to micro USB cable? Also, if a phone is connected to the USB host port on the Ardino Yun, will the Yun attempt to charge the phone's battery ? Could this lead to power issues on the Yun ?
I am trying this right now. You will need an external powersupply plugged into Vin and GND since the phone will try to charge and the CDC won't work correctly otherwise.
I am using USB Host 2.0 library currently and trying to get the AndroidBlinkLed program to work, but still having some connection issues, so still in the debugging stage.
You would probably find it easier to get a usb OTG (on the go) cable, and use the phone as the host, if your phone supports it. Plus then you'd have a portable connection
There are a number of good apps to use a serial monitors this way.
What is your use case? What software will you be using on the phone to facilitate communication?
I'm very intrigued.
Naman_N:
I would like to know if it is possible to implement a wired communication link between the Arduino Yun (USB host) and an Android phone using a standard USB to micro USB cable? Also, if a phone is connected to the USB host port on the Ardino Yun, will the Yun attempt to charge the phone's battery ? Could this lead to power issues on the Yun ?
Thank you in advance for any help !!!
Naman_N,
#1 in theory, yes - you can communicate from the Host to phone via USB #2 Yes, the Yun will power the phone. This is standard for USB. (100-250mA I think) #3 Yes, it will lead to power issues.
buffalojr:
I am trying this right now. You will need an external powersupply plugged into Vin and GND since the phone will try to charge and the CDC won't work correctly otherwise.
I am using USB Host 2.0 library currently and trying to get the AndroidBlinkLed program to work, but still having some connection issues, so still in the debugging stage.
I'd use Arduino Mega ADK for that purpouse. If you have a Yun, why not use wireless conection?
mart256:
I'd use Arduino Mega ADK for that purpouse. If you have a Yun, why not use wireless conection?
I got the Yun for the same price as the ADK, and I want to connect via usb first (since I have some other stuff I want to try out) before going the wireless route. I know its a lot more work, but I want to learn to crawl before I can run.