BS2px with SRF235
Doc
Posts: 25
Hello,
I am using a SRF235 sonar with a bs2px microcontroller. I want to collect data in microseconds. Everything is allright but I have a stability problem. For a well defined distance, the output is not always the same. for example, I have a 1575 us +/- 5 us. I put 1.8k resistors on the SCL and SDA lines.
Does anyone have any idea please?!
Thank you.
I am using a SRF235 sonar with a bs2px microcontroller. I want to collect data in microseconds. Everything is allright but I have a stability problem. For a well defined distance, the output is not always the same. for example, I have a 1575 us +/- 5 us. I put 1.8k resistors on the SCL and SDA lines.
Does anyone have any idea please?!
Thank you.
Comments
·· As I’m not familiar with that SRF device I have no help to offer there, but regarding the connections…Do their specs call for 1.8K pull-ups? Those are awfully stiff pull-ups. Typically I2C uses 4.7K on both lines.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
thank you for your reply. Actually I tried them both, 1k8 Ohm and 4k7 Ohm, and I had the same problem, especially for distances larger than 15 cm.
Regards,
Doc