Arduino Mega ADK with USB HUB - arduino

is it possible to see data of android device when is it in accessory mode??
in my opinion what we need
1. USB hub
2. android phone(which work with accessory mode)
3. Arduino Mega ADk
4. USB cables first for android device and second for USB hub to PC
Connection
1.connect hub with Arduino ADK (where we have connect android device)
2.connect android device with hub(Via usb cable)
3.connect hub with PC(via usb cable)
all things i did but my PC is not detected Android device
any kind of suggestion will be appreciated
Thanks in advance

Your Android device will not be detected when it is connected to a Mega ADK board. The reason is that both PC and Mega ADK will act as USB Host and so only one can be connected at a time.
If you want to debug and want to see the output of logcat, then you can use ADB Wireless app.

Related

how to connect arduino and usb camera with xiaomi nano router (openwrt)?

I want to develop a similar project based on this project, but i want to use xiaomi nano router instead of TP-WR703n router.
The problem is that my router does not have an USB port to communicate with other devices (arduino mega and camera).
My solution is:
Using a CP2102 converter and a female to female USB converter to make USB port for my router.
Using USB hub to connect with arduino and camera.
Is my solution possible?
Thanks.
No, you can't make a USB port out of UART port. The CP2101 converter works the other way around - it makes a serial port out of your USB port.

Adb for arduino UNO

i am working on a distance sensing app for android using arduino and ultrasound sensor.I found code that uses Abd for communication between android and arduino. The Abd used is for Arduino mega which has many more ports as compared to arduino Uno.I searched for Adb for uno but couldn't find it can anyone help me in finding Adb for Uno.If nothelp me with mapping of I/O ports form mega to uno.
int the adb of Mega :
DDRE 0x40 refers to Port E bit 6
DDRJ 0x08 refers to Port J bit 3
DDRJ 0x04 refers to Port J bit 2
So I need to move those IO pins to pins that Uno supports within Ports A,B,C,D and change the the DDRE & DDRJ references accordingly.
For two devices to communicate through USB one of them must act as a HOST device.
When connecting Arduino to your PC, your PC is the host.
When connecting Android to your PC, your PC is the host.
When connecting Android to the USB port of Arduino Mega, Arduino is the host.
If you (somehow) connected Android to Arduino UNO's single USB, There are no host and so they can't communicate.
You can over come this limitation by buying Arduino Uno's Host Usb Shield and connect Android to that Shield.

How to communicate I2c device connected to Arduino to Windows 10 IoT Core

I have a UWP app which will display values of sensors connected to Arduino which will be connected to that UWP app. I have a I2C device connected to that Arduino. I want to communicate to that I2C device from my UWP application. But, I can't find a way to do that. Can Someone can help me with that.
There is a technology called Windows Remote Arduino that allows you to control Arduino microcontroller connected to your Windows 10 UWP App. It uses FIRMATA protocol underneath, and I believe it allows you to control I2C sensors as well. If not, you can tweak the source code, because both FIRMATA implementation and Windows Remote Arduino are open source.

ADK 2011 and Arduino shields

I have been working around ADK and the ADK board (Arduino Mega2560). I am able to communicate over USB and talk to my board and vice-versa. Now I want to try out the same thing over Wi-Fi. I see that there are many Wi-Fi shields available. My questions are:
How do I know the shields I see online will work with ADK 2011 board?
How do I connect the shield to my board?
Do I need to flash/program my ADK board and Wi-Fi shield separately?
I am not in favor of a particular ADK board. Any suggestions for another Arduino board using which I can talk to my Android phone via USB, Wi-Fi, Bluetooth, Ble, etc. with or without shields.

Android App to read data over USB

I am designing a temperature sensor which I could read the data send over USB to a Android app.
I am using Arduino Uno and a temperature sensor and I have this setup working as I can read temperature by a serial terminal on a PC, but I want the Android app to receive the readings from the Arduino. I used a Sparkfun USB Host shield but the Android with 4.0.1 cannot find the USB device.
Am I using the wrong board? Maybe I should use a Arduino ADK to get it working?
Has anyone any success with this setup?
Android USB Host + Arduino: How to communicate without rooting your Android Tablet or Phone

Resources