I have a little problem here. I have purchased LSM303DHL
which is a tilt compensated compass sensor. It's a module that consists of a compass and an accelerometer and communicates with the micro-controller over I2C communication protocol. The datasheet
specifies that the address of the compass is 0x1E and the address of the accelerometer is 0x18 (This is also specified by the application note). I have built a sketch to fetch the compass readings only and it did work. However, trying to establish a communication with the accelerometer failed. After some debugging I came to realize that the accelerometer device address is 0x19 (I ran I2C scanner to know the connected devices). Well, I find this confusing!! can the accelerometer have different address other than the specified in the datasheet? I need some explanation for this issue if you please.
Sorry for my bad English. It's not my first language.
Thanks in advance.