I2C address change for sharp ir sensor GP2Y0E02B

Hi!

I plan to use 10 GP2Y0E02B sharp sensors wired to an arduino nano i2c bus, for a mini sumo robot oponent detection. They are incredibly small, but require a 3.3 v supply that do not provide the nano board, I use an external one whith li po battery.
This way I will save five analogic pins for more sensors.

These sensors leave a slave i2c address changing possibility (16 selectable addresses) and do not need to be multiplexed, must be faster.

see [

I have to change by programming the components their R/W adresses and Just start to discover the matter.

If someone has already write the required code I'd be glad to have some help.
I think I will use an arduino and its i2c bus for programming the sensors, but for instance I just have the builder documentation and two sensors for tests, no code, only Wire.h Library as a start.

I just start working on it, I will share of course my code if I get some results...

Bye and thanks.](http://www.robotshop.com/media/files/zip2/rb-dev-70_-_documentation_example.zip)

Quick Google found this. Have you tried it?

Hi again!
I missed the link insertion...

see [

The problem is not to read the sensor but to change his i2c address by programming it threw i2c and modify values in the component bank.
I cannot find already made code for that programming and need some help to avoid hours of developpement.

Thanks](http://www.robotshop.com/media/files/zip2/rb-dev-70_-_documentation_example.zip)

ok still not work so see
[http://www.robotshop.com/media/files/zip2/rb-dev-70_-_documentation_example.zip]
sorry, thanks

Hi, if you wanna change the i2c slave address, please, read the page 37 of the datasheet. In that page, they mention a Vpp pin, this pin is on the back side of the sensor, so you have to connect it to change the i2c address. This pin must be configured as a digital output with a 3V3. Page 27 shows where is the Vpp pin depending of your sensor.