Multiple HMC5883L compass units on one I2C line?
StephenMoore
Posts: 188
The factory default address for the HMC5883L unit is 0x7E. Does anyone know if it is possible to change this setting so that it is possible to have multiple magnetic sensors on one two-wire bus? Or, is it mandatory that a separate dedicated SDA/CLK pair be used for each sensor?
I am trying to build a magnetic sensor array and would like to simplify the comm bus if possible.
Regards,
sgm
I am trying to build a magnetic sensor array and would like to simplify the comm bus if possible.
Regards,
sgm
Comments
sgm
The HMC5883L responds to I2C address $3C/$3D and there is no way to change this. As a result, there is no way to have more than one HMC5883L on the same I2C bus. You can have multiple I2C devices on the same bus, but they have to have unique addresses.