Project weatherstation
February 2019 by Tor Gjerde
This is a log following the making of a weather data logger based on the ESP32 chip from Espressif.
Key functionality includes:
- Read pressure, temperature and humidity
- Display data on OLED.
- Regularly upload data to a MySQL database.
- Retrieve data from database and display here on www.Tordesign.net
All the data will be presented on an Oled display but also sent to a server in order to manipulate the readings and make some nice realtime graphs based on the temperature.
In order to achieve said point the project could be split into three different parts:
- Hardware – sensors and processing-unit connected to internet through Wifi.
- Software – Running on the hardware.
- A server with a database and some PHP code to process and present the data being sent from the sensors.
Step one: Hardware
First off we need to get the hardware up and running. I picked up an 1.5inch OLED that will work nicely as a screen to present the data. This one runs on SPI. For sensors we’ll use the BME280 from Bosch – it’s a sweet little package measuring just 2.5×2.5×0.9mm (datasheet) comunicating via I2C. To get the temperature from outside, we’ll use another well known sensor, the Dallas DS18B20.
Recap parts used:
- ESP Wroom-32
- 1.5 inch OLED
- Bosch BM280 – sensor
- Dallas DS18B20 – sensor
- Leds
- 5v to 3.3v converter Texas instrument LM3940
- FT232RQ usb to TTL converter.
This whole project could easily be smashed together with some breakout-boards, a soldering iron and some wire, but I decided to lay out a neat PCB. This will look much better up on the wall as well.
To be continued;)
Copyright © TorDesign 2017-2021 All rights reserved

