1
User Projects / Code Examples / accelerometer LED G-force display
« on: August 26, 2013, 05:37:28 PM »
Hello,
I'm trying to get the LEDs on my 16 LED tinyshield to light up and display roughly how many Gs my Accelerometer tinyshield is outputing...e.g. (If the accelerometer registers 2.5 Gs in the Y plane then 6 of the 16 LEDs would light up, 1 for every .25 Gs)
I'm new to programming arduinos so any help showing what the code would look like to get this to work would be very appreciated.
I'm trying to get the LEDs on my 16 LED tinyshield to light up and display roughly how many Gs my Accelerometer tinyshield is outputing...e.g. (If the accelerometer registers 2.5 Gs in the Y plane then 6 of the 16 LEDs would light up, 1 for every .25 Gs)
I'm new to programming arduinos so any help showing what the code would look like to get this to work would be very appreciated.