Nodemcu firebase database Tutorial

(Last Updated On: July 17, 2019)

firebase

Description:

Nodemcu firebase- In This tutorial, you will learn how to create your firebase account and create your first project to monitor a sensor in real-time from anywhere around the world. As this is a getting started tutorial on how to use the firebase with Nodemcu esp8266 wifi module, that’s why I decided to use a variable resistor as the sensor to keep things simple, while in my upcoming tutorials I will use the firebase in some intermediate and advanced level projects.

For the detailed step by step explanation watch video Tutorial Click Here


The components and tools used in this project can be purchased from Amazon, the components Purchase links are given below:

Arduino Uno: https://amzn.to/2tVz1vu
Mega 2560: https://amzn.to/2ze1kdu
Variable resistor or Potentiometer: https://amzn.to/2ElRjeZ
Nodemcu esp8266 wifi module: Best price: https://amzn.to/2NAvmiB
12v 10A SPDT relay: https://amzn.to/2MThQBK
2n2222 NPN transistors: https://amzn.to/2EmXsIb
10k Resistor: https://amzn.to/2KTd6OW
lm7805 Voltage Regulator: https://amzn.to/2IZEl5x
330-ohm resistors pack: https://amzn.to/2NtlAeh
female DC power jack socket: https://amzn.to/2KEo1gt
470 UF capacitors: https://amzn.to/2xDCOzf
5×7 cm Vero board: https://amzn.to/2OHGbvn
female headers: https://amzn.to/2zqmtiJ
connection wires: https://amzn.to/2DpBuW7
Super Starter kit for Beginners: https://amzn.to/2KJvmKG
Jumper Wires: https://amzn.to/2KMoVXs
Bread Board: https://amzn.to/2MS4q8X
12v Adaptor: https://amzn.to/2Ntr6h1
PCB plate: https://amzn.to/2IUwpCt
Variable Supply: https://amzn.to/2MT4Qfj
Digital Multimeter: https://amzn.to/2Nvft9i
Vero Board / stripboard: https://amzn.to/2MTf9jD
Soldering iron kit: “best” You guys should definitely purchase this: https://amzn.to/2zfoNuJ
Solder wire: https://amzn.to/2ufUMWf
Wire Stripper: https://amzn.to/2KOqxfU
wirecutter: https://amzn.to/2ucIq14
PCB small portable drill machine: https://amzn.to/2Nu62XF

Nodemcu Firebase Setup:

Open your internet browser and go to console.firebase.google.com,

firebase

Click on the add project.

firebase

Write the project name

firebase

check all the boxes and then click on the create project.

firebase

Click continue.

if you click on the develop you can see

Authentication

Database

Storage

Hosting

Functions and

ML kit

firebase

First let’s start with the project settings…

firebase

click on the service accounts…

firebase

click on the database secrets…

firebase

click show and copy ….

firebase

then open the program and paste this in the firebase authentication…

firebase

now for the firebase host…click on the database…

firebase

select realtime database…

firebase

copy this link and paste it in the programming…

firebase

firebase

now our settings are completed, now we can click on the verify button to compile our program and check for any errors.

Now let’s discuss the Circuit diagram…


Circuit Diagram:

firebase

The circuit diagram as you can see is really easy. Connect the rightmost and leftmost legs of the variable resistor with the Nodemcu esp8266 wifi module 3.3v and GND. Connect the middle leg of the variable resistor with the A0 pin of the Nodemcu.

Programming:

Arduino Jason:

https://github.com/bblanchon/ArduinoJson

FirebaseArduino library:

https://bit.ly/2XdfIuk

Watch Video Tutorial:

Recommended For You

About the Author: Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

Leave a Reply

Close