Arduino到Android –使用ADK打开和关闭LED [英] Arduino to Android – Turning an LED On and Off using ADK
问题描述
我指的是此一个>与Arduino开发板进行Android通信的示例。我正在使用带有USB屏蔽和Android手机(micromax A110(4.1.1),sony xperia P(4.0.6)和samsumg core(4.1.2))的freeduino uno板。我已经从此处下载了USB_Host_Shield_2.0。我正在编译草图并成功上传。但是,无法在freeduino uno开发板与Android手机之间建立通信。我正在尝试使用freduino uno板的PIN 13来使LED闪烁,但是它不起作用。将Android手机连接到freeduino板后,我在串行监视器上得到输出。
I am referring this example for communicating Android with Arduino board. I am having freeduino uno board with USB shield and Android phone(micromax A110 (4.1.1), sony xperia P (4.0.6) and samsumg core (4.1.2)). I have downloaded USB_Host_Shield_2.0 from here. I am compiling sketch and uploading successfully. but, unable to establish communication between freeduino uno board and Android phone. I am trying to blink LED using PIN 13 of freduino uno board but its not working. I am getting output on serial monitor after connecting Android phone to freeduino board.
ADK demo start
Waits for Android device get ready.
Waits for Android device get ready.
Waits for Android device get ready.
Waits for Android device get ready.
Waits for Android device get ready.
ADK Init
ADK Init
ADK protocol rev. 0002
swAcc:
ADK Init
getDevDescr 0D
ADK Init
getDevDescr 0D
ADK Init
getDevDescr 0D
如果我将Android Phone(v4.0.3)与freeduino板连接低于串行监视器上的错误
If I am connecting Android phone(v4.0.3) with freeduino board i am getting below error on serial monitor
Device addressed... Requesting device descriptor.
found possible device. swithcing to serial mode
device supports protocol 1 or higher
Data packet error: D
Data packet error: D
谢谢您。
推荐答案
好的,可能是几件事。对于此问题,它可能会帮助您在arduino板上按几次复位按钮,然后重试。另外,连接屏蔽时,请尝试将d7引脚连接到arduino板上的复位引脚。如果这不能解决问题,则说明您的USB防护板可能有问题,但也许其他人为您提供了更好的答案,请告诉我是否有帮助!
Okay, it could be a few things. For this problem, it might help you to press the reset button a couple of times on the arduino board, then try again. Also, when you connect the shield, try connecting pin d7 to the reset pin on the arduino board. If this doesn't solve it, then you likely have a problem with your usb shield, but maybe someone else has a better answer for you, let me know if this helps!
这篇关于Arduino到Android –使用ADK打开和关闭LED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!