iPad 和 Arduino 集成 [英] iPad and Arduino Integration

查看:30
本文介绍了iPad 和 Arduino 集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个小项目,将使用 iPad 作为信息亭供访问者浏览,其中一个要求是 iPad 需要与 Arduino(<强>与以太网屏蔽)通过局域网(或互联网)发送命令(基本上是文本)到另一台显示计算机的端口.

I have a small project which will use iPad as an information kiosk for visitors to browse and one of the requirements is that the iPad needs to communicate with Arduino (with ethernet shield) by sending commands (basically texts) through LAN (or internet) to a port of another display computer.

一直在阅读有关 iPad 应用程序开发的信息,包括 XCode、Cocoa 和 Objective-C.在我看来,在我开始开发之前,有一大堆 iPad 特有的编程内容需要熟悉.我在 LAMP 堆栈方面有几年的经验,但由于截止日期刚好超过 3 周,所以开始看起来仍然有点令人生畏.

Been reading about iPad app development including XCode, Cocoa and Objective-C. It seemed to me there's a whole bunch of programming stuff specific to the iPad to familiarize with before I can jump into development. I have a couple of years of experience in LAMP stack but still it looks a bit daunting to get started since the deadline is just well over 3 weeks.

我现在正在权衡我的选择,而不是本地应用程序,我正在收集有关使用 HTML 和 CSS(基于网络)构建应用程序的信息.所有功能都将内置到基于网络的应用程序中,iPad 充当客户端,触发基于网络的应用程序内部的功能并将命令发送到 Arduino,然后 Arduino 将依次向显示计算机发送命令.

I am now weighing my options, instead of a native app, I am gathering information on building the app using HTML and CSS (web-based). All functions would be built into a web-based app and the iPad acts as a client, triggering the function inside the web-based app and sends the command to Arduino, and the Arduino would in turn send a command to the display computer.

我想了一会儿我也许可以在显示计算机内设置一个网络服务器.让 iPad 从网络服务器打开一个基于网络的应用程序并触发调用的任何函数,应用程序中的脚本将在端口 3040 上向自身发送命令.

And I thought for a while that I might be able to setup a webserver inside the display computer. Having the iPad opens a web-based app from the webserver and triggers whatever function called and a script in the app would send a command to itself at port 3040.

现在,问题:

  1. 看到了这个黑客攻击(Yelps 2nd Hackaton- iPad Kegbot) 前几天,它使用 iPad 和 Arduino,但无法深入挖掘.有什么线索吗?
  2. 如果我要制作一个本机应用程序,要让该应用程序在至少一些个人 iPad 上可用,需要哪些步骤,因为该应用程序只能在内部使用?
  3. 是否有任何与 iPad Arduino 集成但未发布(或未被我的小型雷达检测到)的集成?
  4. 我熟悉 HTML、JS 和 CSS,但不熟悉移动 safari,有什么可以用作参考或库来加快基于网络的应用程序开发的吗?
  1. Saw this hackaton (Yelps 2nd Hackaton - The iPad Kegbot) the other day and it used iPad with Arduino but couldn't dig deeper. Any clue?
  2. If I were to make a native app, what are the steps to get the app available, to at least a few personal iPads since this app would only be used internally?
  3. Any iPad Arduino integration out there but unpublished (or undetected to my tiny radar)?
  4. I am familiar with HTML, JS and CSS but not to mobile safari, is there anything that I could use as a reference or library that I could use to speed up the web-based app development?

非常感谢!

推荐答案

请注意,如今(2015 年以上)用于 Arduino 板(Windows 或 Mac)的 IDE 确实非常易于使用.只需点击下载即可.这个极其古老的 QA 现在已经过时了.

Note that these days (2015+) the IDE for Arduino boards (both Windows or Mac) is really quite easy to use. Just click to download and away you go. This extremely old QA is rater out of date now.

要像您描述的那样完成某事",您可以使用 Corona(http://www.anscamobile.com/ 或者现在在 https://coronalabs.com )在某些情况下,如果你刚刚开始使用 iOS/Android,可以节省您的时间.

To just "get something done" as you describe, you could possibly use something like Corona ( http://www.anscamobile.com/ or perhaps nowadays at https://coronalabs.com ) In some cases if you are just getting started with iOS/Android that can save you time.

网络--------

就我个人而言,我建议您避免使用与网络相关的方法.它可能会死胡同.我建议花点时间(几天)在 iOS 设备和 Arduino 之间进行某种简单的低级通信.

Personally, I would advise you to AVOID the web-related approach. It will likely dead-end. I would advise to take the time (some days) to get some sort of simple low-level communications going between the iOS device and Arduino.

一般来说,在 iPhone 上,GameKit"(如果不出意外的话)非常容易用于联网.例如,this QA 有关于如何制作自己的协议的信息(只是一个数据结构)以及它与其他 iOS 网络概念的关系,从而可以回答您的一些基本问题.

In general terms, on the iPhone, "GameKit" (if nothing else) is ridiculously easy to use for networking. For example this QA has info about how you might make your own protocol (just a data structure) and how that relates to other iOS networking concepts, and may thus answer some basic questions you have.

回答您的另一个问题如果我要制作本机应用程序,至少要在一些个人 iPad 上使用该应用程序的步骤是什么..."如今(2015 年以上)基本上很容易你甚至不需要为多达 100 台左右的设备向 Apple 支付任何费用.您可以轻松地在 google 上搜索 1000 条 QA,而且详细信息每年都会发生变化.

In answer to your other question "If I were to make a native app, what are the steps to get the app available, to at least a few personal iPads..." These days (2015+) it's basically quite easy and you needn't even pay Apple anything for up to 100 or so devices. You can easily google 1000s of QA on this, and the details will change from year to year.

这篇关于iPad 和 Arduino 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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