Arduino Weather Station

We people always listen to weather forecasting to know the weather conditions around us …here I will explain how to make simple Arduino Weather Station sense temperature and humidity using DHT11 sensor and Arduino, the sensed data will be displayed on LCD.

How To Make Simple Arduino Weather Station

things  required to make an Arduino based weather system:

  • DH11
  • Arduino UNO
  • 16×2 LCD Display
  • Male to Female Jumper Wires – 8
  • Breadboard
  • Arduino connector

Components description:

1.DHT11

DHT11 is a humidity and temperature sensor. It can be used as the humidity sensor as we as temperature sensors. You can find the dht11 sensor of 2 types. One is with the 4 pins and the other with 3 pins. In 3 pin sensors, a 10k ohm resistor is already added inside the module. The operating voltage of this module is 3.3V.

2.Arduino UNO

The Arduino Uno is a microcontroller board based on  ATmega328. It has 20 digital input/output pins,16 MHz resonators, a USB connection, a power jack, an in-circuit system programming (ICSP) header, and a reset button. It is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards can read inputs and turn it into an output.

3.16×2 LCD Display

An LCD (Liquid Crystal Display) screen is an electronic display module. A 16×2 LCD means it can display 16 characters per line and there are 2 such lines. In this LCD each character is displayed in a 5×7 pixel matrix. The 16 x 2 intelligent alphanumeric dot matrix display is capable of displaying 224 different characters and symbols.

Steps to be followed :

step 1: Connecting DTH11 with Arduino

connections as follows:
if you are using 4 pins DHT11 Connections are as follows
Connect a 10K Ohm resistor between VCC and output pin of DHT11.
DHT11Arduino UNO
Vcc3.3V
OutPIN4 (Digital)
GNDGND
NC
DHT11
Circuit
if you are using  3 pins DHT11 Connections are as follows
DHT11Arduino UNO
Vcc3.3V
OutPIN4 (Digital)
GNDGND
Step2: connecting 12C LCD Display to Arduino
connections as follows:
   GND<—>GND
    VCC<—>5V
    SDA<—>A4
    SCL<—>A5

Step 3:

You must include DHT11 and 12C LCD libraries.

Step 4:

the Arduino code which is given below has to be dumped into the Arduino UNO board using a connector.

Code: 

LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
#define DHT11_PIN 4
DHT dht (DHT11_PIN, DHT11) ; 
void setup(){
dht.begin() ;
lcd.begin(16, 2); }
void loop() {
lcd.setCursor(0,0);
lcd.print(“Temp: “);
lcd.setCursor(7,0);
lcd.print(dht.readTemperature());
lcd.setCursor(10,0);
lcd.print((char)223);
lcd.setCursor(11,0);
lcd.print(“C”);
lcd.setCursor(0,1);
lcd.print(“Humidity: “);
lcd.setCursor(9,1);
lcd.print(dht.readHumidity());
lcd.setCursor(11,1);
lcd.print(“%”);
delay(1000);
lcd.clear() ;
}

Working:

 
After connecting all the components properly and dumping the code into the Arduino, we find the values of Temperature and Humidity displaying on the LCD. Now if we bring our hand or any other object near the sensor we observe the changes in the values of humidity and temperature on LCD.
 

Conclusion:

 
Finally, the making of the simple Arduino based weather system is done and this will sense the surrounding humidity and temperature and display it in the LCD.
Spread knowledge

Leave a Comment

Your email address will not be published. Required fields are marked *