gandalf15 / esp32_weather_station

ESP32 weather station with DHT22 temperature / humidity sensor and SSD1306 display
MIT License
6 stars 0 forks source link

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

  1. Arduino IDE: https://www.arduino.cc/en/Guide/HomePage
  2. 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
  3. 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
  4. USB cable to connect the ESP32 to your PC.
  5. Soldering iron (station)
  6. Spool of solder
  7. 3 wires to connect the DHT22 to ESP32

Soldering

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

  1. Open esp32_weather_station.ino project in Arduino IDE
  2. set up your WiFi SSID (name)
  3. set up your WiFi password
  4. Sign up here to get an API key: https://docs.thingpulse.com/how-tos/openweathermap-key/
  5. set up your API key
  6. set up either imperial or metric units IS_METRIC = [true | false]
  7. find your city ID here: http://bulk.openweathermap.org/sample/city.list.json.gz
  8. set up your city ID

Compile and Upload

  1. Connect your ESP32 via the USB cable to your computer and click on the upload icon.

Done