building a freeduino

This is it. Build your tiny computer, and work through your first explorations of occam-π.

the build

There are two resources you'll want to make use of in building your Freeduino:

  1. The build videos. These can be found at concurrency.cc, or you can hit the playlist on YouTube directly.

  2. The build instructions. These are hosted at NKC Electronics, which is where our particular kits came from.

Everything you need to know about building your Freeduino is there.

programming your freeduino in occam-π

If you have a Mac, you can download our Mac software bundle.

If you are using Windows, you are out of luck at this time.

If you are using Linux (specifically, Ubuntu 8.04, 9.04, or 9.10), you can follow the instructions at the end of the lab to get things set up, and then continue with the instructions here.

If you are working in the lab, then I have put some things together with bailing wire that should get you moving.

Uploading Firmware

The first think you need to do is upload firmware. Plug in your Freeduino, and at the command prompt type

arduino-firmware-upload /dev/ttyUSB0

(that's a zero at the end)

Compiling Code

As you work through Plumbing for the Arduino, you'll need to compile your programs. To compile your code, run:

arduinocc <prog>.occ

where <prog> is the name of your program. Then, you need to upload the compiled program to your Freeduino:

arduino-upload /dev/ttyUSB0 <prog>.hex

That's it. If all goes well, then your desktop will begin listening for messages from the Freeduino. You can hit CTRL-C to cancel the program that is listening.

for this week

Work through the first three chapters of Plumbing for the Arduino. Take the notes that are recommended in each chapter—that is, you should actually break your code in the ways we recommend, and write up all the ways things broke. 

You should submit to the Sakai dropbox a neatly formatted Open Office document or PDF that contains your notes from these explorations. 

Creative Commons License This work is licensed under a CC BY-SA 3.0 License.