You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Goal

Arduino device to compare data for as much t/RH sensors as possible without manual sensor switch

Preparation

Use of same sensor on i2c usually limited by 1 or 2 (using ALT i2c address) of same type. And SHT20, SHT21, SHT25, HTU21 is actually same type, so to be able to compare measurement there is need to use i2c multiplexer. In case of 8 line multiplexer there is possibility to have 8-16 sensor of same time to be connected with Arduino.

Sensor i2c addresses

Sensoraddress
alt address
specV
Senserion SHT2x0x40640x416520,21,253.3v
Senserion SHT3x0x44680x4569SHT3x3.3v
Senserion SHT8x0x4468
69SHT853.3v
Meas(1) HTU21D0x4064

HTU21D3.3v
Silicon Labs Si70210x4064

pdf3.3v
Bosch(2) BMEx800x761180x77119280,6803.3v
Ti(3) HDC10800x4064

pdf3.3v
AOSONG DHT120x5C92

*pdf3.3v
AOSONG AM23200x5C920xB8 ?
*pdf5v

1 TE Connectivity Measurement Specialties

Texas Instruments

3 Bosch Sensortec

Multiplexer Lines

Line0x400x440x5c0x770x410x450x760x70
ASHT21SHT30DHT12BME680



BSHT21
SHT30DHT12BME680



CHTU21D
SHT31DHT12BME280



DHTU21D
SHT31-BME280



EHTU21DSHT35-BME280



FSHT20
SHT35-BME680



GSHT21
SHT31-BME680



HSHT25
SHT85--



i2c Scan

Port:0  i2c addr 64  i2c addr 68  i2c addr 119
Port:1  i2c addr 64  i2c addr 68  i2c addr 119
Port:2  i2c addr 64  i2c addr 68  i2c addr 118
Port:3  i2c addr 64  i2c addr 68  i2c addr 118
Port:4  i2c addr 64  i2c addr 68  i2c addr 118
Port:5  i2c addr 64  i2c addr 68  i2c addr 92  i2c addr 118
Port:6  i2c addr 64  i2c addr 68  i2c addr 92  i2c addr 118
Port:7  i2c addr 64  i2c addr 68  i2c addr 92

Hardware in use

  1. Mega2560 keyestudio
  2. LCD 3.5 inch Arduino Mega2560
  3. DFRobot i2c multiplexer (or compatible ShangSi MoudleCX TCA9548A i2c multiplexer)
  4. Sensors (DHT11, SHT21, SHT20, SHT25, HTU21D, SHT30, SHT31, SHT35, SHT85, BME280, BME680)

Draft sketch

github code: 

Libraries

  • No labels