Multiple AS7265x connecting to Raspberry Pi3 through multiplexer

I need to run four of AS7265x spectrometer through a single Raspberry pi 3. I connect all sensors to a TCA9548A I2C Multiplexer. But, I cannot figure out how to adjust the addresses to run all sensors. I am using the python code developed for the sensor in this page(https://github.com/LiamsGitHub/AS7265x-spectrometer). The script works fine when I use a single sensor connecting directly to the pi. However, I do not know how it could run all of through the multiplexer. I use this python script for the Multiplexer (https://github.com/adafruit/Adafruit_Ci … n_TCA9548A). I am a not expert in electronics and coding, and I really need to run all sensors through a single Pi. Could you please help me to run the sensors? what should I adjust in the script? or in the multiplexer script? I spend so many hours so far and I could not figure it out.

Thanks a lot in advance.

You really don’t need much electronics knowledge to connect 4 of these to one pi, but you are going to need to learn a bit about programming to make the changes needed. It’s not going to be a simple matter of combining two different pieces of code unfortunately.

This is just a bare bones description of what you need to do:

  • - Modify the code for one sensor to account for and initialize 4 of them.
  • - Write code for the multiplexer to switch channels.
  • - Intergrate both of those so that you select 1 sensor and initialize that one then read data from it and keep track of what sensor you're talking to so that you don't change sensors before you're done with one.
  • I can’t help you with that but if you can find a person that is good with Python and is willing to work with you, the two of you should be able to hammer out some working code pretty quick.