[Need help to plug two differents I2C devices on a single Arduino Uno bord]

Hi,

I’m new in this field and managed to wire my Sparkfun AS7265x device (triple sensor for reflectance measurements). But I need to wire 2 of them on the same arduino uno r3 board (in order to have incident ray reflectance measure too).

The device datasheet is here : https://cdn.sparkfun.com/assets/c/2/9/0 … asheet.pdf

There may be 3 solution :

  • change the I2C addresses of one of the two devices (I don’t know if it’s possible ; nothing talk about it in the datasheet)

  • talk with I2C with one device and RX/TX with the other one (I didn’t manage to talk with RX/TX with my board at the time I write this topic)

  • enable a specific device each time but that may make the program longer to run and provoque too large differences of time between the two measurements (which are supposed to be as close as possible in time – and if possible taken simultaneously but I don’t think that’s possible…)

I’m asking for help to implement 1st or 2nd solution or even another one I did not think about yet.

Thanks you very much. I apologize for my bad english.

Hello Ilias_sarbout,

The first solution won’t work. You can’t change the default I2C address.

The second solution could work, just do your research on UART communication.

The third solution might be a bit of a stretch. I would suggest looking into purchasing a [Qwiic Mux Breakout. This board allows you to have multiples of the same address without having to change any of their original addresses.

I hope this helps point you in the right direction.](https://www.sparkfun.com/products/14685)