ESP32 Weather Station
ESP32 weather station with DHT22 temperature / humidity sensor and SSD1306 display.
Overall price is about £15
Video: https://www.youtube.com/watch?v=bA8N2sMjCUM
Instructions
What you should already have
- Arduino IDE: https://www.arduino.cc/en/Guide/HomePage
- ESP32 OLED: https://www.amazon.co.uk/MakerHawk-Development-Bluetooth-Module-Arduino/dp/B071G2MYX2/ref=sr_1_3?ie=UTF8&qid=1536170567&sr=8-3&keywords=esp32%2Boled&th=1
- Temperature and humidity sensor DHT22: https://www.amazon.co.uk/Digital-Temperature-Humidity-Measure-Arduino/dp/B06WLKQMHY/ref=sr_1_7?s=computers&ie=UTF8&qid=1536170623&sr=1-7&keywords=DHT22
- USB cable to connect the ESP32 to your PC.
- Soldering iron (station)
- Spool of solder
- 3 wires to connect the DHT22 to ESP32
Soldering
- Solder
+
pin of DHT22 to 3.3V pin on ESP32
- Solder
-
pin of DHT22 to GND pin on ESP32
- Solder
out
pin of DHT22 to pin number 16 on ESP32
Install all required Arduino libraries
How to install arduino library: https://www.arduino.cc/en/Guide/Libraries
The libraries we need.
Add ESP32 as your board
Clone
clone this repository to your Arduino projects folder with command:
$ git clone https://github.com/gandalf15/esp32_weather_station.git
Edit
- Open esp32_weather_station.ino project in Arduino IDE
- set up your WiFi SSID (name)
- set up your WiFi password
- Sign up here to get an API key: https://docs.thingpulse.com/how-tos/openweathermap-key/
- set up your API key
- set up either imperial or metric units IS_METRIC = [true | false]
- find your city ID here: http://bulk.openweathermap.org/sample/city.list.json.gz
- set up your city ID
Compile and Upload
- Connect your ESP32 via the USB cable to your computer and click on the upload icon.
Done