I’m trying to get measurements from the “SparkFun 9DoF IMU Breakout - ISM330DHCX, MMC5983MA (Qwiic)” using the “example1_basic” code (link), but nothing appears in the serial monitor.
I connected the “SparkFun 9DoF IMU Breakout - ISM330DHCX, MMC5983MA (Qwiic)” to the “SparkFun Thing Plus - ESP32 WROOM (USB-C)” using a flexible Qwiic cable, and the board is connected to my laptop via a USB-C cable. The power LEDs on both the IMU and the board are on.
So, something did in fact appear on the serial monitor. That is very important information.
The next step is to run the Arduino I2C address scanner program, to verify I2C communications. It should detect and report the I2C addresses of all connected I2C devices. You can double check that for correctness with the library code, as alternatives are possible for that sensor.
I also tried using the code provided in the above link. The code compiled and uploaded successfully, but I received the following message in the serial monitor:
If you have a different type of Arduino with the Qwiic adapter and/or another Qwiic cable, try those.
You might look for examples of how to use I2C devices with that particular MCU module, but I don’t have any experience with it, so can’t be of further help.
I tried different microcontrollers, various Qwiic cables, and different sensors, but nothing worked.
One concern is that I can’t select ‘SparkFun ESP32 Thing Plus C’ even after installing the SparkFun ESP32 Boards. Instead, I selected ‘SparkFun ESP32 Thing Plus’ without the ‘C’. Could this be related to the problem?
Please check you have the “esp32 by Espressif Systems” board package installed, then select “SparkFun ESP32 Thing Plus C” as the board. (The pinout is different to the original “SparkFun ESP32 Thing Plus”.)
Apologies for the confusion. The “SparkFun ESP32 Boards by SparkFun Electronics” package is mostly obsolete…