Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
  • Wires

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

...

 

 

ESP8266 Wiring

PIN name Connection
Reset via push button to gnd
GPIO12 PIR sensor data pin
VCC 3V3
TXD CP2102 TXD Pin
RXD CP2102 RXD Pin
GPIO0 GND
GND GND

...

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

...

Download Arduino IDE from Arduino.cc (1.6.4 or greater) - don't use 1.6.2! You can use your existing IDE if you have already installed it

...

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.

...

 

Tip
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.

...