Close
0%
0%

IoT Notifier

Stuck at home away from your loved one? This fun little project will definitely try to bring a smile to your faces.

Similar projects worth following
The plan was to use IFTTT (If This Then That) to scan for particular events happening on the mobile phone which then triggers a web request. Dweet is used to publish data from the IFTTT and then get the same data using ESP12E.

When I started with the project the idea was to make a notifier that lets me know if there is a message, call, etc. from a particular person. But then I realized that much more can be done using IFTTT. So, I decided to add notifications like low battery, button widget and Twitter. You can add more events from IFTTT.

Love_Notifier_Gerber.zip

Gerber files for the PCB

x-zip-compressed - 92.58 kB - 04/29/2020 at 06:49

Download

ino - 3.96 kB - 04/29/2020 at 06:32

Download

Standard Tesselated Geometry - 10.43 kB - 04/29/2020 at 06:31

Download

Standard Tesselated Geometry - 12.78 kB - 04/29/2020 at 06:31

Download

  • 1 × ESP-12E WiFi Module
  • 1 × WS2812B Individually addressable RGB LEDs

  • 1
    How Does It Work?

    IF an event (message, low battery, call, etc.) occurs, THEN a web request is made to Dweet and "posts" the data in the form of JSON.

    For example, if the battery drops below 15%, an event is triggered which makes a web request to http://dweet.io/dweet/for/mythingname?Noti=battThis adds "Noti":"batt" to the JSON code. Noti is the 'key' and batt is its 'value'.

    {
    "this":"succeeded",
    "by":"getting",
    "the":"dweets",
    "with":
    [{
    "thing":"mythingname",
    "created":"2020-03-25T09:13:17.566Z",
    "content":{
    "Noti":"batt"
    }
    }]
    }

     ESP12E then connects to Dweet and "gets" the published data using http://dweet.io/get/latest/dweet/for/mythingname and parses the above JSON to check the value of "Noti". Every event is assigned a different value and this is how ESP12E knows which event has been triggered.

    The ESP-12E then displays the animation continuously until you press a button at the back.

  • 2
    Setting Up IFTTT and Dweet

    Setting up Dweet:

    To check whether it is available, type http://dweet.io/get/latest/dweet/for/yourthingname

    • You just need to think a name for thing.
    • If you get a response as shown in the figure, then it is available.

    Setting up an IFTTT Applet:

    URL - http://dweet.io/dweet/for/indoorgeek?Noti=batt

    • Visit IFTTT and create an account
    • Click on "Explore" and then "Make your own Applets from scratch"
    • Click on "This" and choose "Android Battery" from the list
    • Choose trigger - "Battery drops below 15%"
    • Click on "That" and choose "Webhooks" from the list
    • Choose action - "Make a web request"
    • Method - POST
    • Content type - text/plain
    • Click on "Create Action"

    Download the IFTTT Android/iOS app and log into your account. The app will automatically ask you to allow access to various services depending on the applets created. Else, you have to give permissions manually.

    In the app, go to Settings>Sync options and enable "Run Location, Android Battery and WiFi connections faster".

    Similarly, you make many applets. Just change the URL portion which is in bold http://dweet.io/dweet/for/indoorgeek?Noti=batt.

    Android Battery - batt

    Twitter - twitter

    Button - button

  • 3
    PCB Designing

    You can use any software you like for designing PCBs. I am using EasyEDA as it is suitable for newbies like me. I have attached the schematic. Click here to download the Gerber files for the PCB.

    Make sure that there is no ground plane below the WiFi antennae of the ESP-12E module.

    For programming purposes, pads are provided for TX, RX, RST, D3 and GND.

    Once you have completed designing the PCB, get it fabricated from the manufacturer of your choice. I chose JLCPCB because of its quick service.

    I soldered the 27 LEDs using the reflow soldering using cloth iron. I had to hand solder the ESP-12E module as well as some other SMD components on the backside of the board.

    Mistakes which I did:

    • didn't check the schematic and so missed a GND connection to an LED. I had to scrape off the solder mask over the ground plan and bridge the solder joint.
    • I didn't add a 100nF capacitor at the output of the voltage regulator. ESP-12E draws more current when it is connecting to WiFi. In the absence of the capacitor, the voltage drops just enough to reset ESP-12E.

    Don't worry! I have uploaded the rectified files for PCB.

View all 6 instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates