Hello everyone, I want to connect multiple Maxbotix Sonar (MB1242) sensors on the I2C port of Pixhawk 4 but the sensor is defined only for the I2C address of 0x70. Hence, changing I2C addresses seems not to be a solution. When I use 2 sensors with the same I2C address of 0x70, they interfere with each other. How can I solve this problem? Thank you in advance.
Changing the I2C address is dependent on the sensor itself. For instance, I’ve worked with different devices that allow you to change the address by either re-positioning jumpers, or soldering pads together. So check your sensor’s documentation in regards to re-addressing the sensor.
I just looked at the documentation, This is the datasheet for the I2CXL-MaxSonar-EZ ultrasonic sensors (Part numbers: MB1202, MB1212, MB1222, MB1232, MB1242) including the product description, specifications, features, and beam patterns of the MaxSonar high performance sonar range finders. (maxbotix.com), and its software controlled. Look at page 3 for the steps. Page 4 will also be helpful for wiring.
Thank you for replying. I figured out that I should change I2C addresses to a address between 0x5A and 0x70 because it’s defined like that in the datasheet of the Maxbotix sensor. Hence, I changed the I2C addresses to 0x67, 0x65, etc. Then it worked.