tdk-invn-oss / ultrasonic.arduino.ICUX0201

Arduino Driver for TDK InvenSense consumer ultrasonic sensor family ICUX0201
https://invensense.tdk.com/smartsonic
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Can't initialize sensor #10

Open Calypso514 opened 6 days ago

Calypso514 commented 6 days ago

Hi everyone,

I'm trying to use ICU-10201 sensor without the EVK board. I implemented a specific hardware using a 1.8v regulator as explained in a previous issue. However, I can't make it work. The call of begin() always returns 1. What does this error code mean ?

Thank you in advance


Notify: @tdk-invn-oss/ultrasonic-maintainers @tdk-invn-oss/arduino-maintainer

rbuisson-invn commented 6 days ago

Hello Calypso,

Could you please try version 1.0.3 of the library as it might fix a similar issue? If the issue persists: A return code of 1 probably means that the communication with the sensor is not OK, could you please try to capture SPI traces?

Regards,

Calypso514 commented 5 days ago

Hello rbuisson,

I tried the version 1.0.3 but the issue is the same. What do you mean by "capture SPI traces"? How can I do that?

Best regards,

rbuisson-invn commented 5 days ago

Hello, Thanks for updating the version of the lib. I suspect that the SPI communication is not correct, that's why I asked for SPI traces that you can capture a with Logic analyzer or a scope. Regards,