Things used in this project
In this project we will be looking at the 7 segment display and accelerometer from TinyCircuits. There is very little setup required and the code is quite simple.
The Inclinometer will tell us how the board is oriented in respect to gravity. Since all we have to do is stack the boards together and give them a 3.3V or 5V power source, lets look at the code used for this device.
Thanks to codebender, the code above can be downloaded to your computer or directly uploaded to your TinyDuino processor board. This program uses two specially written libraries in order to talk to the accelerometer and 7 segment shields. You can use other BMA250.h libraries, however you would have to modify the .ino file to match up with whichever library you happened to choose. The Tiny7Seg.h file is also custom made. When downloading the files below, make sure to put the .cpp and .h in a folder titled BMA250 and Tiny7Seg. For more information on downloading libraries, check the link here.
No preview (download only).
Did you replicate this project? Share it!I made one
Love this project? Think it could be improved? Tell us what you think!