2019-07-15 05:58 AM
2019-07-15 06:28 AM
Hi @FItal , you can use max n.2 lps22hb on the same physical lines by setting the SA0 pad (SAD[0] bit in the Slave address) high (Vdd) or low (GND). However, you can of course share the communication lines by using the SPI protocol and lowering the CS when you want to communicate with a specific device. Regards
2019-07-15 06:37 AM
Thanks for the reply.
best regards,
Francesco
2019-07-15 06:55 AM
With "dirty" tricks, one can use 10 or more I2C bus slaves with the same address in one bus.
You can gate the SCL line (or better both SCL and SDA) to the slaves, having only two slaves accessible at the bus on any time (at different addresses, set by SA0 pin).
The effort would be similar to managing /CS lines.
2019-07-15 07:02 AM
There are also I2C Muxes like the PCA9543.
2019-07-15 07:28 AM
Connect each pressure sensor slave address select pin to an individual GPIO of the MCU, and make sure only one of them is high (or low) to talk to the one.
Running out of pins on the MCU? Use an I2C IO Expander.