Hello,
I am working on a project that requires the CH-101 ultrasonic rangefinder. I need to interface it with an Arduino Uno, which I can see has no ability to easily interface with it. I am able to get the I2C communication working. It finds the addresses of the board. My question is pretty straightforward: Where do I go from here? I am just looking for a hint or an example of something that had to be interfaced like this before. Or examples on how to use the SonicLib or the Qwiic bus.
Here is the device I am working with: https://www.sparkfun.com/products/17046
Any help or pointers are greatly appreciated.
Thank you,
Dave
Unfortunately, there is no Arduino compatible library for this device. Here some people have tried. You may get some clues from here: https://forum.arduino.cc/t/i2c-communic … /894807/36
Thank you for the response. Yes. I have been struggling with this. I know there are examples for other controllers. I think maybe the sparkfun esp32 board would be a good start because there is an example for that already. I was wondering about the specific pins (INT, PROD and RESET_N). That forum entry gave me some ideas but I am not sure that worked. I tried changing my sketch to use the different pins but I wasn’t sure what to set them at. It appeared they were floating so I am guessing I had to attenuate the entire chip somehow to get it to start sending data so I started playing with that. Do you know if anyone, I mean anyone, has got this working? Even with the ESP32 or Cortex CPU’s? I would assume that an I2C device would work regardless and really be host agnostic. Maybe use the Quiic bus to work with it would give better results. I don’t see the difference really.