New Project Help: Connecting 4x humidity sensors to one board
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- blazarus
- Posts: 1
- Joined: Thu Jun 08, 2023 10:30 am
New Project Help: Connecting 4x humidity sensors to one board
I want to connect 4x humidity sensors to one board (either Arduino or Raspberry PI). After looking at the products, most humidity sensors are I2C, which wouldn't allow me to differentiate each sensor. Would it be best to choose a (more expensive) SPI sensor (ex. BME280), or is there a better way to collect data for 4x I2C sensors? Is there anything else important to keep in mind for this project?
- adafruit_support_bill
- Posts: 88099
- Joined: Sat Feb 07, 2009 10:11 am
Re: New Project Help: Connecting 4x humidity sensors to one board
You can connect multiple devices to the i2c bus as long as they have unique addresses. Many devices have configurable addresses. If the ones you want to use are not configurable, you can use an i2c multiplexer like the PCA9546 to create multiple i2c buses:
https://www.adafruit.com/product/5664
https://www.adafruit.com/product/5664
Please be positive and constructive with your questions and comments.