HowTo: ESPEasy - Connecting BME280 / BMP280 to the ESP8266 and reading it out

The BME280 is one of the sensors that I use in almost all of my projects. It can be used to measure more than just temperature. It can also be used to measure humidity and air pressure.

The BME280 is therefore the perfect sensor if you want to measure the climate data of a room (or even the outside air) with little effort.

The BMP280 is almost identical to the BME280. It can be used to measure the temperature and air pressure.

Thanks to the appropriate plug-in, both the BME280 and the BMP280 can be configured as sensors in ESPEasy with just a few clicks. Everything you need to do is described in the following article.


Safety instructions

I know the following notes are always kind of annoying and seem unnecessary. Unfortunately, many people who knew "better" have lost eyes, fingers or other things due to carelessness or injured themselves. Data loss is almost negligible in comparison, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Because even the coolest project is not worth injury or other trouble.
https://www.nerdiy.de/sicherheitshinweise/

Affiliate links/advertising links

The links to online shops listed here are so-called affiliate links. If you click on such an affiliate link and make a purchase via this link, Nerdiy.de will receive a commission from the relevant online shop or provider. The price does not change for you. If you make your purchases via these links, you support Nerdiy.de in being able to offer other useful projects in the future. 🙂 


Requirements

Helpful articles:
Additional tips on ESPEasy can be found in the following articles.

Required tool:

Required material:


Connect the BME280 / BMP280 to the ESP8266

The BME280 is connected to the ESP8266 or Wemos D1 Mini via the I2C bus.

If the I2C bus is configured by default, you can use the shown schematic as orientation.


Configuration of the BME280 / BMP280 in ESPEasy

In order for the BME280 to be configured in ESPEasy, the ESPEasy firmware should already be installed on the ESP8266 and accessible. You can also find information on this in the article ESPEasy - Compile firmware, flash and configure WLAN access data.

First open the configuration web page of your ESP8266 programmed with ESPEasy by entering its IP address into your web browser. Information on how to find out the IP address can also be found in the article Display/find out the IP address of the devices in the network summarized.

As soon as you have opened the configuration website, you must switch to the "Devices" tab. To do this, click on the "Devices" button.

In the "Devices" tab, click on the "Add" button in one of the empty rows.

You will then be automatically redirected to the view shown and can select which device you want to create.

Select the "Environment - BMx280" entry here.

This will redirect you back to an overview page.

Here you can make all settings relating to the BME280 or BMP280.

It is important here that you configure the correct "I2C address". In most cases, the default address should work. To do this, select the value "0x76 (118) - (default)".

You can use the "Altitude" and "Temperature offset" options to calibrate the temperature and altitude measurement.

Under "Altitude" you should enter the altitude (measured to sea level) of the sensor location.

If the measured temperature value differs from the actual value, you can enter the deviation under "Temperature offset" and thus compensate for it.

As soon as the sensor has been configured, you can save it by clicking on "Submit".


Display measured values of the BME280

After you have configured the BME280 you can test it directly.

Click on the "Devices" tab again.

In the overview of the configured devices, the measured values can be seen in the line of the BME280 on the right-hand side.

These are updated every 60 seconds at the latest. This interval can be set in the "Interval" section of the BME280 configuration.


Send sensor data via MQTT

You can now also send the collected sensor data to your SmartHome via MQTT and process it there if necessary. What you need to configure for this is described in the following article.


Additional sensors for connection to the ESP8266 / ESP32

An overview of other articles for connecting sensors and actuators to ESPEasy can be found in the following category.


Have fun with the project

I hope everything worked as described for you. If not or you have questions or suggestions please let me know in the comments. I will then add this to the article if necessary.
Ideas for new projects are always welcome. 🙂

PS Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do this because I enjoy it, but if you think it's cool that I share the information with you, I would be happy about a small donation to the coffee fund. 🙂

Buy Me a Coffee at ko-fi.com       

Kommentar hinterlassen

Your email address will not be published. Erforderliche Felder sind mit * markiert

This site uses Akismet to reduce spam. Learn how your comment data is processed.