How to change GP2Y0E02B I2C Address

Hi all,

I’d like to change the I2C address of the sharp distance sensor GP2YE0E2B, with an arduino or a raspberry.
I found some arduino code, but did not succeed.
At the same time I read datasheet and application notes, but … maybe I didn’t read enough ! …
Can you help me ?

Thanks in advance.
Cdlt,
Xavier

Hello @xbourasseau!

Can you share your wiring and the code you used with us?

According to the application notes (page 18) this list shows the slave address that can be used:
image

However, those are 8bit addresses and Arduino uses 7 bit addressing so you’ll need to shift the address one bit to the right

1 Like