Main Menu

Secondary Menu

AlarmPi - IoT Alarm System

Introduction: AlarmPi - IoT Alarm System

AlarmPi is an alarm system ESP - Raspberry Pi - Telegram based.As you can see in the explanatory pic:

The ESP module works as a device for reading sensors (in this case, for motion detecting by the PIR, but you can use any kind of sensor, because the raspberry pi server is very modular and it can reach any kind of request from ESP!!. So, not only PIR sensor!).

After reading, it sends a message to the Raspberry Pi local server (step 1 - 2).

Raspberry server, only intercept this kind of message and sends it to you through Telegram (step 3 - 4).

Then you will receive a message on your own chat (step 5).

Step 1: Setup Linux Server

First, we need a server that can intercept all our requests sended by the IoT device(s) (esp8266).

So, we need a Raspberry Pi (I'm using a RPi3 model), or other similar devices with a Linux distro installed (in my case Archlinux).

After installing the Linux distro and connect the device to your home router, we need to set it up to do its job:

Attachments

Step 2: Setup and Upload Sketch on You ESP System

For the second and latest step we need to assemble a little electronic circuit with the following components:

Power supply 3.3/5v

Serial programmer FTD1232

ESP module (in my case Espresso Lite v2.0 or ESP8266-01)

PIR sensor (or any other kind of sensor you want!)

This electronic circuit will detect motions and will send these to the AlarmPi server.

After you assembled electronic circuit, you need only to upload the sketch from Arduino IDE or similar through FTD1232.

N.W: In the Fritzing image above, the cyan wire is linking GPIO0 to Vcc. This is to boot the ESP form SPI Flash (only after you uploaded the sketch). If you haven't already uploaded the sketch, cyan wire has to be connected to the GND, to boot ESP in 'Download from UART' mode. It can be seen at: https://github.com/esp8266/esp8266-wiki/wiki/Boot-Process