In this demo, we will be building a compass using the TinyDuino, compass and Led shields.
So the boards are easy to put together, now let's look at the program running on the TinyDuino! I have many comments in the code below to help explain what's happening. The code provided below can be downloaded to your computer or directly uploaded to your TinyDuino processor board.
After your TinyDuino has been programmed you can remove the USB Shield. Each time your turn on or restart the processor, you will need to calibrate it. To calibrate, simply rotate it 360 degrees on each axis (the last image in the gallery shows exactly what to do). We now have fully functional compass that takes up less than a cubic inch of space!