“Hello World” Arduino 和 Android 教程

发布于 11-25 09:21 字数 459 浏览 2 评论 0原文

几天前,Arduino刚刚为Android开发者发布了一个“入门包”:http://arduino.cc/en/Main/ArduinoBoardADK

Arduino ADK 是一款基于 ATmega2560 的微控制器板 (数据表)。它具有 USB 主机接口,可与基于 Android 的设备连接 电话,基于 MAX3421e

我一直在一次又一次地搜索教程或其他东西,以便开始 Arduino 编程,我正在寻找非常好的教程,也许是某种“hello light”,可以让卡上的灯闪烁我的 Android 设备上有一个按钮。

您有关于该主题的一些链接、粉丝博客或其他信息吗?

我当然知道 Arduino 网站和 Android 开发人员文档,但它们太复杂了……

A few days ago, Arduino just released a "start pack" for Android developers: http://arduino.cc/en/Main/ArduinoBoardADK

The Arduino ADK is a microcontroller board based on the ATmega2560
(datasheet). It has a USB host interface to connect with Android based
phones, based on the MAX3421e

I have been searching again and again for tutorials or something in order to begin Arduino programming, and I am looking for very good tutorials, maybe some kind of "hello light" that would make a light blink on the card with a button on my Android device.

Have you got some links, fan blogs, other information about that topic?

I, of course, know the Arduino website and Android developer documentation, but they are quite over-complicated...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

帅冕2024-12-02 09:21:16

您问的是一个由两部分组成的问题:(1) 如何对 Arduino 进行编程? (2) 如何使用 Android ADK 与 Arduino 进行交互。

对于第一部分,您需要获取硬件,因为 Arduino 网站非常简单地介绍了如何开始。

Arduino 教程

对于第二部分,您必须拥有一个兼容 ADK 的 Android 设备,截至 2011 年 7 月,该设备可以是Nexus One、Nexus S 或摩托罗拉 Xoom。

如果您有这些设备之一,则需要一个可以运行 ADK 的 Arduino(请参阅您的问题)。当然,最好的文档仍然是

ADK 文档

只要意识到您将编写两个程序,一个在 Arduino 上以 C/C++ 运行,另一个在 Android 上以 Java 运行。

更新:

既然您要求博客或操作方法,MAKE 确实有一些教程,可能正是您在 Makezine。

You are asking a two part question: (1) How do I program Arduino? (2) How do I use the Android ADK to do stuff with Arduino.

For part one you're going to need to get hardware since the Arduino site is pretty straightforward about how to get started.

Arduino Tutorial

For part two you're going to have to have a ADK compatible Android device which as of July 2011 is either a Nexus One, Nexus S, or Motorola Xoom.

If you have one of these devices, you'll need an Arduino which can run the ADK (see your question). And of course the best documentation is still

ADK Documentation

Just realize that you'll be writing two programs, one that runs on the Arduino in C/C++, the other on Android in Java.

Update:

Since you were asking for blogs or how-tos, MAKE does have some tutorial which may be what you are looking for at Makezine.

救赎№2024-12-02 09:21:16

为arduino编写程序,可以在刻意简化的开发环境中使用简单的C语言命令。要为Android手机编写程序,您必须真正学习Java并学习如何使用Eclipse等复杂的开发环境。这是两种截然不同的编程技能水平。

To write programs for the arduino, you can use simple C language commands in a development environment that is deliberately simplified. To write programs for your Android phone, you must really learn Java and learn how to use a sophisticated development environment like Eclipse. These are two very different programming skill levels.

薄凉少年不暖心2024-12-02 09:21:16

你有一个arduino,你有一个android。你需要让他们沟通。我会做2个实验项目。一个项目将实现从 arduino 到 android 的通信。另一个android到arduino。一旦你建立了某种沟通技巧,你就可以按照你想要的方式对其进行修改以达到所需的效果。

You have an arduino and you have an android. You need to make them communicate. I would make 2 experiment projects. One project would have communication from the arduino to the android. The other android to the arduino. Once you have established some sort of communication technique, you can mod it how ever you want to reach the desired.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文