Page 1 of 12
H3LIS331DL Accelerometer Breakout Hookup
Guide
Introduction
The H3LIS331DL is a high-g accelerometer with I2C and SPI interface
options. It offers an adjustable output range of 100, 200, or 400g, and an
adjustable data rate of up to 1kHz.
SparkFun Triple Axis Accelerometer Breakout -
H3LIS331DL
SE N-1448 0
…
Required Materials
Page 2 of 12
Please check the wish list below for items required to follow this tutorial.
H3LIS331DL Hookup Guide
SparkFun Wish List
SparkFun Triple Axis Accelerometer Breakout - H3LIS331DL
SEN-14480
Arduino Pro 328 - 3.3V/8MHz
DEV-10914
It's blue! It's skinny! It's the Arduino Pro! SparkFun's minimal design a…
Arduino Stackable Header Kit
PRT-10007
These headers are made to work with the Arduino Main Board, Ardui…
Breadboard - Mini Modular (Green)
PRT-12046
This green Mini Breadboard is a great way to prototype your small pro…
USB micro-B Cable - 6 Foot
CAB-10215
USB 2.0 type A to micro USB 5-pin. This is a new, smaller connector f…
SparkFun Beefy 3 - FTDI Basic Breakout
DEV-13746
This is SparkFun Beefy 3 FTDI Basic Breakout for the FTDI FT231X…
Break Away Headers - Straight
PRT-00116
A row of headers - break to fit. 40 pins that can be cut to any size. Us…
Jumper Wires Premium 6" M/M Pack of 10
PRT-08431
This is a SparkFun exclusive! These are 155mm long jumpers with m…
Tools
No special tools are required to follow this tutorial. You will need a soldering
iron, solder, and general soldering accessories.
Soldering Iron - 30W (US,
110V)
TOL- 09507
Solder Lead Free - 15-gram
Tube
TOL- 09163
Suggested Reading
We suggest reviewing the tutorials below to ensure that you’re up-to-date
with all of the skills necessary to follow this hookup guide.
Page 3 of 12
How to Solder: Through-
Hole Soldering
This tutorial covers everything you
need to know about through-hole
soldering.
Installing an Arduino Library
How do I install a custom Arduino
library? It's easy!
Serial Peripheral Interface
(SPI)
SPI is commonly used to connect
microcontrollers to peripherals such
as sensors, shift registers, and SD
cards.
Logic Levels
Learn the difference between 3.3V
and 5V devices and logic levels.
I2C
An introduction to I2C, one of the
main embedded communications
protocols in use today.
Hardware Overview
The H3LIS331DL breakout is fairly simple.
H3LIS331DL Sensor IC
- This is the sensor IC. Its operating voltage only
extends up to
3.6V,
so to use it with a 5V Arduino or Arduino clone, you’ll
need some kind of voltage translation! It is perfectly centered on the PCB.
Page 4 of 12
I
2
C Pull-up Resistors
- The board includes pull-up resistor so you don’t
need to add them externally.
I
2
C Pull-up Resistor Isolation Jumper
- If necessary, the I
2
C pull-up
resistors can be removed from the circuit by removing the solder from this
jumper.
SparkFun Standard I
2
C Header
- Most boards which can be
communicated to via I
2
C use this pinout, making it easy to stack them or
connect them in a daisy chain.
SA0 Jumper
- Closing this jumper changes the I
2
C address of the sensor
from 0x19 to 0x18.
Page 5 of 12
CS Jumper
- Removing the solder from this jumper enables SPI mode.
When the part’s CS line is low at boot, it enables SPI mode.
SA0 Pin
- When the chip is in SPI mode, this goes from being the address
select pin to being the MISO pin.
CS Pin
- Chip select for SPI mode. Unused in I
2
C mode.
Interrupt Pins
- These pins are tied to interrupts that can be setup by the
software library to trigger on various conditions.