Inspiration

learning about accelerometer and esduino

What it does

The esduino takes in raw data from the accelerometer. I tested what the output from the accelerometer was and compared it to the angle it was tilted to by measuring the angle with a protractor. I use

How I built it

The esduino takes in raw data from the accelerometer. I tested what the output from the accelerometer was and compared it to the angle it was tilted to by measuring the angle with a protractor. I did many measurements to varify my values and then programmed a conversion so that the esduino converts the data from the accelerometer the angle of inclination. I displayed the angle by using 9 LEDs where I only displayed this to work from angle 0 to 90 degrees. There are 2 modes the LEDs display the data. Mode 1, bar values, therefore the angle is rounded to the nearest 10degrees, so for 20degrees, 2 LEDs would light; for 90degrees, all 9 LEDs would light. Mode 2, would display an angle as binary and only uses 8LEDs, so for 90degrees it would show as 1001 0000 where 1=LED ON, 0=LED OFF.

Finally, I connected my output to serially communicate to display the data on MATLAB where the angles where being plotted on a live graph.

Built With

Share this project:

Updates