First, set up the prerequisite hardward
and software. Then unpack the distribution and try the following
from the top level directory:
If the make command fails, be sure to read the hints just above the
Now your Arduino's LED should be blinking.
Talking to the Arduino over the serial port takes only two function
calls from the
make -rR -C blink writeflash
make -rR -C term_io writeflash
# Wait a few seconds for the AVR to finish rebooting...
make -rR -C term_io run_screen
# Maybe hit return a few times
This package contains:
In other words, it's a lot like the excellent Arduino project and uses the same
open hardware, but avoids the wiring language, C++ intermediate layer,
and Java-based IDE. It gives more precise specification and control of
what's going on. Crusy old (and young) Unix/C programmers rejoice!
- a Makefile setup for programming an Arduino (or other
Atmel ATMega chip) using unix command line tools
- a library of simple modules to do various interesting things
with an ATMega (blink a LED, talk over a serial line, drive simple
LCD display, etc.)
- Supports programming using the Arduino bootloader or in-system
programming using AVRISPmkII programmer
- Modules are designed to look as independent as possible: doing
cp --recursive --dereference some_module ~/new_project
yields a minimal stand-alone project.
- Leverages all the convenient power options (USB or external)
and communication circuitry (Serial to USB) of the Arduino hardware
platform, but provides a convenient migration path to programming
for simpler hardware.
- Cross-linked, code-based API
documentation, with demo/test drivers for almost all
functionality in every interface.
- Extensive comments. Assumes that you may want to be able to
determine exactly what is going on, and why.
- Tries to be pedantic with info and error messages so new
Arduino users can learn its tricks easily.
Modules providing logging from a 1-wire master
to a listening slave
Useful for getting messages out of an Arduino or ATMega at the far
end of a 1-wire line, with the remote initiating communication.
Additions to dio.h to
allow control of pin change interrupts in a pin-generic and modal
- New software implementation of Maxsim one-wire slave protocol:
. Actually Maxim doesn't publish this, so I reverse-engineer :)
Now you can make your own slaves using Arduinos (or naked ATMega
chips clocked at 10 MHz or more).
- Support for using multiple AVRISPmkII programmers
simultaneously. See the definition of AVRISPMKII_PORT in generic.mk
in the top-level project directory.
New modules for using timer1 as a simple stopwatch. Timer1 is a 16
bit timer, so there is no need to use interrupts in any way to
measure shortish chunks of time.
- New software implementation of Maxsim one-wire master protocol:
- New build system support for creating a random 64 bit device ID
and loading it into the AVR EEPROM. See the new_random_id target
in generic.mk in the top-level project directory and the random_id_test.c
- Numerous improvements and fixes to wireless_xbee.h
, including SLEEP_RQ and RESET support.
- New module for ST Microelectronics LIS331HH accelerometer (and
sibling devices): accelerometer.h.
New module for Maxstream XBee Series 1 wireless modules:
New module for DC motor control use the Arduino Motor Shield:
New module for SD card control via SPI:
New module for SPI bus (hardware master-mode only):
New tupple macros for cleaner encapsulation of IO pin choices in
New module for using Timer/Counter0 hardware as an interrupt-driven
Fixed port device and baud rate autodetction to work with linux
kernel 2.6 behavior. Unfortunately this means that autodetection
doesn't work with earlier kernels anymore. But it's easy to set
the values directly if necessary.
Works with Aruino Uno now, hopefully. We try to magically guesses
avrdude port and baud rate requirements for Uno vs. Duemilanove
Arduinos now (so should work with both).
New module for the DFRobot DFR0009 LCD and Keypad shield:
API and source documentation.
New module for HD44780 compatible LCDs:
New module for simplified digital IO pin initialization and
Support for building C++ sources. This project is still all in C,
but if anyone wants to use it with C++ it should be easier. This
also make it a lot easier to borrow code from the Arduino libraries
Bugs and Feature Requests
Please send these to the mailing list.