BMP280 sensors? #12405
-
Note that i will be using a raspberry Pi PICO for this The last D18B20 senors i got seem to have been bad clones (only give CRC errors) so i figure i can try a different sensor and found these i have gotten stuff from this seller before and the only issue i had was the D18B20 sensors, everything else has been good and fake D18B20s are everywhere and the seller did deal with the situation in a timely manner
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
I adapted am early Adafruit driver: https://github.com/robert-hh/BME280. It supports both I2C and SPI. |
Beta Was this translation helpful? Give feedback.
I adapted am early Adafruit driver: https://github.com/robert-hh/BME280. It supports both I2C and SPI.
The BME280 works well. In a test of various sensors, the temperature and pressure values were always be similar within the given error range. Only the humidity values varied a lot. These difference got smaller after keeping the sensors at the same place for several months.
The wire lengths for I2C and SPI are meant to be short, less than 30cm. You can extend that by lowering the clock rate and for I2C by making the pull-up resistor as small as possible, down to about 1k Ohm. The data sheet does not tell how much current a BME280 can source or sink. At 1k it would be ~3mA. You may use low…