Table of Contents
A simple minor project as Live Weather Station using Arduino , RTC, Pressure & Temperature Sensor can be implemented easily. For example for viewing temperature we use thermometer and we don’t have any device to measure pressure, so we merely depend upon news. So here in this project we are going to develop a device that is capable of measuring temperature and pressure as well and after measuring it can be easily displayed in LCD with real time.
So all we need is we can develop our own hardware using few electronics components that can cost almost near about 10$.
The requirements for the circuit are as follows:
1. Arduino Uno Board 2. BMP180 – Barometric Pressure & Temperature Sensor - (Buy Online from Amazon) 3. RTC DS1307 - (Buy Online from Amazon) 4. 20*4 LCD - (Buy Online from Amazon) 5. DHT22 – temperature-humidity sensor - (Buy Online from Amazon) 6. PIR Sensor - (Buy Online from Amazon) 7. LDR (Photoresistor) 8. R1, R2, R3 – 10 Kilo ohm Resistor 9. R4 – 1 Kilo Ohm, R5 – 220 Ohm 10. 3 Buttons 11. LED 12. Breadboard, Jumper wies, stripboard etc
The circuit Diagram of the project is shown in the figure below, so assemble it in breadboard or you can make your own circuit.
Similarly if you have any problem in assembling the circuit then you can take help of the below assembled circuit of breadboard which can be easily assembled just by seeing the circuit diagram here. Thus Live Weather Station using Arduino can be build in anyway as your choice.
1. BMP180 – Barometric Pressure & Temperature Sensor
It is a low-cost sensor for measuring barometric pressure as well as temperature. As pressure changes with altitude you can also use it as an altimeter for measuring the height above sea level. This board is 5V compliant – a 3.3V regulator and a i2c level shifter circuit is included so you can use this sensor safely with 5V logic and power.
2. DHT22-Temperature-Humidity sensor
The DHT22 is a basic digital temperature as well as humidity sensor that uses a capacitive humidity sensor & a thermistor to measure the surrounding air moisture. It is very accurate and fast that after evry 2 seconds it uploads the new data.
Simply connect the first pin to 3-5V power, the second pin to data input pin and right pin to ground. Although it uses a single-wire to send data it is not Dallas One Wire compatible.
3. RTC – DS1307
The DS1307 real-time clock (RTC) is a low-power simple circuit. It has full binary-coded decimal (BCD) clock/calendar along with 56 bytes of SRAM. The clock/calendar provides seconds, minutes, hours, day, date, month, and year information. The end of the month date is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in either the 24-hour or 12-hour format with AM/PM indicator. When its circuit detects power failures, it automatically switches to the backup supply.
Working of the Circuit
The three buttons used here are used to adjust the time because the RTC has a margin of error of one minute per month. The DISPLAY, RTC and BMP180 communicate with Arduino through the I2C protocol and the library Virtual Wire. The RTC is supplied by a buffer battery as when the power is off it continues to calculate the passage of time.
The I2C module for the display allows you to adjust the contrast and the jumper can turn off the backlight led, but if we put in place the jumper a photoresistor with the increase of the light, its resistance decreases, as a result, increases the brightness of the display, while, in low light conditions, the resistance is very high and the brightness decreases. This DHT22 sensor provides the temperature and humidity of the environment. The data pin is connected to pin of arduino. The Arduino pin interested in this feature are: Pin 6 = menu, Pin 7 = +ve ,Pin 8 = –ve.
Program/Source Code: Live Weather Station using Arduino
The programming for Live Weather Station using Arduino, RTC, Pressue & Temperature Sensor is done in Arduino language. So there are four different Header file used here. You need to update the zip file to Arduino library as these libraries are not available by default. Download the libraries from adafruit.
The Arduino Source code can be downloaded from the link below. The zip file also contains the necessary diagram used for the project, i.e Live Weather Station using Arduino, RTC, Pressure & Temperature Sensor.
Download Source Code