Nodemcu firebase database Tutorial

(Last Updated On: September 12, 2020)

firebase

Description:

Nodemcu firebase– In This tutorial, you will learn how to create your own 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. If you want to make something advanced like a student’s attendance system using RFID, GSM, and 16X2 LCD with the Google Firebase Database. Then read my article on “Arduino Firebase Database, Students Attendance System using RFID and GSM“. If you want to use the FIREBASE database with the ESP32, then consider reading my article on “ESP32 Firebase Tutorial, Send Sensor Data to Google Firebase Database“.

For the detailed step by step explanation watch video Tutorial given at the end of this article.


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/37oaksm
Mega 2560: https://amzn.to/2ze1kdu
Variable resistor or Potentiometer: https://amzn.to/2ElRjeZ
Nodemcu esp8266 wifi module: Best price: https://amzn.to/2NAvmiB

Other Tools and Components:

Super Starter kit for Beginners

Two Channel / 200 MHz Digital Oscilloscope

Variable Supply:

Digital Multimeter:

Soldering iron kit: “best”

PCB small portable drill machine:

*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!


Nodemcu Firebase Account 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 will 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…


Nodemcu Firebase 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. To power up the Nodemcu ESP8266 Wifi Module you can use a 5V regulated power supply based on the LM7805 Voltage regulator. Simply connect the 5 Volts from the regulated power supply with the Vin pin of the Nodemcu Module and connect the ground of the 5V regulated power supply with the ground pin of the Nodemcu ESP8266 Wifi Module.

If you want to learn in detail, how to design the power supply PCB board for the Nodemcu ESP8266 Wifi Module then watch my tutorial given below.

 

Nodemcu Firebase Programming:

Arduino Jason:

https://github.com/bblanchon/ArduinoJson

FirebaseArduino library:

https://bit.ly/2XdfIuk

Nodemcu ESP8266 Firebase, 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...

6 Comments

  1. hey man , i tried everything is working peacefully but the sensor data , its not getting uploaded to firebase , i checked for libraries also its working peaceful.please help me , thanks in advance

  2. thanks very much for taking the time to put this together. I’m trying to work through but running into a brick wall. followed all steps and no errors, confirmed program running by monitoring the serial port. when I view the realtime database, I only get the Name followed by Null with the + X

    Where does the word “Variable Resistor” come from? Do you need to add a child at this time?

    Thanks in advance
    JB

  3. Thank you so much for the great video…….. I was able to follow your steps and get it working! I have one silly question: we only see the recent value in firebase. How can i see all the data that was sent?

Leave a Reply