ESP8266 Home Weather Station

DiY-Projects
Spread the love

How to make Make ESP8266 based mini Home Weather Station is one of most searched topic on internet in recent days, Why we buy expensive Weather station when you can make one easily at home at low cost

Well here i will guide you through very simple steps in which you can make your own Home Weather Station  that can be use in Home , office  as electronic hobby project choice is your’s !

Supplies required to make ESP8266 Home Weather Station

  1. ESP8266
  2. DHT 11 or DHT22 humidity sensor
  3. 0.96″ OLED display
  4. mini breadboard
  5. some jumper cables
  6. 5V Power bank for powering

You can use the preceding links or go directly to Maker fabs to find all the parts for your projects at the best price!

In this project we’ll use 0.96″ OLED display as shown in the following picture.

What is OLED Display ?

OLEDs are one of the types of display available for use in our Arduino and electronics projects.

An OLED (Organic light-emitting diode) is a type of LED in which the emissive layer is made up of an organic compound that emits light in response to electricity.

SDD1306 controller and have a very small size of 25mm x 14mm. They are monochrome and have a resolution of 128×64 pixels.

   The  temperature and humidity measured by DHT11

The DHT11 and DHT22 are two models of the same family of this sensors, which allow measurement of temperature and humidity , These sensors have an internal processor that performs the measurement process, providing the measurement through a digital-analog signal,is very easy to obtain the measurement from a microprocessor such as NodeMCU or Arduino.

DHT11 or DHT22 

dht11-dht22
dht11-dht22

The character of the DHT11 are really poor, especially in measurement range and precision.

  • Humidity measurement between 20 to 80%, with a precision of 5%.
  • Sampling rate of 1 samples per second (1 Hz)
  • Temperature measurement between 0 to 50, with an accuracy of 2ºC

The DHT11 is a very limited sensor that we can use for training, testing, or projects.

Warn (that don’t really require accurate measurement)

On the contrary, the DHT22 model has much more acceptable characteristics.

  • Temperature measurement between -40 to 125, with an accuracy of 0.5ºC
  • Humidity measurement between 0 to 100%, with precision of 2-5%.
  • Sampling rate of 2 samples per second (2 Hz)

Scheme                

oled-schematic
OLED Display

arduino-dht11-dht22-pinout

DHT11 or DHT12

Schematic

The connection is very  simple, we simply power the module from NODEMCU using GND and 3V and connect the SDA and SCL pin of the ESP8266 as show in Schematic .

Required Library For this project

  1.  Adafruit_SSD1306 library
  2. GFX libraries
  3. DHT Sensor libraries
  4. Adafruit Unified Sensor libraries

after add all library in your IDE then Finally, restart your Arduino IDE.

Code for ESP8266 Home Weather Station

After installing the all libraries, you can Download code the following link in below to your Arduino IDE and upload it to your ESP8266 board.

Download Code 

You might also be interested in farm automation project check it here

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments