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,

  1. For each axis, show the value of the acceleration on the LCD
  2. 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.
  3. 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.
  4. Identify the movement frequency on one of the axis using fft .
iot/labs/07.1435321887.txt.gz ยท Last modified: 2015/06/26 15:31 by madalina.tanea
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0