Connecting ESP32 with Google Firebase🔥🔥| Firebase Real-Time Database setup | ESP32 Firebase tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in most of my iot based project i have used google firebase as a backend service hey hello guys this is welcome to our channel circulation today in this video i will tell you that what is firebase the services of the firebase and how you can create project in the firebase and how you can send data using usb32 to the firebase reactor unit so don't skip the video watch till the end let's get started [Music] what is firebase firebase is a great product from google which helps developers like you and me to build deploy and scale our apps and iot devices easily it is a bus system bus stands for back end as a service pricing wise firebase is likely one of the cheapest options on the market it comes with a highly generous free plan and fair pricing after that which makes the services suitable to developers and terms of any size to create project in firebase first open up your browser and search for firebase and click on the first link after clicking the first link the firebase page will appear [Music] now click on the profile picture image and select and google account using which you want to operate the firebase then press go to console button now the firebase project page will open for creating new project click on add project put a name of your project as you wish now follow the procedure as i am doing here [Music] [Music] [Applause] [Music] after creating the project let's have a look on the services of the firebase the first service of the google firebase is firebase authentication this service is used in sign up and login process of mobile applications next we have firestore database previously it was called cloud firestore this is a nosql database this database is used for storing user data as well as another data's [Music] [Music] now this is the firebase real-time database this is also a database but it is used only for small and real-time data processing after that we have firebase storage as the name suggests it is used for cloud storage like photos files etc next we have firebase hosting by using this service we can host almost any type of web application and you can also add a custom domain to it firebase functions it is used for various type of backend calculations logic and functions when an event is triggered by firebase real-time database and this thing helps to make the mobile application more lightweight [Music] machine learning is the last service of firebase it will help to train and deploy your own machine learning model to solve various real-world problems today i will only show you that how you can use real-time database for iot projects most of the time i prefer to use real-time database in which i can send and receive data using esp32 as well as node lc but in today i will use esp32 [Music] [Applause] [Music] for creating real-time database click on the real-time database and now click on create database for location choose us central click on next now here are two modes of database one is locked mode and another is test mode we will choose test mode in test mode anyone can read or write data from the database with proper credentials click on enable and we have successfully created the real-time database now i will send and receive data using esp30 for that open arduino ide and in the manage library section search for the firebase esp32 library you have to install these two libraries author of these two libraries are mobist do not use any other libraries after installing open the basic example code [Music] in the code you have to put your wi-fi credentials and firebase credentials in firebase credentials we have two things one is the database url and another is api to get these two credentials from firebase follow the required steps i am showing [Music] [Music] this example code can send and receive various type of data types like e float boolean string json i wrote a simple code using this library which you send and receive to integer values from firebase first i included all required libraries here you have to change only the wi-fi and firebase credentials in firebase credentials there is two fields database url and api key after changing all the credentials i initialize some variable in the setup section to connect the board to my router i am using this wi-fi credentials then i connect the board to the firebase using the firebase credentials [Music] in the loop section i am storing random integer number in the x and y variable now if firebase is ready to send and receive the data then i am sending the value of x and y by writing this function firebase dot set e the value of f will be stored in the tag a and the value of y will be stored in the tag b and both the tag is under a project bucket named as text after that i am fetching these two values from firebase by writing this function firebase dot get in and storing this data into a and b variable after that i print the value of a and b in the serial monitor now select the board and comport and hit the upload button now you can see that esp32 sending data to the firebase as well as receiving the data from firebase [Music] i hope that you learned something from this video and if you want to know more about firebase then comment down below and if you like this video then make sure you hit the like button and subscribe to my channel if you are new and if you want to watch more exciting videos like this then stay tuned and most important thing be creative [Music] you
Info
Channel: circuiTician
Views: 40,761
Rating: undefined out of 5
Keywords: esp32 firebase, esp32, esp32 iot project, iot, iot project, firebase, google firebase, tutorial, esp32 firebase tutorial, setup google firebase account, setup firebase account, send data to firebase account, esp32 with firebase, google firebase with esp32, arduino, esp32 project, firebase database, esp32 firebase database, esp32 firebase library, esp32 firebase authentication, firebase esp32, electronics, wifi, diy project
Id: lUkNbpVK2vA
Channel Id: undefined
Length: 12min 11sec (731 seconds)
Published: Sun Nov 21 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.