Having a motion sensor to alert to motion in any room can be a very useful application.
-Particle Photon board (and photon inventor kit essentials such as:)
-Jumper Wires (about 6 needed here)
-1 kOhm resistor
-A PIR Sensor
-Right Angle Connector-Through-3-Hole-Pin (JST) (for the PIR sensor connection the breadboard)
Circuit work below:
Design the circuit as show below. The LED light is useful because it shows that the motion sensor is working. No matter the location of the microcontroller on the breadboard, the wiring is the same.
Here is a general picture of the set up:
Go to Particle Build Dashboard and enter the attached code. This should prove that the motion sensor detects motion. The LED light should flash red as an indicator. I turned down the lights to show the response.
Then you set up your Pushover account.
Download the Pushover app and sign up your phone. Register your application to get an API token.
Test it to see if the Pushover app is working on your phone. Now you are ready for the final touches.
Go to IFTTT.com and set up your recipe. Connect your Particle account *and* your Pushover account to your IFTTT account. You do this though the channel tab.
Go to Create Recipe:
1) Go to Particle channel and select it for THIS.
2) Choose Event Published
3) In this code, the published event is called:
designingiot/s15/motion so write this as the published event. You can go manually in your code in the Particle Dashboard with any title/label by the Particle.publish. The Events Contents is optional in this code, so just leave it blank. Select the name of your Photon device.
4) Select Create Trigger.
5) THEN would be the Pushover channel and it will ask you to select notification alert. There is the option of high priority notification and that may be more ideal for the rate of alerts from the PIR sensor.
Here is a demonstration: