Monitor Your Room From Anywhere in the World

by Bhanu Kishan in Circuits > Arduino

50227 Views, 562 Favorites, 0 Comments

Monitor Your Room From Anywhere in the World

Upload
DSC_0078.JPG
DSC_0062.JPG
Hi all, I am here to explain steps to make your home secure and monitored in real time even when you are NOT at your home. This interactive device will notify when something is wrong at your house. This device can communicate room status anytime to your smart phone through cloud (Thingspeak).

Lets get started

Materials Required

DSC_0078.JPG
ArduinoUNO.jpg
ethernet.jpg
Ultrasonic sensor.jpg
DHT11.jpg
MQ-2.jpg
OLED.jpg
servo.jpg
1. Arduino UNO

2. Arduino Ethernet shield

3. Ultrasonic distance sensor (You can use a PIR sensor, if you want to. I don't have one so used distance sensor)

4. DHT11, temperature and relative humidity sensor

5. Gas sensor (MQ-2)

6. OLED display (optional)

7. Servo motor (This is optional, I used this to mount the distance sensor and screen the room while rotating)

8. Jumper wires

Circuit

Here are the details of the connection

Note : A- analog; D- digital

Ultra Sonic Sensor - Arduino 9 (Range upto 4m)

(Note you can use PIR sensor which has a range upto 10m)

Vcc - 5V supply (Parallel connection via Breadboard)

GND - GND

Trigger - D8

Echo - D9

MQ2 - Arduino

Vcc - 5V supply (Parallel connection via Breadboard)

GND - GND

AO - D4

DHT11 - Arduino (Temperature sensor)

Vcc - 5V supply (Parallel connection via Breadboard)
GND - GND

Signal - D2

OLED Display - Arduino

Vcc - 3.3V supply

GND - GND

SDA - A4

SCL - A5

Servo motor - Arduino (optional)

Vcc - 5V supply (Parallel connection via Breadboard)
GND - GND

Signal - D3

Thingspeak Channel

temp_600903982.jpg
temp_1182232245.jpg
temp_900239454.jpg
temp_775417698.jpg
Thingspeak is an open source cloud platform. You can send the sensor details to the cloud and get notifications to your smartphone or monitor your room via Thingspeak website.

Step 1:

Create an account in "www.thingspeak.com" website

Step 2:

Click "New channel" on your main home page

Provide the details of your channel like

1. Name

2. Description:

3. Fields: In our case, four fields are "temperature, Relative humidity, Gas Concentration, Intruder distance"

4. You can also give latitude and longitude of your room location

Step 3:

You can set this channel Public or Private as per your wish in " Channel settings" tab

Step 4:

Note down the "Write API" key number which is unique number to a channel created. Use this channel API number in your arduino sketch shown below

"const char * myWriteAPIKey = "xxxxxxxxxxxxxxx";

Step-5:

Here are the two steps you need to follow to view your room status on your smartphone
1. Download and install "ThingView" app from google play store. here's the link (https://play.google.com/store/apps/details…)

2. Type channel ID as "xxxxx"

attached are the pics you see in the app if everything works properly

You can also get notifications via twitter from "thingspeak" channel by setting the limits of the fields in "Apps" tabs. explore this section for more details....

Done..Compile and upload the sketch to your arduino and you are all set to stream your room data online....

Sketch and Libraries

For this sketch to work, use the libraries attached.

Extract the files from rar file and copy them to arduino documents libraries folder.

Conclusion

Let me know if you have any queries while following this instructable

Thanks