Home security system

A home security system watches the room through sensors: motion, smoke, flame and water leaks. Each sensor relies on its own piece of physics: infrared radiation, gas, or water conducting electricity.

Build an alarm with a motion sensor and sound it on smoke or flame. Enter a code on the keypad, open the door with an RFID card and combine everything into one system.

In this lab

  • motion, smoke, flame and flood sensors
  • keypad code
  • RFID card
  • access control

What you learn

A home security system watches the room through sensors: motion, smoke, flame and flooding. It limits entry with a code or a card. Each sensor relies on its own physical effect: infrared radiation, the effect of gas on resistance, or water conducting current. The aim is to wire these sensors, read their signals correctly and build a reliable alarm.

Tasks

  1. Build an alarm with the motion sensor
  2. Detect smoke and flame and raise an alarm with an "or" condition
  3. Split an analog reading into three ranges
  4. Collect digits from the keypad and check the code
  5. Grant access by RFID card number
  6. Combine all the parts into one system

What you can build

  • Entry control — When the door opens, the LCD shows who came in (card number) and when.
  • Kitchen gas alarm — A gas leak sounds the alarm and turns on a fan through the relay.
  • Basement flood alarm — When the water rises, the pump turns on by itself.
  • Safe — The right code makes the servo open the lock; 3 wrong tries lock it for 30 s.
  • Automatic hallway light — With motion in the dark, the light stays on for 20 s.
  • School attendance — Each pupil taps a card and its number is written to the Serial Monitor.

Virtual Lab › Robotics

Related labs

  • Robotics basics
  • Arduino
  • Arduino LED
  • Arduino sensors
  • Arduino servo
  • Arduino thermometer