Have you ever been wearing your headset and someone sneaked on you and freaked you out? We got the solution for you.
Background:It’s common that whenever you wear a headset you start hearing imaginary sounds. Sometimes you take off your headset and sometime you just ignore it. So for this project, we have utilized two Photons with their sensors to communicate with each other to notify you when motion is triggered
How It Works:First Photon is connected to a PIR motion sensor. The sensor will detect any motion. When motion is detected an event will be uploaded to the particle cloud. Then, the second Photon is connected to the cloud so LED light is triggered when an event is published by the first Photon. Also, using IFTTT the events are uploaded to Google Spreadsheet that shows life feed for the data.
For the LED Photon, the negative terminal of the LED light was connected to the ground terminal of the Photon, and positive terminal of the LED lghit was connected to D7 terminal of the Photon.
For PIR motion sensor Photon, the voltage was supplied by voltage terminal in the Photon, negative terminal was connected to the ground and the third wire was connected to D1
Particle build was used to code the Photons. The code was uploaded to particle website. Then it was flashed to the Photons. The first Photon would publish events and the second one is subscribed to the events.
The pictures below show how the Photons are connected in the circuit.
https://docs.google.com/spreadsheets/d/1MUB357LP-9d0HtJidni9ZJYFhGW86b1vwZ610YISSRA/edit#gid=0
Video:
Comments