Introduction: Monitor Your Room From Anywhere in the World

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

Step 1: Materials Required

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

Step 2: 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

Step 3: Thingspeak Channel

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....

Step 4: 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.

Step 5: Conclusion

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

Thanks

Comments

author
muhdaniq (author)2016-11-06

i have succeed in compiling and uploading the coding..but the serial monitor shows nothing and thingspeak shows no result..please help me

author
Bhanu Kishan (author)muhdaniq2016-11-07

Then there should be no problem with the syntax. Then do the following

1. Check all your connections if they are as per the instructable.

2. Check whether your sensors are working.

3. Finally all seems alright, start trouble shooting with one of the sensors say DHT11/ gas sensor / ultrasonic sensor and try to figure out the problem.

4. If you are sure all your sensors are working properly, then start looking at your serial connections like D0 and D1 issues.

author
muhdaniq (author)2016-10-27

why there are errors when compiling the coding in arduino software?

author
Bhanu Kishan (author)muhdaniq2016-11-02

What are the errors? Can you post them? I can help you out if I figure them.

author
LeeJ35 (author)2016-04-11

I also would like the schematics and circuit diag please

author
NitinN2 (author)2016-04-07

Bro do you have the schematic and the connection to the arduino and the sensors...

author
Bhanu Kishan (author)NitinN22016-04-07

Okay, I will upload the schematic but will be available after 11th as I am out of station

author
muhdaniq (author)2016-03-30

can you show the schematic diagram for this project?

author
Bhanu Kishan (author)muhdaniq2016-04-06

Any trouble in understanding the circuit section?

author
NitinN2 (author)Bhanu Kishan2016-04-07

Yes I am unable to see the pin and the connections.

author
muhdaniq (author)Bhanu Kishan2016-04-06

thank you so much..this is really helpful

author
Guna Sekaran (author)2016-04-02

I need the circuit connection

author

I gave all the steps and connections in the circuit subsection. if you have any issues following them please let me know. I felt this is more simpler than a circuit diagram.

author

Thanks ,do u know any easy projects related to electronics

author
Amilton7 (author)2016-03-31

Great stuff

author
Bhanu Kishan (author)Amilton72016-04-06

thank you

author
Cazverde (author)2016-03-31

Hi, Nice project. Can one put a sound monitor on this?

author
Bhanu Kishan (author)Cazverde2016-04-06

What do you mean by sound monitor? does it mean a buzzer or some sort of speaker to alert the security system?

author
Ethan8or. (author)Cazverde2016-04-02

Yes, probably, but I don't know how to.

author
vandenbrande (author)2016-03-31

Nice stuff... but i thought it was security camera stuff. I use my Security cameras and a hidden computer with teamviewer to watch my home from wherever i am, even in china. Everytime when i feel a little paranoia about my home, i take a look on my phone LOL.

author

yeah that was good. but i did this as a starting point for the next version. I didnt find a camera compatible to arduino and associated libraries so I tried something with Ultrasonic sound sensor. anyways thanks a lot for the idea.

author
BobD21 (author)vandenbrande2016-03-31

Don't be paranoid about your home, we are all looking after it for you.

author
EricS100 (author)BobD212016-03-31

Not me. I have an overseas group of minions to watch his house for me.

author
vandenbrande (author)EricS1002016-03-31

I think i have some under my shoe....

author
vandenbrande (author)BobD212016-03-31

Ah well... there is only 200 million hidden on the attic...lol

author
Raphango (author)2016-04-05

Nice! :D

author
Bhanu Kishan (author)Raphango2016-04-06

thanks

author
IsaacPierce (author)2016-03-31

Cool

author
Bhanu Kishan (author)IsaacPierce2016-04-06

thanks

author
JoseA124 (author)2016-03-31

Great job Bhanu. Thanks for sharing. Namaste.

author
Bhanu Kishan (author)JoseA1242016-04-06

thanks a lot for the encouragement. appreciate it

author
Eric.Hyungki.Jung (author)2016-03-03

Great!

author

Thank you :)

author
SteampunkN (author)2016-02-23

nice project...ty for sharing the details of this project...i want ask about the graph...how do we know i mean how do we read the graph if there is any intruders in our room??

author
Bhanu Kishan (author)SteampunkN2016-02-23

Thank you.

Idea is to fix the prototype somewhere opposite to the door approximately 4m or less for the sensor to detect. When no one is around, the graph shows constant variation of the measurement. In case, if someone enters the room, there is change in the measurement which is captured through the graph and also an alert can be raised if there is any sudden change in the measurement. Try to use IR sensor, which has 10m range than ultra sonic sensor(range-4m). Hope you got it..

author
KrishnaR25 (author)2016-02-15

What is the estimated Cost?

author
Bhanu Kishan (author)KrishnaR252016-02-15

(All in Indian currency)

UNO- costs you 500 - 1500/- depends on the brand

Ethernet shield - 650/-

DHT11 -150/-

MQ2- 220/-

OLED - 900/-

Servo motor - 150/-

Ultrasonic distance sensor - 150/-

Approximately -INR 2000- 3000. which is close to $30-$50

author
Saiyam (author)2016-02-14

Very nice project! You can even use WiFi instead of ethernet for making the process a bit easier..

author
Bhanu Kishan (author)Saiyam2016-02-14

thank you. Before using Ethernet shield , I tried using esp8266 but faced power issues / so tried Ethernet as it's cheaper/ yun is too costly to do this /

author
2Papajack (author)2016-02-13

Do you have a schematic diagram for this project?

author
Bhanu Kishan (author)2Papajack2016-02-13

do you mean a circuit diagram? I am in plans to make one / I will update next week

author
fberkm (author)2016-02-11

http://www.wemos.cc/wiki/doku.php?id=en:d1 it's like arduino uno with esp 8266

author
Bhanu Kishan (author)fberkm2016-02-11

Attached Thingspeak library will work for ESP8266 but you need to modify the sketch as per ESP8266 syntax.

author
fberkm (author)2016-02-11

Hi nice project! Can i use WeMis D1 instead of ethernet shield?

author
Bhanu Kishan (author)fberkm2016-02-11

Never heard about this shield / do you have any links about this shield?