ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I fixed the problem. The SonarSRF08 library did not shift the I2C address right by one, so the addresses sent to Wire were wrong.

Wire.beginTransmission(address/2); Wire.requestFrom(address/2, numBytes);

Now the +4 added to the address in the example (calling program) is not needed. I am now able to add code to cycle through my three SRF08 Sonar modules.

Alan

click to hide/show revision 2
fixed addressing error

I fixed the problem. The SonarSRF08 library did not shift the I2C address right by one, so the addresses sent to Wire were wrong.

Wire.beginTransmission(address/2); Wire.requestFrom(address/2, numBytes);

Now the +4 added to the address in the example (calling program) is not needed. I am have now able to add added code to cycle through my three SRF08 Sonar modules.

Alan