Skip to content

Wrong ID message with "SparkFun 9DoF IMU Breakout - ICM-20948 (Qwiic)" and "Arduino Uno Mini" #97

@vgarciavazquez

Description

@vgarciavazquez

Hello Sparkfun ICM-20948 team

I am trying to obtain data from SparkFun 9DoF IMU Breakout - ICM-20948 (Qwiic) using Arduino Uno Mini and SPI, but I obtain the message Wrong ID.

My settings are as follows:

  • Arduino IDE version 1.8.19 with Arduino AVR Boards 1.8.5 and Sparkfun 9DoF IMU Breakout - ICM 20948 Arduino library version 1.2.9
  • Board selected in Arduino IDE: Arduino Uno Mini
  • Upload the program Example1_Basics.ino to Arduino Uno Mini after uncommenting #define USE_SPI and replacing #define CS_PIN 2 to #define CS_PIN 10
  • The connections between Arduino Uno Mini and Sparkfun 9DoF IMU Breakout as follows:

ARDUINO UNO Mini ------ SparkFun 9DoF IMU Breakout - ICM-20948
D10 (SS) ------ SPI – CS
D12 (CIPO) ------ SPI – MISO
D13 (SCK) ------ SPI – SCLK
D11 (COPI) ------ SPI – MOSI
3V3 ------ SPI – 1V8-5V5
GND ------ SPI – GND

The expected behaviour would be to obtain the IMU data but what I obtain is in the Arduino IDE Serial Monitor Tool:

Initialization of the sensor returned: Wrong ID
Trying again...
Initialization of the sensor returned: Wrong ID
Trying again.�⸮⸮'K⸮⸮⸮⸮⸮⸮�⸮⸮'K⸮⸮⸮΁⸮⸮⸮S1Нh⸮ ⸮⸮hp⸮⸮⸮⸮⸮&�

If I uncomment myICM.enableDebugging();, the output in the Arduino IDE Serial Monitor Tool:

ICM_20948::checkID: ICM_20948_check_id returned: Wrong ID
ICM_20948::startupDefault: checkID returned: Wrong ID
ICM_20948_SPI:⸮⸮⸮8⸮⸮⸮h⸮2⸮⸮⸮⸮d�⸮⸮Y⸮~]@⸮�?Æ��⸮⸮<K0⸮⸮⸮V?Þ6⸮��

I have read the issue: #24 but no idea what I am doing wrong.

Why I receive a wrong ID?
How can I test that “SparkFun 9DoF IMU Breakout - ICM-20948 (Qwiic)” is working fine and is not damaged?

Thank you so much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions