SparkFun Pulsed Coherent Radar Sensor XM125, works with Adafruit ESP32 S3 Metro but not Feather

I can successfully run distance measurements on a Adafruit ESP32-S3 Metro board with the XM125 Radar sensor. I am just using the basic distance measurement example provided by the Sparkfun Library. If I try the same code with a Adafruit feather ESP32-S3 I don’t get any sensor data showing up in the serial monitor. Actually I get nothing at all. I tried blink test on the feather as well as I2C detection and those work. I2c Detection displays that the XM125 address is found and displayed in the serial monitor. The Adafruit feather appears to be working fine but will not work at all with when running the basic distance detection example code from Sparkfun. Not sure what is causing the problem. Help is appreciated.

Double-check that the same library is loaded (distance vs presence detection)

Same (I2C distance bin file) on the XM125 used for both board tests. As well as the same code loaded from the sparkfun library ( basic distance measurements) on the ESP32-S3 boards. Even a simple serial println won’t show up on the feather running the sparkfun example but does on the metro board. 115200 baud used on both boards for serial monitoring.

OK, more strangeness. If I enable core debug level to verbose on the Adafruit feather I can now communicate with the XM-125 and I get distance and strength data but I also get a lot of debug info too. Do, I need maybe add a delay time after initialization of I2c bus somewhere in the sparkfun XM-125 library or sparkfun toolkit for I2C maybe? I’m not sure why it works fine on the Adafruit metro and not the Feather. Both use the same microcontroller. Just tested by putting Core Debug Level into Debug and it is outputting Distance and Strength data. If Core Debug Level is set to none then code doesn’t work. Maybe this is all due to a problem with the ESP32 libraries for the different devices. I could I guess try a older ESP32 library and see if that works.

Perhaps. I basically only have SparkFun stuff, so I’m not real familiar with what differences might exist for those :wink: