New Project Help: Connecting 4x humidity sensors to one board

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
blazarus
 
Posts: 1
Joined: Thu Jun 08, 2023 10:30 am

New Project Help: Connecting 4x humidity sensors to one board

Post by blazarus »

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?

User avatar
adafruit_support_bill
 
Posts: 88099
Joined: Sat Feb 07, 2009 10:11 am

Re: New Project Help: Connecting 4x humidity sensors to one board

Post by adafruit_support_bill »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”