Difference between revisions of "BME280"
Grovkillen (talk | contribs) (Added pictures + info on how to change i2c address.) |
|||
Line 5: | Line 5: | ||
== Hardware == | == Hardware == | ||
− | The BME280 sensor can be connected directly to an ESP module by using the two pins SDA and SCL. | + | The BME280 sensor can be connected directly to an ESP module by using the two pins SDA and SCL. You may change the i2c address from the default 0x77 to 0x76 by cutting the line between the two left pads (as seen in the pictures below) and solder a bridge between the to right pads. |
---- | ---- | ||
− | [[File:BME280.png|320px]] | + | Product image:<br/> |
+ | [[File:BME280.png|320px]]<br/> | ||
+ | <br/> | ||
+ | Default i2c address 0x77:<br/> | ||
+ | [[File:BME280_I2C_0x77.jpg|320px]]<br/> | ||
+ | <br/> | ||
+ | Changed i2c address 0x76:<br/> | ||
+ | [[File:BME280_I2C_0x76.jpg|320px]]<br/> | ||
+ | <br/> | ||
+ | Explained image i2c address:<br/> | ||
+ | [[File:BME280_I2C_0x76_explained.jpg|320px]] | ||
+ | <pre style="color: green">green = cut</pre><pre style="color: red">red = solder/bridge</pre> | ||
---- | ---- | ||
Revision as of 08:53, 9 May 2017
Contents
Introduction
The ESP module can read a BME280 temperature/Humidity/Barometric pressure sensor using the I2C protocol.
The BME280 sensor needs to be connected to a the I2C pins on the ESP module. These pins can be configured on the hardware tab.
Hardware
The BME280 sensor can be connected directly to an ESP module by using the two pins SDA and SCL. You may change the i2c address from the default 0x77 to 0x76 by cutting the line between the two left pads (as seen in the pictures below) and solder a bridge between the to right pads.
Product image:
Default i2c address 0x77:
Changed i2c address 0x76:
Explained image i2c address:
green = cut
red = solder/bridge
Software
Custom Sketch
ESP Easy
The BME280 communicates with the ESP8266 through the I2C interface, so first use the Hardware tab in the web interface of ESP Easy to find out what pins are being used for SDA and SDC. They can be altered if required.
Next use the device tab on the ESP Easy webinterface and create a new task by editing one of the available tasks. Select "Temperature & Humdity & Pressure BME280" from the dropdown box.
Enter the IDX found in the Domoticz device page. That should be all.