iPhone - 任何使用蓝牙与 Arduino 板通信的示例? [英] iPhone - Any examples of communicating with an Arduino board using Bluetooth?

查看:57
本文介绍了iPhone - 任何使用蓝牙与 Arduino 板通信的示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在修补 iPhone 控制的 遥控车底盘,这是基础我的机器人项目.机箱由 WiRC Wi-Fi 模块控制.它有八个输出来控制电子速度控制器和伺服系统.

I'm tinkering with an iPhone-controlled RC car chassis that is the base of my robotics project. The chassis is controlled with a WiRC Wi-Fi module. It has eight outputs to control electronic speed controllers and servos.

我想提高我的机器人使用传感器避开障碍物的能力.为此,我有一个 Arduino 板,可以与各种廉价的测距仪和接近传感器连接.我正在寻找可以使用蓝牙将 iPhone 连接到 Arduino 开发板以向开发板发送命令并从开发板接收数据的示例或演示项目.我在想什么?

I'd like to improve my robot's ability to avoid obstacles using sensors. For this purpose, I have an Arduino board which I can interface with various inexpensive rangefinders and proximity sensors. I'm looking for examples or demo projects that would connect an iPhone to an Arduino board using Bluetooth to send commands to the board and receive data from the board. Is what I'm thinking of possible?

感谢您提供指向可能使用蓝牙与 iPhone 交互的项目或硬件板的任何链接.如果其中一些开发板具有简化开发的 SDK,那就太好了.

Thank you for any links to projects or hardware boards that may interact with an iPhone using Bluetooth. It's great if some of these boards have an SDK to simplify development.

推荐答案

不幸的是,与 iOS 设备的标准蓝牙通信仅限于 MFi 程序中的设备,因此您将无法将其与 Arduino 一起使用木板.但是,较新的 iOS 设备(iPhone 4S、Retina iPad)支持的新蓝牙 4.0 LE 协议是开放的,可用于连接任何 LE 设备.

Unfortunately, standard Bluetooth communications with devices on iOS is restricted to devices within the MFi program, so you're not going to be able to use that with your Arduino board. However, the new Bluetooth 4.0 LE protocol that is supported in newer iOS devices (iPhone 4S, Retina iPad) is open and can be used to connect any LE device.

iOS 5.0 在 Core Bluetooth 中为此引入了一个新框架,我强烈建议您观看 WWDC 2012 中关于此的两个会议.他们还有关于该主题的一些示例代码.我自己一直在使用它来连接一些传感器,它适用于低带宽应用,例如温度、接近度或心率感应.

iOS 5.0 introduced a new framework for this in Core Bluetooth, and I highly recommend watching the two sessions from WWDC 2012 about this. They also have some sample code on the topic. I've been using this myself to connect to some sensors, and it works well for a low-bandwidth application like temperature, proximity, or heart rate sensing.

有几个 BT LE 模块,看起来 Michael Kroll 博士即将开始生产 Arduino 扩展板LE 通信,这使得在 Arduino 板上添加这种功能变得微不足道.

There are several BT LE modules out there, and it looks like Dr. Michael Kroll is about to start producing an Arduino shield for LE communication, which would make it trivial to add this kind of capability onto an Arduino board.

这篇关于iPhone - 任何使用蓝牙与 Arduino 板通信的示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆