sparkfun H3LIS331DL Breakout Hookup Manual page 12

Accelerometer
Table of Contents

Advertisement

ters the
Serial.println(xl.convertToG(100,z)); // raw value and th
e current
Serial.println(" ");
}
if (digitalRead(9) == HIGH)
{
Serial.println("Interrupt");
}
}
After placing the code into the Arduino IDE, select the board definition and
COM port to upload. Once compiled, check out the sensor readings by
opening up a serial monitor set to 115200 baud.
Resources and Going Further
Now that you've successfully got your H3LIS331DL up and running, it's
time to incorporate it into your own project!
• For lower dynamic ranges (6-24g) SparkFun offers the LIS331
breakout board, which is library compatible with this one.
For more information, check out the resources below:
• Schematic
• Eagle Files (ZIP)
• H3LIS331DL Datasheet (PDF)
• Product Showcase Video
◦ ShawnHymel's H3LIS331_Ball_Demo.ino - Code used for the
Produce Showcase Demo.
• GitHub Repo
• Arduino Library Code Repo
Need some inspiration for your next project? Check out some of these
related tutorials:
VL6180 Hookup Guide
Get started with your VL6180 based
sensor or the VL6180 breakout
board.
LSM6DS3 Breakout Hookup
Guide
A hookup guide for the LSM6DS3,
which features a 3-axis
accelerometer, 3-axis gyroscope,
and FIFO buffer.
https://learn.sparkfun.com/tutorials/h3lis331dl-accelerometer-breakout-hookup-guide?_g...
// maximum g­rating.
RedBoard Santa Trap
A fun holiday project to try for
anyone looking to catch Santa on
Christmas!
LSM303C 6DoF Hookup Guide
A basic guide to get started with the
LSM303C 6 Degrees of Freedom
Breakout.
Page 12 of 12
12/28/2017

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the H3LIS331DL and is the answer not in the manual?

Questions and answers

Table of Contents