The world is getting crazy now a days and now is the time more than ever to upgrade your home's security system! We created an IoT project that senses motion and lights up to scare off any intruders. This device is mobile and can be placed at any entrance of the home. It consists of two particle photons, a PIR sensor and two LEDs that illuminate the eyes of Ron Swanson to scare off any potential threats.Motion Sensor and LED Setup:
The first Photon is connected to the PIR motion sensor. When motion is detected, the sensor send the photon a signal, which in turn causes the Photon to publish that event on the particle cloud. The second Photon subscribes to that event and then gives on output of voltage at a certain pin (D7) which gives power to the LEDs. The second Photon (LED) then communicates with the first Photon by flashing the LED on D7 of the first photon. This signal means motion was detected. Below you can see the graph of time vs motion detected and pictures of what the finished product looked like.
1 / 10 • Top view of the Motion Detecting Photon
By utilizing the IFTTT app, we were able to graph the realtime data that was being published by the photon. Each time an event occurs, the photon publishes the data. The IFTTT service then takes that data and graphs it in a google sheet. The graph shows how many times motion was detected per minute.
Real time graph of events
Below is a link to this sheet so you can see for yourself the real time events.
Below are pictures of what the IFTTT page looked like. The input used to collect data to graph the motion data is shown below.
1 / 2 • 2nd page of IFTT screen
How It Was Tested:
The device was placed in front of a doorway and left to gather data for multiple minutes. This was to test if the sensor could preform if the door was opened multiple times within a minute. In the graph above, it is clear that the sensor can detect multiple events within a minute. Below is the list of events that were detected by the motion photon.
Events published by Photon