浅谈arduino与android通信
2016-05-29 16:15
405 查看
以前在百度空间写的文章,现在百度空间关闭了,搬到这里吧,做个笔记吧。
arduino与android通信一般使用wifi和蓝牙模块,相对较为便宜。
也可以使用USB Host Shield,这个可使Arduino非常方便的与一个USB从设备通讯,例如USB键盘、鼠、摇杆、U盘数据读取、相机、蓝牙、USB GPS接收器、安卓系统手机等等。使用USB Host Shield配合Arduino还可以实现与Google ADK通信的功能。个人感觉这个模块稍微有点贵,而且与android通信需要学会ADK,这个较难。
还有通过音频接口与android手机进行通信的,就像拉卡拉刷卡器一样,具体网址http://www.demohour.com/projects/316599/
据说这个项目以后要开源,会提供相关的开发包。不过硬件还是要收费的,要59元。
![](https://img-blog.csdn.net/20160529161542257?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
还有一种方式,这种就相对便宜了,使用的是android串口编程的,按照原理来讲是可以支持android3.1以上的手机的,不过还是要看设备支持的情况,每个手机厂商都会有自己的改动的。
这是项目地址http://code.google.com/p/usb-serial-for-android/
适用设备
Serial chips: FT232R, CDC/ACM (eg Arduino Uno) and possibly others. See
CompatibleSerialDevices
Android phones and tablets: Nexus 7, Motorola Xoom, and many others. See
CompatibleAndroidDevices.
这是我随意杜撰的一张图片,因为我的手机是android 2.3.5的,不能为大家测试了,有条件的可以自己去试,项目中都有arduino和android的代码。
arduino与android通信一般使用wifi和蓝牙模块,相对较为便宜。
也可以使用USB Host Shield,这个可使Arduino非常方便的与一个USB从设备通讯,例如USB键盘、鼠、摇杆、U盘数据读取、相机、蓝牙、USB GPS接收器、安卓系统手机等等。使用USB Host Shield配合Arduino还可以实现与Google ADK通信的功能。个人感觉这个模块稍微有点贵,而且与android通信需要学会ADK,这个较难。
还有通过音频接口与android手机进行通信的,就像拉卡拉刷卡器一样,具体网址http://www.demohour.com/projects/316599/
据说这个项目以后要开源,会提供相关的开发包。不过硬件还是要收费的,要59元。
还有一种方式,这种就相对便宜了,使用的是android串口编程的,按照原理来讲是可以支持android3.1以上的手机的,不过还是要看设备支持的情况,每个手机厂商都会有自己的改动的。
这是项目地址http://code.google.com/p/usb-serial-for-android/
适用设备
Serial chips: FT232R, CDC/ACM (eg Arduino Uno) and possibly others. See
CompatibleSerialDevices
Android phones and tablets: Nexus 7, Motorola Xoom, and many others. See
CompatibleAndroidDevices.
这是我随意杜撰的一张图片,因为我的手机是android 2.3.5的,不能为大家测试了,有条件的可以自己去试,项目中都有arduino和android的代码。
相关文章推荐
- arduino 大小端数据问题
- Introduction of Algorithm - Divide and Conquer(分治法)
- SGU-181 X-Sequence
- iOS AutoLayout: 关联 Xib 和 UIViewController
- X-Sequence
- 【Android UI】图片 + 文字展示by SpannableStringBuilder
- iOS开发中的UDID和UUID详解
- hadoop key和value 分隔符号设置
- windows GUI开发00 - 前言
- Repeated DNA Sequences
- 8.RequestHandler的分析---handler是如何工作的
- QuickHit项目(输出字符串游戏)
- 非fastcgi模式实现fastCGI模式的fastcgi_finish_request()
- “Rescue(营救),ZOJ1649”的一种解法和疑惑
- QuickHit游戏
- 第五章项目:QuickHit
- UIKit框架之—— UIButton
- build.version_codes.m 找不到
- FreeRTOS内核详解----Queue
- Build caffe fails on Ubuntu 16.04 (‘memcpy’ was not declared in this scope)