This is an old revision of the document!
In this scenario, we will read environmental data using a BME 280 sensor. It is one of the most popular sensors in weather stations. It integrates a digital thermometer, hygrometer (air humidity), and air pressure meter on a single chip.
The sensor communicates with the microcontroller using I2C. In our laboratory nodes, it uses the I2C bus on GPIOs 5 (SDA) and 4 (SCL) and is visible under the I2C address 0x76.
This scenario can be run stand-alone, but it is also complementary to the scenario EMB1A EMB1A: Controlling a FAN with PWM and may enable you to monitor the results of the fan operation that should induct changes in the air pressure.
The static temperature, humidity and air pressure values can be read out of the box. To observe air pressure changes over a short time, it is necessary to implement fan PWM control as described in the EMB1A: Controlling a FAN with PWM.
Sensor readings can be sent over the network or on the display (e.g. LCD), so understanding how to handle at least one of the displays is essential:
To implement monitoring of the air pressure changes, understanding how to control a fan with PWM is necessary:
In this scenario, we only focus on reading the sensor. Information on how to display it is part of other scenarios that you should refer to to create a fully functional solution.
Present the current temperature, air pressure, and humidity on any display (e.g. LCD). Remember to add units (C, %Rh, hPa).
Write starting conditions, i.e. what to do in the beginning, what to pay attention to before beginning, how the mechanical part should look, etc. Include needed compiler configuration, etc.
Write some extra information if, i.e. some steps are optional; otherwise, cancel this paragraph (but do not remove the header).
Describe activities done in Step 1.
…
Describe activities done in Step n.
Provide some result validation methods for self-assessment.
This section is to be extended as new questions appear.
When using the printed version of this manual, please refer to the latest online version of this document to obtain the valid and up-to-date list of the FAQ.
Provide some FAQs in the following form:
Question?: Answer.
This Intellectual Output was implemented under the Erasmus+ KA2.
Project IOT-OPEN.EU Reloaded – Education-based strengthening of the European universities, companies and labour force in the global IoT market.
Project number: 2022-1-PL01-KA220-HED-000085090.
Erasmus+ Disclaimer
This project has been funded with support from the European Commission.
This publication reflects the views of only the author, and the Commission cannot be held responsible for any use that may be made of the information contained therein.
Copyright Notice
This content was created by the IOT-OPEN.EU Reloaded consortium, 2022,2024.
The content is Copyrighted and distributed under CC BY-NC Creative Commons Licence, free for Non-Commercial use.