|Table of Contents|
1. Component list
- 1× esp8266-07
- 1× PIR Sensor
- 1x Bread Board Power Supply
- 1x 12V AC-DC Power Adaptor
- 2x 400pin Breadboard
2. Overall idea
In this project we are using the ESP8266 WiFi module and PIR sensor motion detector to get e-mail alerts when motion is detected. We are using GadgetKeeper Cloud Platform to bind e-mail notifications with PIR Sensor.
3. Prepare the hardware
|Reset||via push button to gnd|
|GPIO12||PIR sensor data pin|
|TXD||CP2102 TXD Pin|
|RXD||CP2102 RXD Pin|
NOTE: to upload code to ESP8266 first connect GPIO0 pin to ground, reset esp and then upload code. After uploading code GPIO0 can be disconnected again.
4. Configure Arduino IDE
In Boards Manager search for esp8266 and install the ESP8266 package.
5. Add required additional Arduino libraries
The required libraries can be downloaded from following link:
Installing Additional Arduino Libraries guidelines can be found on official Arduino site.
6. Configure GadgetKeeper
Create the "Alarm" thing first.
|If you need detailed "point and click" UI instructions how to create even see "Create Event And Trigger" on GadgetKeeper Documentation.|
7. Arduino sketch
This is the arduino sketch for this cheap homemade IoT device. Every time the PIR sensor is triggered is sends data to GadgetKeeper Cloud to trigger email notification event. It can be also downloaded form github esp_pir_snesor.