Introduction: Remote Monitoring of Weather Using Raspberry Pi

Picture of Remote Monitoring of Weather Using Raspberry Pi

In this Project I am going to show you how to make a Remote Weather monitoring system using Raspberry Pi3

I am using PubNub Cloud service for this,Free...which is PubNub is a global Data Stream Network (DSN) and realtime infrastructure-as-a-service (IaaS) company based in San Francisco, California. The company makes products for software and hardware developers to build realtime web, mobile, and Internet of Things(IoT) applications.

PubNub's primary product is a realtime publish/subscribe messaging API built on their global data stream network which is made up of a replicated network of at least 14 data centers located in North America, South America, Europe, and Asia. The network currently serves over 300 million devices and streams more than 750 billion messages per month.

To understand how to use PubNub's cloud service see my YouTube Videos(I have included Link)

https://www.youtube.com/channel/UCZmdRrDSFOdVIuST-...

Step 1: Things You Need?

Picture of Things You Need?

1.Raspberry Pi

2.LCD 16x2 (I used HD44780 LCD)

3. Temprature Sensor.(I have Used DS18B20 Temperature sensor probe which follows one wire protocol)

4.LED for indication

5.Bread Board

6.Jumper Wires (M-M,M-F)

7.An Android Phone and a PubNub account

This Project coding is completely done in Python (If you don't know python don't worry I have included the code),You can also learn Python from my website www.embeddedstudy.com it's very easy
You have to install Os on Raspberry pi before you do this project please check my website on how to do so.

Step 2: Connection Diagram

Picture of Connection Diagram

You Have to connect your raspberry Pi via SSH to your LAPTOP to do coding.after loging in to pi with user name pi and Password:raspberry

to see the Raspberry pi pin diagram visit https://pinout.xyz/

do the connection as shown below connect a 4.7k ohm resistor between the VCC and Data wire of DS18B20 other wise we will not get the output.

Create one directory in raspberry pi and extract these files in to that directory

Click here to download the code!

Before that you need to download and install Adafruit LCD library in order for the LCD to work ,also install

to install this run following commands on Raspberry pi terminal

sudo apt-get update
sudo apt-get install -y python3 python3-pip python-dev

sudo pip3 install rpi.gpio

to install ADAFRUIT LCD LIBRARY

git clone https://github.com/adafruit/Adafruit_Python_CharL...

cd ./Adafruit_Python_CharLCD
sudo python setup.py install


Step 3: Working Explanation

Picture of Working Explanation

The code works with very simple algorithm

When we send "TMP" from PubNub Console it will reads the Room Temperature and sends back to PubNub the reception of TMP is indicated by blinking of LED for 5 seconds and Displaying in LCD

See the Video to understand more.

Comments

About This Instructable

879views

16favorites

License:

Bio: I am an Embedded systems and Electronics Projects Designer ,You can see my projects through www.embeddedstudy.com ,mail me at nithinpradeep786@gmail.com and ... More »
More by Nithin Pradeep:Mind Magic Game in Arduino - Birthday FinderRemote Monitoring of Weather Using Raspberry PiSmart Irrigation Project on Arduino
Add instructable to: