The Arduino Weather Station project requires the following parts
- Arduino Nano
- 16×2 LCD Display
- DHT 11 Sensor or DHT 22 Sensor
- Breadboard, Jumper wires
- Resistor 1k.
This project accurately gives the real-time temperature and humidity at a place. Inorder to get the necessary temperature and humidity values we make use of the DHT 11 sensor. We can also use DHT 22 sensor which is more accurate but slow in taking readings. The LCD Display is used to display the temperature and humidity values in celsius and percentage respectively.
The brain of the project is Arduino Nano. In the Arduino IDE we make use of the Adafruit Sensor Library, DHT Sensor Library and Liquid Crystal Library.
The reading from the DHT 11 sensor by default comes in °F reading, so we have to convert it to °C in the program code.
The sensor data is updated every 2 seconds inorder to produce accurate readings and give time for the sensor to become stable.
Also symbols of a thermometer and water droplet is displayed to note high state of temperature and humidity respectively.
The project can be further developed by adding an SD Card Module and save temperature and humidity reading continuously and save it in a text file. This text file can be opened us MS Excel and converted into graphs. By this addition we are able to compare temperature and humidity values at different times on different days.
Overall its a fun, useful and research based project.
- DHT 11 Sensor
- Connect the Data pin of DHT Sensor to D12 pin of the arduino.
- Connect the VCC pin of DHT Sensot to 5V output of the arduino and GND pin to arduino GND.
- 16X2 LCD Module
- Connect VSS pin of LCD to arduino GND.
- Connect VDD pin of LCD to 5V output of the arduino.
- Connect V0 to arduino GND using 1k resistor. (This will give a fixed contrast for the LCD)
- Connect RS pin to D10 pin of the arduino.
- Connect RW pin to arduino GND.
- Connect E pin to D11 pin of the arduino.
- Connect D4 pin to D4 pin of the arduino.
- Connect D5 pin to D5 pin of the arduino.
- Connect D6 pin to D6 pin of the arduino.
- Connect D7 pin to D7 pin of the arduino.
- Connect A pin to 5V output of the arduino.
- Connect K pin to arduino GND.
After all the connections are completed we can move on to the Arduino IDE.
- Adafruit Circuit Playground Library
- Adafruit Unified Sensor Library
- DHT Library
- Liquid Crystal Library
Download all the above libraries and paste it on the Library folder present in the Arduino folder in the documents folder.
After this step copy and paste the code, compile and upload. Make sure to remove the sensor before uploading the code.