Send Sensor data to Firebase using ESP32 | Cloud setup | Arduino Coding | Firebase Realtime Database

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys welcome to electronics if you are iot Enthusiast guy then you must be thinking about to develop your own web app to control the appliances as well as to read the temperature and humidity or any other sensors value in your own way back or app so in this video I am going to cover how to train data to a cloud and fetch the data to your own web app you can say this is complete iot tutorial to send data in Firebase you have to make account in Firebase so that you have to search Firebase in your Google and click on the first link now click on get started button and your Firebase console is open now click on ADD project give a name to your project here it is asking for project name so I will use Electronics project click on continue it is asking for Google analytics I don't require it so I turn it off it will take few seconds now our project is created click on continue and you are redirect to electronics project click on setting then project setting here nothing is showing no API key click on Firebase go to electronics project or the project you have made recently go to Authentication foreign click on get started and authenticate you or your esp32 so that esp32 can also access to your Firebase as a user so I will choose email and password click on enable button and click on Save now authentication has done you have to add user click on add user give any email ID make sure this is not your Google password you can set any random password click on setting then project setting now here it is the main thing it is your API key copy it paste it in your Notepad because we will require it later type API key and save this link click on home now click at the bottom right arrow key then click on build or drop down build button go to real-time database we have to create real-time database so click on create database choose a server which is more closer to your location I will choose Singapore because my location is in India and Singapore is more closer to India click on next here we'll prefer test mode so click on start in test mode enable it your real-time database has created copy this URL you will require in your code and save it so two things we required API key and URL now let's move to our coding section and we'll send data to our Firebase so first you have to install this Firebase Library for that you have to go to sketch then include Library and then manage Library search Firebase esp32 and hit enter so you have to install this Library Firebase Arduino client library for esp320 sp8266 make sure you install this Library as I have already installed it for now I will do update but updating will take time so this has updated for your case you have to install it and close it in here you have to paste your url and URL we have already got from our Firebase account copy this URL and replace it here so here you'll see Electronics project this was our project name we have to also replace our API key copy this and paste it here so this part are the definition of our API key URL and SSID and password then wide Loop part this is the important part what we are doing we are putting random value from 0 to 10 23 and we are storing this value here in s data and here Json dot set by this command first we'll fit the path where we want to send the data and the value so this is the path or you can say this is a key and this is the value again this is one another key and this is a value then we are updating in node so our node is sensor so inside sensor it will create key and then one value associated with this key thereafter one key one value one key one value now upload this code and let's see in our Firebase nor code is uploading wait for a few seconds now our code has uploaded now it is showing dot dot dot it means it has not got the Wi-Fi connection now let's see the data over the cloud Firebase now there is sensor is one node and inside node there is three keys first key is Farm volume second key is Laura third key is l-set ball so in this three key we are sending the same data That Is Random value so in this way we are successfully able to send the data to our cloud which is Firebase now in next part we'll see how to fetch this data and we will make our own web app thanks for watching this video
Info
Channel: Elconics
Views: 28,605
Rating: undefined out of 5
Keywords: firebase, send sensor data to firebase, send data to firebase account, store dht sensor data to firebase, send data to firebase, store dht11 data to firebase, firebase database, how to send data to firebase with nodemcu, sensor data to firebase, send sensor data to android app using firebase, arduino firebase, send dht values to firebase database, google firebase, sent data to firebase, send gsm data to firebase, esp8266 firebase, send receive firebase data with nodemcu
Id: cm-Qe2HMJGk
Channel Id: undefined
Length: 8min 9sec (489 seconds)
Published: Wed Feb 01 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.