SparkFun will be closed Friday 7/3/2020 for the 4th of July holiday. All orders placed after 2 pm MT on Thursday 7/2/2020 will be shipped out on Monday 7/6/2020. SparkFun Support will also resume on Monday 7/6/2020. Have a safe holiday!

SparkFun 9DoF IMU Breakout - ICM-20948 (Qwiic)

The SparkFun 9DoF IMU Breakout incorporates all the amazing features of Invensense's ICM-20948 into a Qwiic-enabled breakout board complete with a logic shifter and broken out GPIO pins for all your motion sensing needs. The ICM-20948 itself is an extremely low powered, I2C and SPI enabled 9-axis motion tracking device that is ideally suited for smartphones, tablets, wearable sensors, and IoT applications. Utilizing our handy Qwiic system, no soldering is required to connect it to the rest of your system. However, we still have broken out 0.1"-spaced pins in case you prefer to use a breadboard.

In addition to the 3-Axis Gyroscope with four selectable ranges, 3-Axis Accelerometer, again with four selectable ranges, and 3-axis magnetometer with an FSR to ±4900µT, the ICM-20948 also includes a Digital Motion Processor that offloads the computation of motion sensing algorithms from the detectors, allowing optimal performance of the sensors. We've also broken out all the ICM-20948 pin functionality to GPIO and labeled them I2C on the front, SPI on the back for ease of identification.

The SparkFun Qwiic Connect System is an ecosystem of I2C sensors, actuators, shields and cables that make prototyping faster and less prone to error. All Qwiic-enabled boards use a common 1mm pitch, 4-pin JST connector. This reduces the amount of required PCB space, and polarized connections mean you can’t hook it up wrong.

  • 1.95 V to 3.6 V supply voltage
  • Triple-axis MEMS gyroscope with user-programmable full-scale range of ±250 dps, ±500 dps, ±1000 dps, and ±2000 dps
  • Triple-axis MEMS accelerometer with programmable full scale range of ±2g, ±4g, ±8g, and ±16g
  • Triple-axis silicon monolithic Hall-effect magnetic sensor with full scale measurement range to ±4900 µT
  • I2C at up to 100 kHz (standard-mode) or up to 400 kHz (fast-mode) or SPI at up to 7 MHz for communication with registers
  • On-board digital motion processor (DMP)
  • Digital-output temperature sensor
  • 2x Qwiic Connection Ports
  • I2C Address: 0x69 (0x68 with Jumper)

SparkFun 9DoF IMU Breakout - ICM-20948 (Qwiic) Product Help and Resources

SparkFun 9DoF IMU (ICM-20948) Breakout Hookup Guide

June 27, 2019

How to use the SparkFun 9DoF ICM-20948 breakout board for your motion sensing projects. This breakout is ideal for wearable sensors and IoT applications.

Core Skill: Programming

If a board needs code or communicates somehow, you're going to need to know how to program or interface with it. The programming skill is all about communication and code.

2 Programming

Skill Level: Rookie - You will need a better fundamental understand of what code is, and how it works. You will be using beginner-level software and development tools like Arduino. You will be dealing directly with code, but numerous examples and libraries are available. Sensors or shields will communicate with serial or TTL.
See all skill levels

Core Skill: Electrical Prototyping

If it requires power, you need to know how much, what all the pins do, and how to hook it up. You may need to reference datasheets, schematics, and know the ins and outs of electronics.

2 Electrical Prototyping

Skill Level: Rookie - You may be required to know a bit more about the component, such as orientation, or how to hook it up, in addition to power requirements. You will need to understand polarized components.
See all skill levels


Looking for answers to technical questions?

We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.

  • Does this contain unfiltered Acclerometer and Magnetometer data?

    • Yes, you can access the raw readings from the device with or without filtering depending on how you configure the sensor.

  • How could this be used to control a computer mouse, or for gesture based input commands?

    • You can also check out this blog post. It uses a different microcontroller and IMU, but the principle is the same.

    • To control a mouse I would recommend using the ICM with a Teensy - they have a good HID USB library that includes mouse examples. Then you can use the ICM data to informt he mouse movements

      Depending on what you want from gesture commands and how much effort you want to put into this you might be able to adapt the 'magic wand' example from TensorFlow for your own platform and to use data from the ICM.

  • Not sure if this was a conscious decision or not, but it looks like you guys have routed a couple of traces underneath the ICM-20948 package on this breakout board. The manufacturing recommendations posted by Invensense advise against putting any traces our vias directly underneath the die package for this chip. I'm guessing it affects the calibration of the magnetometers.

  • Is it possible to collect the quaternions or euler angles from the device? Or will the sensor values have to be fused after collecting the data? The example code only appears to only output calibrated and non-calibrated sensor accel, gyro, and mag data.

    • It should be possible to get pre-computed quaternions (and perhaps euler angles but I haven't seen as much reference to this) using the Digital Motion Processor feature of the ICM-20948. Unfortunately the license agreement for Invensense software is strict enough that we cannot share DMP code or derivative works. What you may do, however, is to agree to the license yourself and use sample code available at the Invensense Developer's Corner. There you will find a lot more example code that may be of use.

  • Does the board need to be calibrated? Does it have less drift than less sophisticated gyros? The example code is useful but doesn't really touch on these practical aspects.

Customer Reviews

3.7 out of 5

Based on 3 ratings:

Currently viewing all customer reviews.

2 of 4 found this helpful:

Absolutely Worthless

This works worse than the Ebay 6050 Gyroscope for $5. The x,y,z data have massive spikes even though the unit is at rest. I researched this and Sprkfun has no solution. Ill try to return it but do yourself a favor and do not purchase this.

Sorry to hear you're having trouble! Please contact our technical assistance team for help resolving your issue.

Works Well

I bought two of these and they both work really well. I'm using the gyroscope to control a mouse and am impressed with the accuracy from the chip. I did had an issue combining this board with another I2C device when using the basic example. Switching to the advanced example (which included additional configuration) resolved this issue. The qwiic connect ports make this an easy device to prototype with.

Great breakout board of a great IMU

I bought three of these for a project and they all perform nicely. The datasheet provides information for basic operation; initializing, calibration and settings, reading sensor data etc. Wasn't able to get the DMP working, however. InvenSense doesn't provide information on the DMP to just anyone I guess. Very capable little device and easy to hook up with the Qwiic connectors. Thanks!