Connect 2 SparkFun Qwiic Digital Temperature Sensor - TMP102 to 1 RedBoard

Hi,

Is it possible to connect 2 SparkFun Qwiic Digital Temperature Sensor - TMP102 to 1 RedBoard? What do I have to change in the script shown in the tmp102-hookup-guide?

Thanks

Yes, but you will need to change the I2C address on one of them so that each has it’s own address.

You will need to create two instances of the sensor in your code and one of them needs the alternate I2C address so that it reads from the second sensor rather than the first.

We don’t have example code for more than one sensor but the hookup guide and the example in the library should point you in the right direction for writing code for 2 or more sensors.

Yes; go through the hookup guide here https://learn.sparkfun.com/tutorials/tm … onnections has note on changing the address of one or more of the sensors, and then you can just either run those to separate pins on the redboard or have one i2c bus with both sensor’s data on it

You’ll have to figure out how to modify the example code to use them simultaneously from there

Thanks. Will I have to change the I2C address if I use CCS811/BME280 (Qwiic) Environmental Combo Breakout or SparkFun Atmospheric Sensor Breakout - BME280 (Qwiic)?

Will I have to change the I2C address if I use CCS811/BME280 (Qwiic) Environmental Combo Breakout or SparkFun Atmospheric Sensor Breakout - BME280 (Qwiic)?

Only if they already have the same I2C address as another board, every device on the bus needs a unique address.