Have you ever walked into a room and it's pitch black and you can't find the light switch, well we have the solution for you! This project will turn on a lamp as your drunken self stumbles in the door looking for the light switch. It utilizes a PIR motion sensor and a relay connected to 2 Particle Photons connected via internet.
Details
The sensor is placed next to the door, when the door is opened, it triggers the sensors which sends a "Detected" event to the particle cloud using the first photon.
The second photon reads the event from the particle cloud and outputs power from the designated pins. The power is input into a relay which is spliced into an extension cord where the lamp is plugged in.
The code is easy to adjust so that we can change the delay of the lamp on time.
https://docs.google.com/spreadsheets/d/1P5zMBW8kJ7VoTPAKfvT9CPRRgw-aCu9N0DzM-Fh0Bzk/edit#gid=0
Comments