Here’s a how-to for setting up the Arduino software to start coding for LilyPad projects. This is taken from a LilyPad Arduino project I created; I thought it might be useful to have this software guide as a separate post from the projects.
This guide is for Mac OS X, but should give a general intro for Windows & Linux too.
This project is to create a bedside light that can switched on or off by moving a book. It uses an accelerometer sewn into the book to measure the book’s movement.
When the book lies flat, the LED lights are off. When the book is tipped up above a 20 degree angle in any direction, the lights fade up to full. To keep the lights on, stand the book upright, or prop up on an angle. To turn the lights off, lie the book flat.