Cduino: Arduino Programming with C and Make

Why Cduino?

Annotated Hardware Schematics

Download

Manual

Lessons

Mailing List

Contributing

Quick Start

First, set up the prerequisite hardward and software. Then unpack the distribution and try the following from the top level directory:

make -R -C blink writeflash

If the make command fails, be sure to read the hints just above the failure message...

Now your arduino's LED should be blinking.

Talking to the arduino over the serial port takes only two function calls from the term_io module:

make -R -C term_io writeflash
# Wait a few seconds for the AVR to finish rebooting...
make -R -C term_io run_screen
# Maybe hit return a few times

Latest News

  • New module providing a simple interface to an HD44780 LCD
  • New module providing macros which simplifify digital IO pin initialization and control
  • Support for building C++ sources. This project is still all in C, but if anyone wants to use it from C++ it should be easier. These features also make it a lot easier to borrow code from the Arduino libraries :)

Abstract

This package contains:

  • 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.)
In other words, its a lots like the excellent arduino project and uses the same open hardware, but avoids the new wiring language, the C++ intermediate layer, and the Java-based IDE. Crusy old (and young) Unix/C programmers rejoice!

Features

Bugs and Feature Requests

Please send these to the mailing list.

Good luck!