IoT Push Notification Using Nodemcu on Phone(For Anything)

by Abhrodeep Chanda in Circuits > Wireless

24967 Views, 67 Favorites, 0 Comments

IoT Push Notification Using Nodemcu on Phone(For Anything)

papap.jpg

Sending notification for messages, emails are old fashioned...

So lets make something new that is very easy and simple NO COMPLICATED SERVER SIDE PHP HOSTING OR OTHER COMPLICATION...

Home automation, water pump level, garden watering, automated pet feeding, PIR alarm and much more whatever you want to get notified on your phones.(android/iOS)

ENJOY and be lazy but get notified!!!!!


Components Required

NodeMCU_ESP8266_development_board_1024x1024.jpg
PIR-motion-sensor-pinout.png
ultrasonic.jpeg
P_20131016_165011-min.jpg

the main component is Nodemcu(ESP8266) or any other equivalent development boards like adafruit huzzah, wemos d1 mini etc.

And the sensors to use depends upon your need...

I'm using the notifier to notify my previously made internet/cloud controlled project, PIR alarm circuit, ultrasonic sensor controlled water level, IR sensor door!!

After the configuration of sensors the vital thing left is programming.

To configure nodemcu in arduino please visit my previous instructables...

NOTE: Please read the whole instructable don't half read it and damage your kits, I will not be responsible :P

ESP_Notify and Library

FM472D9J1CEMXAK.MEDIUM.jpg
unnamed.png
Capture.JPG
Capture.JPG

We can find the ESP notify application on google play store or we can get the apk from anywhere esle.

After installing the app we need to

  1. SIGN IN(using google account)
  2. press the SEND TOKENs option
  3. use your email
  4. in email you will get the USER ID, DEVICE ID and Library zip URL
  5. download the zip from the link

Once the library is downloaded you can add it to your Arduino IDE by

  1. clicking on Sketch
  2. Include Library
  3. Add .ZIP Library in the IDE and then selecting the downloaded ESP_Notify-master.zip file from your Download folder.

CODING

Capture.JPG

To know something about the library go for the examples in arduino:

  1. File
  2. Examples
  3. ESP_Notify
  4. send_notification.

To make it work just do change 3 things your WiFi SSID (name), WiFi password and Device_Id.

Device_Id you can get from the email forwarded previous by SEND TOKENS.

So after testing the code we can now tweak it for our use like previously told...

Home automation, PIR alarm, water level alrm, IR door sensor notification

NOTE:** PLEASE CHECK THAT DEVICE_ID IS PROVIDED RIGHT AND IN PROPER QUOTATION(NO MISALIGNED QUOTATION)**

Circuit Wise Program

P_20171120_122947.jpg
nodemcu_pirultra.jpg
Screenshot_2017-11-20-12-18-39.jpg

I have used PIR sensor, Ultrasonic sensor, IR sensor for different works as well as in cloud controlled project I have inserted the library and used the "notifier.sendNotification(device_id,"header","message")" in desired places to get notified on my phone on actions.

According to my code I have used pin D0,D1 for Ultrasonic sensor, D2 for PIR, and D3 for IR sensor.

So download the above given code and modify it like you want.

ESP Notify App

Screenshot_2017-11-20-13-16-38.jpg
unnamed.png

From the app we are getting the desired notification and its the simplest app I have found for notification with ESP8266. It's not the best but the simplest.

Pros- very easy, simple, reliable

Cons- couldn't find if parameters can be passed till now, may be added afterwards..

Thanks for the application and the easy to use procedure without going in a hectic process of app, event, php on server creation.

So enjoy and support...