How to Make Firebase Home Automation System Using NodeMCU | in IOT Platform
by sarful in Circuits > Arduino
7690 Views, 7 Favorites, 0 Comments
How to Make Firebase Home Automation System Using NodeMCU | in IOT Platform
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
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.
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
Creating Fairbase Account
First go to https://console.firebase.google.com/ and login
Click on Add project
Then Show Like This Interface and Give Project Name and Select Country Name
Hear I Select Project Name Home Automation and Select My Country Then Press Create
After a Moment Show This Interface Click on Contention
Then Go to Get Started
Go to Rules and Eadit Code Like Image
Go to Your Setting Then Show Your Api Key
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
Now Go to Project and Import Homeautomation.aia File on Your Computer
Click on Red Circle Option and Flow That Image Commend
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