Last week, I started work on a code repository for our smoker.
It’s available on github under my profile: http://github.com/justone/arduino-smoker. We may find a more official place for it, but it’ll always be available there.
There are two directories in the root, one for the Arduino code that will power the smoker and one for the code that we’ll use to control it. The Arduino directory also contains the two libraries our code depends on: ProtoThreads and the PID library.
The initial Arduino sketch implements a simple LED blinker that can be controlled over the serial connection. It starts off blinking the led every second and you can set the delay by sending a setDelay command (like “setDelay 4″). It also reports the current delay every ten seconds. It’s not much, but it does demonstrate using ProtoThreads to handle more than one process at a time. It also implements serial command parsing, with heavy inspiration (and code) from this todbot post.
Next up, more hardware assembly and integrating the PID library.