How to Make Firebase Home Automation System Using NodeMCU | in IOT Platform

About: I am Sarful , I am a Mechatronics Engineer & also a teacher in Rajshahi Polytechnics Institute I am Interested in the evolution of technology in the automation industry , and i aspire to teach this techn...

OBJECTIVE OF THIS PROJECT

This project aims to develop a home automation system that gives the user complete control over all remotely controllable devices of his/her home using IOT Android app.
There are many third party online server and platforms available for showcasing the data of your IOT project. But, all of these platforms like ThingSpeak,Adafruit.io,Blynk and IFTT etc but today i select firebase

Step 1:

Step 2: Why You Select Firebase

Firebase provides a quick way to persist sensory data collected at the device level, and it works great with the Android APIs, which is supported by AndroidThings. A lot of mobile and device programmers that I have come across struggle with server side programming. Firebase can really help bridge that gap and make it easier.It will be interesting to see developers use its offline features. If you are new to IoT or in general any device that collects data and needs to transmit it over networks, the golden rule to be assumed is that network connectivity cannot be assumed. As a result, you will need to collect the data offline and when network is available, transmit this over to your server. Firebase with its offline feature can really make this simple for a lot of developers.

Firebase has a ton of features including Real-time Database, Authentication, Cloud Messaging, Storage, Hosting, Test Lab and Analytics but I’m only going to use Authentication, Real-time Database.

Step 3: Ok Lest Go to Project Destruction......

I will devide this project Three part part

1. Creating fairbase account

2. App making

3.Ardunio program part

Step 4: Creating Fairbase Account

First go to https://console.firebase.google.com/ and login

Click on Add project

Step 5: Then Show Like This Interface and Give Project Name and Select Country Name

Step 6: Hear I Select Project Name Home Automation and Select My Country Then Press Create

Step 7: After a Moment Show This Interface Click on Contention

Step 8: Then Go to Get Started

Step 9: Go to Rules and Eadit Code Like Image

Step 10: Go to Your Setting Then Show Your Api Key

Step 11: App Making

No tension i will provide you a complete row file for appinventor just click here and download this

no go to ai2.appinventor.mit.edu for open this file

Step 12: Now Go to Project and Import Homeautomation.aia File on Your Computer

Step 13: Click on Red Circle Option and Flow That Image Commend

Step 14: Ardunio Program Part

You have to need some change on your ardunio code

FIREBASE_HOST copy and past on fairbase database

FIREBASE_AUTH copy and past on project setting

and setup your WIFI name amd password

Download ardunio cod from here click here

This tutorial first published on click here

more tutorial about Nodemcu click Here

Share

    Recommendations

    • Make it Glow Contest 2018

      Make it Glow Contest 2018
    • Optics Contest

      Optics Contest
    • Plastics Contest

      Plastics Contest

    Discussions

    0
    None
    HardikP48

    2 months ago on Step 14

    Exception (29):

    epc1=0x40205d25 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

    ctx: cont

    sp: 3fff0640 end: 3fff0880 offset: 01a0

    >>>stack>>>

    3fff07e0: 00000001 3ffef5f8 3fff0810 40205d1f

    3fff07f0: 3ffe89f4 00000000 3ffef5f8 40205580

    3fff0800: 00000001 3ffef5f8 3ffef828 40202457

    3fff0810: 3fff157c 0000002f 00000028 3fffbfc4

    3fff0820: 0000001f 0000001b 00000000 40207284

    3fff0830: 3fffdad0 3ffef5f8 3ffef828 402024d2

    3fff0840: 00000000 00000000 00000000 00000000

    3fff0850: 00000000 00000000 00000001 4020816d

    3fff0860: 3fffdad0 00000000 3ffef84d 40208198

    3fff0870: feefeffe feefeffe 3ffef860 40100710

    <<<stack<<<

    ets Jan 8 2013,rst cause:2, boot mode:(3,6)

    load 0x4010f000, len 1384, room 16

    tail 8

    chksum 0x2d

    csum 0x2d

    v614f7c32

    ~ld

    I AM GETTING THIS ERROR CAN YOU HELP ME TO RESOLVE THIS PROBLEM