05 Firebase Realtime Database + ESP32 | How to save sensor data & read data to control devices?
ฝัง
- เผยแพร่เมื่อ 15 พ.ค. 2024
- In this video, Joed Goh illustrates the step-by-step process of saving and retrieving data to and from the Firebase Realtime Database with ESP32.
Table of Contents:
00:00 Introduction
01:00 Materials and Circuit Connection
02:40 What is Firebase?
03:31 Creating Firebase Realtime Database
07:45 Arduino Firebase ESP Client
12:28 Saving sensor data from ESP32 to Firebase RTDB
20:14 Reading data from Firebase RTDB to ESP32
24:03 Circuit and Programming Challenge
References:
randomnerdtutorials.com/esp32...
Related Playlists:
Embedded Systems using Arduino Uno
• Embedded Systems using...
Android App Development in Kotlin
• Android App Developmen...
Artificial Intelligence and Machine Learning Foundations
• Artificial Intelligenc...
Designing Database Solutions with Microsoft SQL Server 2019
• Designing Database Sol...
Data Structures and Algorithms using C#
• Data Structures and Al...
WOOOOOW! GREAT TUTORIAL!
Concise and very valuable! Just shows how knowledgeable you are in this matter!
Bro,
your tutorial makes the thing nothing but easy. ❤
I was in the R&D phase for firebase system for last 3 days with no clue but you make it much easier.
Really appriciate it.
Thank you. Glad to be of help 😊
@@joedgoh Welcome Brother
Thank You Sir!
I really thank this guy for this video
From my depth of heart ❤❤ cause literally for 3 days I was like crazy mad on this firebase and finally I did it because of this guy
Thank you from the depth of my heart 🙏🙏👍👍
Hats of you 👏👏
Thank you! 🙏 🙂
Hi, Thanks for the tutorial, it's been really helpful. i would like to know if the difference in milliseconds could be set to greater than 1000 ?
Thank you very much sir
amazing
yesss ! , thanks from austria
Thanks!
Really well explained 👌
Thanks a lot 😊
wow😄 such a nice guide
Thank you!
Great work
Thank you!
Sir, I want to ask whether it is possible to communicate from ESP32 to Firebase and MIT App using Bluetooth
This video helps a lot for my project thanks for guiding us
Welcome. Thanks as well 💚
Salamath po for your great explanation. So profitable
Salamat!
This is the first time I’ve seen a good firebase Arduino tutorial video.
I liked your style. Will come back for more
One tip for either you or google bug seeking bots. Viewing video on iPhone 14pro or any device with camera island basically acts like a bar that hides all the info behind it. Such as variable declaration or any details that would be necessary.
So either make a band on side that shift your ide screen to right. Or google this one is for you. Turn on screen rotation on both sides. It’s embarrassing for you qa team and product managers who can’t see a ux flaw.
Otherwise kudos to the maker of this content. Good job.
Thank you!
@@joedgoh hi while I'm using the getInt function, instead of 0 which is the correct value of the variable, I'm constantly getting 1. What could be the error here? Please help me. 🥺
Excellent work dear, my suggestion is , include other option tutorial such as google account linkage etc. thank you
Thank you, I will
Can you please do a video on how to read sensor data and control LEDs over the web base system (HTML,CSS,JS) with firebase real time data base
great staff, but is it possible to integrate Google Voice Cammand or Alexa Voice Command??
Thanks, you helped me a lot! (:
Boa tarde amigo
Tem como disponibilizar este código
I used MQ6 LP gas sensor for test this project. with MQ6 sensor when I pressed push button MQ6 reading automatically goes high(4095). when I released the push button reading comes down. What is the reason for this ?
hi sir.how i can use mit slider to control servo motor with esp8266 and firebase. please
please can you tell me how can I use this platform for my projects of fall detection using the MCU 6050 accelerometer
I love asian people teaching. They put more effort in video. Thumbs up.
Thank you!!
Pls share the code of this project
Hi sir, I am using portenta h7 to send saved data to firebase, but portenta h7 doesn't have any library for Firebase. how can I send data to firebase from portenta h7.
Hello po sir. Can I have/take a look at the programming challenge code po? Thanks.
What will be the difference in the IDE code to send to Cloud Firestore instead of RTDB?
Hello, I have a problem. I followed the same steps, but when I try to send the data from the firebase, the esp does not read it. The sucessfull message does appear but it does not show any data or turn on any led.
thanks Joed. Great video. how can I get your video codes
Best regards, Kazem
If the data that I read changes with time and I want to read the data automatically after the change, what is the code in Python
How to parse string value from database? I was getting "/ in the string
hello sir, thx for your tutorial video it really help me alot but i have some problem when i try to read boolean data from firebase to control my LED, there is error message called "connection refused" every 8 times tries to turn on/off my LED. so if i try to turn on/off after 8 times tries, i got that error message. can you help me to fix it? Thx.
How many times can a esp 32 board fetch values from firebase RTDB in a second, given it a strong internet connection. What's the limit, can it fetch a value every 10 milli seconds
what if i want to save every value instead of overwriting on it or update it ? like a spreadsheet ?
you can set diffrent path name every time you do setInt
I need help. I see readings in the seiral monitor very quickly. I connected my computer to the same network and the password I put in the code. I put the link and API key in the code correctly, but it shows me null in the firebase. What is the problem? Are there platforms through which we can communicate with you?
Hello, can you make a tutorial how to connect Firebase to Website with esp32?
how to store data sensor collected in 24 H on firebase
Good morning sir, I am getting this error. Could you please help me? fatal error: wifi.h: No such file or directory
compilation terminated.
exit status 1
Compilation error: wifi.h: No such file or directory
Can we link google assistant to firebase to control arduino etc. (I hate IFFT and blynk)
Having an API key on a firebase project implies adding an app. Can you have an API without adding an app?
Hi, I wonder if I can store/save the data to firebase? and when i need the data i can download it later with format is excel/csv...
Yes. You can export your RTDB by clicking the 3 ellipsis (...) on the right side and choose export to JSON. Open your Excel, go to DATA > Get Data > From File > From JSON.
Is wifi is necessary or we can do with android mobile hotspot because I cannot receving the data from firebase realtime database ?
Either (mobile hotspot or wifi) it should work.
pleas, can you do episode, ultrasonic sencer with arduino iot cloud.....Thanks,
I have problem in read the data from the firebase's real time database. Only string is readed properly integer and boolean type is always readed as zero and false respectively and sometimes boolean type is not readed. Pls solve my problem. I have written the exact code and followed the exact all steps which you have followed.
I've got RTDB is private within this context... don't know how to solve it.
Thia firebase works only one hour. After that it gives a error. Cant upload or read data from firebaae
Muchas gracias por estas enseñanzas. El año pasado, despues de mucha investigacion hice un proyecto que funcionaba perfectamente, pero algo ha cambiado en firebase que ya no me da acceso. Y en este video creo que esta la solucion.
Podria enviarme el código, por favor?. Gracias.-
El código lo puso en la descripción del video, es su página web. Yo pasé por lo mismo que tú, hace unos años usé Firebase para un proyecto y ahora que lo volveré a utilizar, noté que varias cosas cambiaron, especialmente lo de la autenticación y la verdad este video fue muy útil para entender nuevamente su funcionamiento.
Token info: type = id token, status = error Token error: code: -4, message: connection lost
why?
While this is a great tutorial. It completly misses the point of a (Real Time Database). The way this is set up is a polled database configuration. For (RealTime) you have to use a stream callback. This allows you to get INSTANT changes on your ESP32 when you change that value in the database. Install the library and check the official examples for more details. (Edit) - I see you got it right in lessen 6. Good job.
Just imaging I want to make a circuit with ESP32 for hotel room. In this hotel there are 200 rooms. I want to get data of push buttons from each room. Is this possible with firebase
Yes, of course. Thanks
@@joedgoh connect 200 ESP 32 boards do I need to create 200 different project in firebase or can I connect multiple ESP board to the one project. what are the limitations in the firebase when it comes to this kind of projects specially if some one needs to use number of ESP 32 boards ?
In spark plan(free) you only have up to 100 simultaneous connections.
When you update the data in RTDB,it automatically push to your esp32?
I thought it is impossible to implement real time push in esp32.
wow
Check the next lesson 06 using Firebase Stream to do that in realtime
@@joedgoh I've try and it shows error message "Compilation error: 'tokenStatusCallback' was not declared in this scope
Pls check for wrong spelling, Case sensitivity, and the Library declaration.
Token error: code: -1, message: connection refused
Token info: type = id token, status = on request
Token info: type = id token, status = error
Please help
PLEASE help me.
After 60-120 seconds it stops to work and update data..
Like it's frozen
But in first seconds it works well, code very simple, just a Set boolean
Me too :((
So have you fixed it now?
Hello sir, After approximately 10 minutes of sending data to the database the connection will be lost and display "connection refused" why does this happen?
Me too :((
So have you fixed it now?
my project is not working these are problem
Token error: code: 400, message: INVALID_EMAIL
Token info: type = id token, status = error
Token error: code: 400, message: bad request
Token info: type = id token, status = on request
serial monitor showing problem?
check the authentication settting. Make sure its already anonymous
I've the same problem, what can I do?
can I use ESP8266 instead of ESP32 with the same code?
did you get the answer?
yes bro
code?
where is the code ?
Can you share the code?
Please email me at joedgoh@gmail.com
unbelievable amount of errors in this code, ldrData undeclared voltage undeclared analogueReadMilliVolts and so much more. Serial.print(" - successfully saved to: " = fbdo.dataPath()); should be Serial.println(" - successfully saved to: " = fbdo.dataPath()); otherwise error: assignment of read-only location.
What are you talking about Jacques Mulder???? This tutorial helped thousands of students and professionals. I put it online so it can help more people who are in need of free lessons. This code worked for all of them. I am replying to your comment because you are not helping others with your false claims. Do not say that I have an "unbelievable amount of errors in my code" like undeclared ldrData, voltage, etc... because you are wrong. Please watch the lecture again carefully so that you learn from your mistakes... Just to put you into the right perspective, you are watching a FREE and step-by-step lesson that I worked hard to create and this is WORKING 100%. If you don't even know how to say "thank you", it is fine, just please don't put comments that are not helpful to others.
Can we connect arduino to firestore database not realtime databae ?
Yes
Is there any tutorial for i can learn sir ?., i haved browse the tutorial , doesnt see the good tutorial for firestore database
I don't have one as of now. In the future, I will create. Thanks 😊