Is My Fridge Door Open?!

by ssarthak598 in Circuits > Arduino

2092 Views, 5 Favorites, 0 Comments

Is My Fridge Door Open?!

IMG_1083.JPG

Ever left your fridge door open? Ever it costed you 3x your eletricity bill because of your fridge door open?

Here i'll show you a smart technequre where you can use your LinkitONE and get SMS if your fridge door for open for more than 120 seconds.

What Do You Need?

IMG_1039[1].JPG
IMG_1084.JPG
IMG_1097.JPG

1 . LinkitONE board

2. Jumpers

3. Breadboard

5. LinkitONE GSM antena

6. Battery pack

7. Pressure sensor

8. A fridge

Hacking Into the Fridge

IMG_1085.JPG
IMG_1086.JPG
IMG_1089.JPG
IMG_1090.JPG
IMG_1094.JPG

Look for places where we can attach a pressure sensor to the setup so that we can sense if the door was ope. I found that to be the edge of my fridge.

Adding the Pressure Sensor

IMG_1100.JPG
IMG_1101.JPG
IMG_1098.JPG
IMG_1099.JPG

Attach the pressure sensor to the breadboard carefully. Its terminals are very sharp so do take care of that.

Connecting the LinkitONE

IMG_1103.JPG
IMG_1102.JPG

Now connect the LinkitONE to your circuit. Then you are done!

Finalizing the Setup

IMG_1105.JPG
IMG_1106.JPG
IMG_1104.JPG
IMG_1092.JPG
IMG_1091.JPG

Now finalize the setup by connecting the LinkitONE to the fridge. Make it fixed with some duct tape.

Setting Up GSM and SMS

IMG_1034[1].JPG
IMG_1031[1].JPG
IMG_1035[1].JPG

Set up the GSM and SIM card by inserting it into the card slot. Attach the GSM antenna as well. After this move to next step and finalize the circuit.

Writing Some Code

The code is really simple here!

We're just taking some analog readings from sensor, detecting if threshold completed and processing them and then sending SMS.

CODE:

------------------------------

#include<LGSM.h>

void setup() {

Serial.begin(9600); pinMode(8,INPUT);

char doorn[14]="xxxxxxxxxx";

}

void loop()

{

int myanalogreading=analogRead(9);

if(myanalogreading<500) {

char doortxt[200]="Someone At Door!";

sms.beginSMS(doorn);

sms.println(doortxt);

sms.endSMS();

}

delay(500);

}

------------------------

Now burn this code and then lets start playing!

Testing It Out!

IMG_1096.PNG
IMG_1107.JPG

Now test it out!

Keep your door open!

And you get an alarm notification!