This is an old revision of the document!
Lab. 07 Accelerometer
Wiring
You can connect the accelerometer either by SPI or I2C.
The easiest way will be the I2C connection. SDA and SCL pins go to the respective ones on the board, GND to Ground and VCC to 3.3V.
Streams usage
Add in Streams the visual node where you will take and return in the payload the acceleration on one of the axis.
Exercises
After you wired correctly and understood how the sensor works, start solving the following exercises,
For each axis, show the value of the acceleration on the LCD
Find the angle of inclination. You have to move the sensor on a single angle and apply the formula to find the angle.
angle=arcsin(A/g) , where A is the measured acceleration, g Earth gravity vector.
Connect an LED to the Edison. Put the sensor on the desk and hit the desk. The sensor will register the vibrations from the collision and light up the LED.
Identify the movement frequency on one of the axis using fft .