kike-canaries / canairio_sensorlib

Particle sensor manager for multiple sensors: Honeywell, Plantower, Panasonic, Sensirion, etc. This is sensors layer of CanAirIO project too.
https://canair.io/docs/sensorlib.html
GNU General Public License v3.0
37 stars 12 forks source link

SPS30 and BME280 sensors #101

Closed lemeit closed 2 years ago

lemeit commented 2 years ago

The SPS30 and BME280 sensors are connected via i2c to the TTGO T-Display board with the latest firmware version (rev851).

The variables of the SPS30 sensor are obtained but those corresponding to the Temperature of the BME280 sensor indicate "NAN"

Log here:

15:54:36.810 -> -->[SLIB] SPS30 read > done!
15:54:36.856 -> -->[SLIB] PM1:004 PM25:005 PM10:006 CO2:0000 CO2humi:0.000000% CO2temp:0.000000°C H:0.000000% T:nan°C 15:54:39.888 -> -->[IFDB] write done. 15:54:51.706 -> -->[SLIB] BME280 read > done!
15:54:51.801 -> I2C Sending: 0x02 0x02 15:54:51.801 -> I2C Received: 0x00 0x01 length: 2 15:54:51.801 ->
15:54:51.801 -> I2C Sending: 0x03 0x00 15:54:51.801 -> I2C Received: 0x40 0x84 0x9B 0xEE 0x40 0xA2 0xEE 0x30 0x40 0xB6 0x20 0xA3 0x40 0xC0 0x3D 0x5F 0x41 0xCF 0xB7 0xA8 0x41 0xFC 0x98 0x55 0x42 0x02 0x37 0x12 0x42 0x02 0xE3 0x6A 0x42 0x03 0x10 0x2F 0x3F 0x36 0xC2 0xBE length: 40 15:54:51.801 ->
15:54:51.801 -> -->[SLIB] SPS30 read > done!
15:54:51.847 -> -->[SLIB] PM1:004 PM25:005 PM10:006 CO2:0000 CO2humi:0.000000% CO2temp:0.000000°C H:0.000000% T:nan°C