Know How...

Sep 25th 2017

Know How... 347

Cayenne - Security on the Cheap!

Using a RasPi and Cayenne as a security system.

Although the show is no longer in production, you can enjoy episodes from the TWiT Archives.
Category: Help & How To

Security on the Cheap
- Hector Sotomayor
"I need a security solution. What I'm looking for is this: when someone steps on our porch, some motion sensors will detect them and send me a notification on my phone. Also... it sets off strobe lights to alert anyone passing by and to potentially warn the thief that we know he's on the premise."

Let's break down the requirements

  1. A sensor to detect motion on a porch
  2. A phone notification when motion is detected
  3. A strobe that triggers when motion is detected

We're going to use "Cayenne" by myDevices

Parts:

  1. RasPi (Any Version)
  2. 5V Power Supply
  3. Relay
  4. Motion Detector

Solution Logic Overview:

  1. The motion sensor is triggered. In turn, it triggers a pin on the RasPi
  2. The RasPi triggers the relay to turn on the electrical load (Strobe)
  3. The RasPi reports the trigger event to myDevices
  4. myDevices sends a text message to the phone

RasPi 2b Pinout
https://blog.adafruit.com/wp-content/uploads/2015/06/raspberry.jpg

PIR Motion Sensor Schematic View

Tutorial:

  1. Navigate to "https://mydevices.com"
  2. Create a new account (or login to your existing account)
  3. Select "Add New" (If the account has been accessed previously)
  4. Select "Raspberry Pi"
  5. Open RasPi terminal
  6. Copy and past the two commands from "Option 2" into the terminal window
  • Once the scripts have finished, "myDevices" is running on that RasPi (This could take up to 20 min)
  • After a reboot, the RasPi will show up in your myDevices Desktop (You need to refresh the browser)

Connect with us!

Thanks to CacheFly for the bandwidth for this show.