Home Security System

Sleep Sound, Stay Safe!

Made by ccfisher

This gadget is designed to alert homeowners when someone is trying to break into their home. It achieves this through placing two sensors on the doorknob, sensing human touch in two different ways, ensuring more reliable burglar detection. When the system is activated, the Force Sensitive Resistor sensor can sense pressure from the hand coming into contact with the knob. The temperature sensor will also sense if the temperature rises on the doorknob and is set to a threshold to only react to human skin. If either of these sensors reaches their limit, the system will turn on the lights in the home to wake up and alert the homeowners. If the robber sees the lights turn on in the house (regardless of whether the owner is home), there is a 91% chance they will be scared away.

Created: January 27th, 2015

0

This gadget is designed to alert homeowners when someone is trying to break into their home. It achieves this through placing two sensors on the doorknob, sensing human touch in two different ways, and therefore ensuring more reliable burglar detection.

When the system is activated, the force sensitive resistor can sense pressure from the hand coming into contact with the knob. The temperature sensor will also sense if the temperature rises on the doorknob and is set to a threshold to only react to human skin. If either of these sensors reaches their limit, the system will turn on the lights in the home to wake up and alert the homeowners. If the robber sees the lights turn on in the house (regardless of whether the owner is home), there is a 91% chance they will be scared away.

Looking forward....
The system would be comprised of a high-decibel alarm in addition to the visual alert in order to wake up the homeowner, inform the homeowner of invasion, and potentially scare away the criminal. It would also connect to the phone lines to call 911 and ask for a return call to the residence, and automatically send a text message to the homeowner in case they are not present during invasion.

Project Documentation:
1) photo of working circuit
2) code
3) screenshot of variable feedback
4) video of working system

0
// Define the Pin the Temperature sensor is on
int tempPin = A0;

// Define a pin that we'll place the FSR on
// Remember to add a 10K ohm pull-down resistor too
int fsrPin = A2;

// Create a variable to hold the FSR reading
int fsrReading = 0;

// Define a pin we'll place an LED on
int ledPin = D0;

// Create a variable to store the LED brightness.
int ledBrightness = 0;


// Create a variable that will store the temperature value
double temperature = 0.0;
double temperatureF = 0.0;

void setup()
{
  // Register a Spark variable here
  Spark.variable("temperature", &temperature, DOUBLE);
  Spark.variable("temperatureF", &temperatureF, DOUBLE);

  // Connect the temperature sensor to A0 and configure it
  // to be the input
  pinMode(tempPin, INPUT);

  // Setup the LED for output
  pinMode(ledPin, OUTPUT);

  // Create a cloud variable of type integer
  // called 'light' mapped to photoCellReading
  Spark.variable("force", &fsrReading, INT);
}

void loop()
{
  // Keep reading the sensor value so when we make an API
  // call to read its value, we have the latest one
  int reading = analogRead(tempPin);

  // The returned value from the Core is going to be in the range from 0 to 4095
  // Calculate the voltage from the sensor reading
  double voltage = (reading * 3.3 / 4095.0);

  // Calculate the temperature and update our static variable
  temperature = (voltage - 0.5) * 100;

  // Now convert to Farenheight
  temperatureF = ((temperature * 9.0) / 5.0) + 32.0;

  // Use analogRead to read the photo cell reading
  // This gives us a value from 0 to 4095
  fsrReading = analogRead(fsrPin);

  // Map this value into the PWM range (0-255)
  // and store as the led brightness
  ledBrightness = map(fsrReading, 0, 4095, 0, 255);

  // fade the LED to the desired brightness
  analogWrite(ledPin, ledBrightness);

  // wait 1/10th of a second and then loop
  delay(100);
}
Click to Expand
x
Share this Project


About

This gadget is designed to alert homeowners when someone is trying to break into their home. It achieves this through placing two sensors on the doorknob, sensing human touch in two different ways, ensuring more reliable burglar detection.

When the system is activated, the Force Sensitive Resistor sensor can sense pressure from the hand coming into contact with the knob. The temperature sensor will also sense if the temperature rises on the doorknob and is set to a threshold to only react to human skin. If either of these sensors reaches their limit, the system will turn on the lights in the home to wake up and alert the homeowners. If the robber sees the lights turn on in the house (regardless of whether the owner is home), there is a 91% chance they will be scared away.