MinIMU-9 V5 Gyro, Accelerometer, and Compass (LSM6DS33 and LIS3MDL)
The Pololu MinIMU-9 v5 is an inertial measurement unit (IMU) that packs an LSM6DS33 3-axis gyro and 3-axis accelerometer and an LIS3MDL 3-axis magnetometer onto a tiny 0.8″ × 0.5″ board. An I²C interface accesses nine independent rotation, acceleration, and magnetic measurements that can be used to calculate the sensor’s absolute orientation. The MinIMU-9 v5 board includes a voltage regulator and a level-shifting circuit that allow operation from 2.5 to 5.5 V, and the 0.1″ pin spacing makes it easy to use with standard solderless breadboards and 0.1″ perfboards.
The Pololu MinIMU-9 v5 is a compact (0.8″ × 0.5″) board that combines ST’s LSM6DS33 3-axis gyroscope and 3-axis accelerometer and LIS3MDL 3-axis magnetometer to form an inertial measurement unit (IMU); we therefore recommend careful reading of the LSM6DS33 datasheet and LIS3MDL datasheet before using this product. These sensors are great ICs, but their small packages make them difficult for the typical student or hobbyist to use. They also operate at voltages below 3.6 V, which can make interfacing difficult for microcontrollers operating at 5 V. The MinIMU-9 v5 addresses these issues by incorporating additional electronics, including a voltage regulator and a level-shifting circuit, while keeping the overall size as compact as possible. The board ships fully populated with its SMD components, including the LSM6DS33 and LIS3MDL, as shown in the product picture.
Compared to the previous MinIMU-9 v3, the v5 version uses newer MEMS sensors that provide some increases in accuracy (lower noise and zero-rate offsets). The MinIMU-9 v5 is pin-compatible with the MinIMU-9 v3, but because it uses different sensor chips, software written for older IMU versions will need to be changed to work with the v5.
The LSM6DS33 and LIS3MDL have many configurable options, including dynamically selectable sensitivities for the gyro, accelerometer, and magnetometer. Each sensor also has a choice of output data rates. The two ICs can be accessed through a shared I²C/TWI interface, allowing the sensors to be addressed individually via a single clock line and a single data line. Additionally, a slave address configuration pin allows users to change the sensors’ I²C addresses and have two MinIMUs connected on the same I²C bus. (For additional information, see the I²C Communication section below.)
The nine independent rotation, acceleration, and magnetic readings (sometimes called 9DOF) provide all the data needed to make an attitude and heading reference system (AHRS). With an appropriate algorithm, a microcontroller or computer can use the data to calculate the orientation of the MinIMU board. The gyro can be used to very accurately track rotation on a short timescale, while the accelerometer and compass can help compensate for gyro drift over time by providing an absolute frame of reference. The respective axes of the two chips are aligned on the board to facilitate these sensor fusion calculations.
The carrier board includes a low-dropout linear voltage regulator that provides the 3.3 V required by the LSM6DS33 and LIS3MDL, allowing the module to be powered from a single 2.5 V to 5.5 V supply. The regulator output is available on the VDD pin and can supply almost 150 mA to external devices. The breakout board also includes a circuit that shifts the I²C clock and data lines to the same logic voltage level as the supplied VIN, making it simple to interface the board with 5 V systems.
- Dimensions: 0.8″ × 0.5″ × 0.1″ (20 mm × 13 mm × 3 mm)
- Weight without header pins: 0.7 g (0.02 oz)
- Operating voltage: 2.5 V to 5.5 V
- Supply current: 5 mA
Output format (I²C):
- Gyro: one 16-bit reading per axis
- Accelerometer: one 16-bit reading per axis
- Magnetometer: one 16-bit reading per axis
- Gyro: ±125, ±245, ±500, ±1000, or ±2000°/s
- Accelerometer: ±2, ±4, ±8, or ±16 g
- Magnetometer: ±4, ±8, ±12, or ±16 gauss
Using the MinIMU-9 v5
A minimum of four connections is necessary to use the MinIMU-9 v5: VIN, GND, SCL, and SDA. VIN should be connected to a 2.5 V to 5.5 V source, GND to 0 volts, and SCL and SDA should be connected to an I²C bus operating at the same logic level as VIN. (Alternatively, if you are using the board with a 3.3 V system, you can leave VIN disconnected and bypass the built-in regulator by connecting 3.3 V directly to VDD.)
PIN Description SCL Level-shifted I²C clock line: HIGH is VIN, LOW is 0 V SDA Level-shifted I²C data line: HIGH is VIN, LOW is 0 V GND The ground (0 V) connection for your power supply. Your I²C control source must also share a common ground with this board. VIN This is the main 2.5 V to 5.5 V power supply connection. The SCL and SDA level shifters pull the I²C bus high bits up to this level. VDD 3.3 V regulator output or low-voltage logic power supply, depending on VIN. When VIN is supplied and greater than 3.3 V, VDD is a regulated 3.3 V output that can supply up to approximately 150 mA to external components. Alternatively, when interfacing with a 2.5 V to 3.3 V system, VIN can be left disconnected and power can be supplied directly to VDD. SA0 3.3V-logic-level input to determine I²C slave addresses of the two ICs (see below). It is pulled high by default through 10 kΩ resistor. This pin is not level-shifted and is not 5V-tolerant.
The LSM6DS33’s gyro and accelerometer and the LIS3MDL’s magnetometer can be queried and configured through the I²C bus. Each of the three sensors acts as a slave device on the same I²C bus (i.e. their clock and data lines are tied together to ease communication). Additionally, level shifters on the I²C clock (SCL) and data lines (SDA) enable I²C communication with microcontrollers operating at the same voltage as VIN (2.5 V to 5.5 V). A detailed explanation of the protocols used by each device can be found in the LSM6DS33 datasheet and the LIS3MDL datasheet.
The LSM6DS33 and LIS3MDL each have separate slave addresses on the I²C bus. The board connects the slave address select pins (SA0 or SA1) of the two ICs together and pulls them both to VDD through a 10 kΩ resistor. You can drive the pin labeled SA0 low to change the slave address. This allows you to have two MinIMUs (or a MinIMU v5 and an AltIMU v5) connected on the same I²C bus. The following table shows the slave addresses of the sensors:
|Sensor||Slave Address (default)||Slave Address (SA0 driven low)|
|LSM6DS33 (gyro and accelerometer)||1101011b||1101010b|
Both chips on the MinIMU-9 v5 are compliant with fast mode (400 kHz) I²C standards as well as with the normal mode.
We have written a basic LSM6DS33 Arduino library and LIS3MDL Arduino library that make it easy to interface the MinIMU-9 v5 with an Arduino or Arduino-compatible board. They also make it simple to configure the sensors and read the raw gyro, accelerometer, and magnetometer data.
The datasheets provide all the information you need to use the sensors on the MinIMU-9 v5, but picking out the important details can take some time. Here are some pointers for communicating with and configuring the LSM6DS33 and LIS3MDL that we hope will get you up and running a little bit faster:
- The gyro, accelerometer, and magnetometer are all in power-down mode by default. You have to turn them on by setting the correct configuration registers.
- You can read or write multiple registers in the LIS3MDL with a single I²C command by asserting the most significant bit of the register address to enable address auto-increment.
- The register address in the LSM6DS33 automatically increments during a multiple byte access, allowing you to read or write multiple registers in a single I²C command. Unlike how some other ST sensors work, the auto-increment is enabled by default; you can turn it off with the IF_INC field in the CTRL3_C register.
- In addition to the datasheets, ST provides application notes for the LSM6DS33 (1MB pdf) and LIS3MDL (598k pdf) containing additional information and hints about using them.
MinIMU-9 V5 Gyro, Accelerometer, and Compass (LSM6DS33 and LIS3MDL)
- Manufacturer: Pololu
- Product Code: MINIMU-9-V5
- Availability: 8
- Ex Tax: £10.50