H9832B 2010 05 Communication

InfoInfo
Search:    

Return to UWO History 9832B Interactive Exhibit Design Winter 2010

Communication between Computer and Arduino (3 Feb 2010)

Although the Arduino can be powered by a battery and built into a standalone exhibit, most designs involve a direct connection to a regular desktop or laptop computer. There are two basic approaches. First, you can have a program on the Arduino (written in Wiring) communicate with a program on the computer (written in Processing) via a serial connection. Since the Wiring language is basically a dialect of the Processing language, many of the commands are the same on both sides of the connection. Second, you can download a special program to the Arduino called Firmata. Once this is installed, you control the Arduino from a program on the computer. Again, we will use Processing for programming on the computer side.

In both cases, you have to understand a little bit about communications protocols.

Background Preparation and Readings

In Class

Most of you have already installed Processing. If you get a chance to download the [WWW]Firmata Arduino library to your laptop before class, please do so. In class, we will break into groups, install Firmata on our Arduinos, and then write some programs on the computers that can control Arduinos.

Other Resources

This is a Wiki Spot wiki. Wiki Spot is a 501(c)3 non-profit organization that helps communities collaborate via wikis.