问题描述
我用iPhone控制的底盘这是基本的修修补补我的机器人项目。底盘控制与 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,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中引入了蓝牙核心为这个新的框架,我强烈建议看从2012年WWDC这个两会。他们也有<一个href=\"https://developer.apple.com/library/ios/#sample$c$c/TemperatureSensor/Introduction/Intro.html\">some在话题示例code 。我一直在使用这个自己连接到一些传感器,它可以很好地用于如温度,接近或心脏速率检测低带宽的应用程序。
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模块在那里,它看起来像迈克尔·克罗尔博士即将开始生产的,这将使它琐碎具备这种能力的添加到一个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板通信的任何例子吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!