eldamar.org.uk

/

hacking

Arduino

If you're reading this, you probably know what Arduino is. If not, look on the website.

I wanted to have a nice way of building Arduino projects on the command line (I don't like IDEs and I steer clear of anything with the word “Java” in it). Eventually, I came up with two makefiles. The first builds a library and a header file (based on code in the IDE tarball) that you can include in your Arduino programs. The second is a template makefile for programs that use this library and header which lets you build your program and upload it to your board.

For more information, look inside the makefiles. Tested on FreeBSD with avr-gcc, avr-binutils, avr-libc, and avrdude from ports, with an ATmega328p-based Arduino Duemilanove. If your set-up differs, you will need to edit some variables in the makefiles. Even then, it may well not work for you. :-)

I'm sure this is missing features that it ought to have. I might get around to updating these makefiles once I become more familiar with the Arduino platform.

paneld

paneld is a daemon which runs on a WRAP board running OpenBSD. It controls the three LEDs on the front panel, and allows you to make the microswitch do something useful. As such, it will interest only a very small number of people! It doesn't even compile on anything other than OpenBSD, as far as I know, since it uses OpenBSD's very clean (as always) GPIO framework, which doesn't, unfortunately, seem to exist on other platforms.

WRAP board are now EOL, so at some point, I will get around to making this work on ALiX boards...

There are currently three versions of it, although I have no idea why anyone would want anything other than the latest. Version 0.4 should appear in the near future.

I would be interested to hear if anyone finds this useful!