This sketch is missing a short description
This Arduino sketch is a demo of the simple side of the
SFE_LSM9DS0 library. It'll demo the following:
- How to create a LSM9DS0 object, using a constructor (global variables section).
- How to use the begin() function of the LSM9DS0 class.
- How to read the gyroscope, accelerometer, and magnetometer
- using the readGryo(), readAccel(), readMag() functions and the gx, gy, gz, ax, ay, az, mx, my, and mz variables.
- How to calculate actual acceleration, rotation speed, magnetic field strength using the calcAccel(), calcGyro() and calcMag() functions.
- How to use the data from the LSM9DS0 to calculate orientation and heading.
Embed This Sketch
Use the following HTML code to embed the sketch code above in your blog or website.
<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:65163" frameborder="0"></iframe>
Embed The Serial Monitor
You can also embed the Serial Monitor section! Just use this HTML code.
<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>