Cduino project -- new project for C/make arduino programming

Hello arduinists,

I've put together a project which aims to make it easy to program arduinos using straight C and make (and AVR libc, avrdude and avr-gcc).

Right now it includes modules to blink the LED and talk on the serial port, but hopefully more to come...

Check it out:

http://brittonkerin.com/cduino/

Britton

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.

Interesting. I can see the point in ditching the IDE. But what is to be gained from avoiding wiring? Then you can't leverage the communitywhich seems likea great arduino advantage.

maniacbug:

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.

Interesting. I can see the point in ditching the IDE. But what is to be gained from avoiding wiring? Then you can't leverage the communitywhich seems likea great arduino advantage.

Its a lot to trade off admittedly. Wiring/C++ just make me feel like I don't
quite know whats going on on the chip which is sad for microcontrollers
since a lot of the glory of them is you have a fighting chance to know
everything that's happening. Of course this is probably more me not knowing
wiring/C++ that those systems intrinsicly hiding more than one might wish
for microcontrollers, but I think its at least a bit of both.

My plan is to shameless grab chunk of arduino libraries as I go, study them
and do the minimal changes to port to C.

If you only desire to avoid the IDE, there are a couple projects out
there that already do that, one is here:

http://www.arduino.cc/en/uploads/Hacking/Makefile

I'm not sure that is the most recent though, there are at least two that
have their own web pages, and I think some arduino site or forum links to
them but I couldn't find them again easily.

Britton

I've been using makefiles for some time, I only revert to the IDE if I'm posting code to make sure it compiles in that environment.

I still include all the normal Arduino files though, they are useful and you can still work "native" when it's required.


Rob

Hello arduinists,

Another version of cduino is now available. Include one file, call one function, run 'make -R run_screen' and you're talking over serial to your arduino using C and make rather than wiring and Java.

Check it out:

http://brittonkerin.com/cduino/

Britton

Another new version of cduino is now available from http://brittonkerin.com/cduino/.

This release adds a lesson showing how to use the watchdog timer in basic reset-on-timeout
mode (and describes some problems that the arduino bootloader can cause when using the
watchdog timer).

Enjoy.