This is an old revision of the document!


Local weather station with BME280 & Android integration

  • Student: Andreea Miu
  • Master: SAS

Introduction

This project describes a local weather station, which is included in a larger Android application.

The purpose of this project is to provide a proof-of-concept for adding local weather stations to standard weather applications, in order to have a more granular approach on weather based on customizable location and measured data.

Hardware Setup

Components

  • ESP32-DevKitC-V4 board
  • BME280 environmental sensor
  • Jumper wires

Schematics

ESP32 and BME280 schematics

In the above schematics, the following pins are connected:

  • VCC of BME280 - 3v3 of ESP32
  • GND of BME280 - GND of ESP32
  • SCL/SCK of BME280 - IO22 / GPIO pin 22 of ESP32 (default GPIO pin for I2C SCL)
  • SDI/SDA of BME280 - IO21 / GPIO pin 21 of ESP32 (default GPIO ppin for I2C SDA)

Software Setup

The local weather station will send data to a database, in order to facilitate access to retrieved data. For this project, a Firebase real-time database is used.

Arduino code

Firebase

The Firebase database is a real-time database, which stores the values captured by the sensor in respective nodes: temperature, humidity, pressure and altitude respectively. The below picture gives a look into the database from an admin perspective:

Android application

The Android application used is part of a larger project, which also provides access to global weather forecast using an API. By using the data collected by the BME280 sensor and stored in the Firebase database, the granularity of data (across a city, for example) is increased. The screenshots below illustrate how the app can be navigated in order to access the local weather station in Bucharest. A different forecast can also be retrieved for Bucharest using the API, thus providing two points of data collection in Bucharest.

References

iothings/proiecte/2022sric/weatherly-local-station.1685635289.txt.gz · Last modified: 2023/06/01 19:01 by andreea.miu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0