|
| 1 | +BME280 |
| 2 | +====== |
| 3 | + |
| 4 | +The Bosch BME280 sensor offers humidity, barometric pressure and temperature |
| 5 | +sensing in a single chip. Adafruit offers a breakout board to easily connect the |
| 6 | +BME280 to an MCU: <https://www.adafruit.com/product/2652> |
| 7 | + |
| 8 | +There are other similar breakout boards that may be used with the Adafruit |
| 9 | +libraries, as long as they offer either I2C or SPI interfaces. Using hardware |
| 10 | +SPI is preferred, if your MCU supports it. |
| 11 | + |
| 12 | +Use cases |
| 13 | +--------- |
| 14 | + |
| 15 | +This sensor is ideal for a weather station as it includes the three measurements |
| 16 | +typically found in classic analog barometers. |
| 17 | + |
| 18 | +Limitations |
| 19 | +----------- |
| 20 | + |
| 21 | +The sensor caches the measurements, which is why they are requested twice to get |
| 22 | +an updated number. If using I2C reading all different values is quite slow, so |
| 23 | +(hardware) SPI is the preferred interface on ESP8266 MCUs. The Digispark is only |
| 24 | +supporting I2C, so do not expect to read out the values too frequently. |
| 25 | + |
| 26 | +Wiring |
| 27 | +------ |
| 28 | + |
| 29 | +The following is an example for connecting the Adafruit BME280 breakout board to |
| 30 | +a NodeMCU using the ESP8266's hardware SPI pins. If the `D8` pin isn't pulled |
| 31 | +HIGH during boot, the sensor connected to it interferes with the startup of the |
| 32 | +ESP8266. This can be avoided by using a resistor of 2 - 10 kΩ between ground |
| 33 | +and `D8` (the illustration below shows a 3.3 kΩ resistor). |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | +Here below is an example for connecting the Adafruit BME280 breakout board to |
| 38 | +a DigiSpark using I2C pins. Although it seems possible to get software SPI |
| 39 | +working on the DigiSpark, (software) I2C is better documented and therefore |
| 40 | +easier to use. |
| 41 | + |
| 42 | + |
| 43 | + |
0 commit comments