05 Firebase Realtime Database + ESP32 | How to save sensor data & read data to control devices?

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 131

  • @shakauthossain9162
    @shakauthossain9162 8 місяців тому +7

    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.

    • @joedgoh
      @joedgoh  8 місяців тому +2

      Thank you. Glad to be of help 😊

    • @shakauthossain9162
      @shakauthossain9162 8 місяців тому

      @@joedgoh Welcome Brother

  • @SwayamSahoo2004
    @SwayamSahoo2004 3 місяці тому +1

    Thank you very much, it works now
    Was trying for around 8 hours, with different libraries and clients, and none of them worked, but finally, in the end, this works

    • @adamkhuzaimi3486
      @adamkhuzaimi3486 3 місяці тому

      im having trouble which is error: on my token, can you help me?

    • @req_reqa5757
      @req_reqa5757 2 місяці тому

      @@adamkhuzaimi3486 same problem, every 1 hour token failed

  • @KartikeyaSaxenaJainKSJ
    @KartikeyaSaxenaJainKSJ Рік тому +2

    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.

    • @joedgoh
      @joedgoh  Рік тому

      Thank you!

    • @chris-ut4hs
      @chris-ut4hs Рік тому

      ​@@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. 🥺

  • @fooballers7883
    @fooballers7883 Місяць тому

    Much appreciated... Thank you for a well structured tutorial.

  • @sumeetdubas2411
    @sumeetdubas2411 Рік тому +2

    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 👏👏

    • @joedgoh
      @joedgoh  Рік тому +2

      Thank you! 🙏 🙂

  • @Infinity_Dils
    @Infinity_Dils 5 місяців тому

    Really It's working 😯😯
    I tested for ultrasonic sensor.
    Thank you very much.
    ❤ God Bless You.

  • @richiejohn5760
    @richiejohn5760 2 роки тому +2

    I love asian people teaching. They put more effort in video. Thumbs up.

  • @MichiCho
    @MichiCho 6 місяців тому

    Maraming salamat sir! laking tulong nyo po sa capstone namin.

    • @joedgoh
      @joedgoh  6 місяців тому

      Welcome. Pls share. Thank you! :)

  • @paulopereira8591
    @paulopereira8591 5 місяців тому

    Nice tutorial! This helped me a lot!

  • @nanomaX88
    @nanomaX88 10 місяців тому

    yesss ! , thanks from austria

    • @joedgoh
      @joedgoh  10 місяців тому

      Thanks!

  • @attiqurrehman8106
    @attiqurrehman8106 Рік тому +1

    Excellent work dear, my suggestion is , include other option tutorial such as google account linkage etc. thank you

    • @joedgoh
      @joedgoh  10 місяців тому

      Thank you, I will

  • @JL-rx6bz
    @JL-rx6bz Рік тому

    WOOOOOW! GREAT TUTORIAL!
    Concise and very valuable! Just shows how knowledgeable you are in this matter!

  • @josepjover10
    @josepjover10 8 місяців тому

    Really well explained 👌

    • @joedgoh
      @joedgoh  8 місяців тому

      Thanks a lot 😊

  • @indikaudayasaranga988
    @indikaudayasaranga988 Рік тому

    Salamath po for your great explanation. So profitable

  • @freitagnachmittag6120
    @freitagnachmittag6120 2 місяці тому +1

    Very helpful video. If you have problems by compiling the scetch please mind that the LEDC declaration / API was changed in the latest version (ledcSetup and ledcAttachPin is now ledcAttach).

  • @victormosonik6332
    @victormosonik6332 Рік тому

    wow😄 such a nice guide

  • @pastoralejandroburitica2928
    @pastoralejandroburitica2928 6 місяців тому

    Muchas gracias, fue muy util tu video!

    • @joedgoh
      @joedgoh  6 місяців тому

      Thank you. Glad to be of help 😊

  • @ditya.aditya16
    @ditya.aditya16 7 місяців тому

    Nice, thanks for tutorial sir

  • @aristocaesar56
    @aristocaesar56 Рік тому

    Thank You Sir!

  • @rameshmadhuranga7429
    @rameshmadhuranga7429 Рік тому

    Thank you very much sir

  • @madegdejuniastra4010
    @madegdejuniastra4010 2 роки тому

    Great work

  • @shesetti.pavankumarswamy8671
    @shesetti.pavankumarswamy8671 29 днів тому

    Timestamps (Powered by Merlin AI)
    00:03 - Learn to store and read sensor data using Firebase Realtime Database with ESP32.
    02:31 - Firebase is a complete mobile app development platform with various services and cloud hosting.
    05:05 - Setting up Firebase authentication and real-time database
    07:54 - Install Firebase ESP client and define network credentials and project's API key
    10:47 - Setting up Wi-Fi connection and Firebase authentication for ESP32
    13:38 - How to use set functions to save sensor data in Firebase Realtime Database
    16:24 - Storing and reading sensor data in Firebase Realtime Database using ESP32
    18:49 - Reading sensor data in real time and controlling devices
    21:20 - Controlling devices using Firebase Realtime Database and ESP32
    24:00 - Practice Firebase real-time database and ESP32 by implementing a similar circuit with different database node paths and values.Timestamps (Powered by Merlin AI)
    00:03 - Learn to store and read sensor data using Firebase Realtime Database with ESP32.
    02:31 - Firebase is a complete mobile app development platform with various services and cloud hosting.
    05:05 - Setting up Firebase authentication and real-time database
    07:54 - Install Firebase ESP client and define network credentials and project's API key
    10:47 - Setting up Wi-Fi connection and Firebase authentication for ESP32
    13:38 - How to use set functions to save sensor data in Firebase Realtime Database
    16:24 - Storing and reading sensor data in Firebase Realtime Database using ESP32
    18:49 - Reading sensor data in real time and controlling devices
    21:20 - Controlling devices using Firebase Realtime Database and ESP32
    24:00 - Practice Firebase real-time database and ESP32 by implementing a similar circuit with different database node paths and values.

  • @benjaminhobbs2923
    @benjaminhobbs2923 Рік тому

    amazing

  • @pranaygarapati1189
    @pranaygarapati1189 Рік тому

    This video helps a lot for my project thanks for guiding us

    • @joedgoh
      @joedgoh  Рік тому

      Welcome. Thanks as well 💚

  • @yojithkr17
    @yojithkr17 Рік тому +8

    Pls share the code of this project

  • @diegoalejandrodiazsilva4854
    @diegoalejandrodiazsilva4854 Рік тому +1

    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 ?

  • @tehoisku
    @tehoisku 29 днів тому

    ledcSetup function no longer supported,so what to replace it with???

  • @amandaavelino8362
    @amandaavelino8362 Рік тому

    Thanks, you helped me a lot! (:

  • @azrulmaulanaihsan297
    @azrulmaulanaihsan297 5 місяців тому

    I was so confused why the value doesnt appear on firebase until I realised the wifi credentials was suppose to be my home/ phone hotspot' wifi so the esp32 can connect to the internet, what a head ache. thanks a lot!

  • @reiya6563
    @reiya6563 Рік тому +1

    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...

    • @joedgoh
      @joedgoh  Рік тому

      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.

  • @catalanrodriguezjonathan4294
    @catalanrodriguezjonathan4294 4 місяці тому

    In my case, every time that I read a value from firebase a lot of times, the esp3 gets frozen for 1 min.
    Why does this happen?

  • @K2itto
    @K2itto 8 місяців тому

    What will be the difference in the IDE code to send to Cloud Firestore instead of RTDB?

  • @ramavm9403
    @ramavm9403 11 місяців тому

    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?

  • @simontroyeligido3858
    @simontroyeligido3858 3 місяці тому

    SIR i have encountered this in serial MOnitor "Failed to send data to Firebase.
    token is not ready (revoked or expired)" badly needed thanks

  • @VedantSutariya-m8s
    @VedantSutariya-m8s 10 місяців тому

    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.

  • @cygreeneye
    @cygreeneye 5 місяців тому

    We want to more videos abouts firebase real time database with sensors

  • @aprenderelectronics2172
    @aprenderelectronics2172 10 місяців тому

    I've got RTDB is private within this context... don't know how to solve it.

  • @yashvardhansagar5792
    @yashvardhansagar5792 Рік тому +1

    Token error: code: -1, message: connection refused
    Token info: type = id token, status = on request
    Token info: type = id token, status = error
    Please help

  • @nozid_pogi
    @nozid_pogi 3 місяці тому

    Good Day sir ,
    Ask lang po kung same method rin po kaya siya sa Raspberry Pi 4 ??
    Thanks in advance po

  • @Laxminarayanapippera
    @Laxminarayanapippera 8 місяців тому

    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

  • @antoniesuciu6303
    @antoniesuciu6303 11 місяців тому

    Having an API key on a firebase project implies adding an app. Can you have an API without adding an app?

  • @hansiehertzog6506
    @hansiehertzog6506 2 місяці тому

    I need to retrieve data from firebase to Esp32. The authentication works and posting data works but I need to read data for signed in user

    • @bupalchowdary9865
      @bupalchowdary9865 Місяць тому

      Did u find a way to do it if yes please tell me how to do it

  • @danielzuns
    @danielzuns Рік тому

    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.

  • @manivannansubramanian3728
    @manivannansubramanian3728 Рік тому +1

    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

    • @tomberar3383
      @tomberar3383 Місяць тому

      the library is WiFi.h not wifi or Wifi so be carefull its a typo

  • @icecool6651
    @icecool6651 5 місяців тому

    in which libraries?

  • @chancomelectronics1192
    @chancomelectronics1192 5 місяців тому

    Sir laging nadidisconnect ang esp32 sa firebase kumpara sa esp8266 ano puba sulusyon?

  • @majdsaeed4463
    @majdsaeed4463 7 місяців тому

    Failed token is not ready...how to solve this issue?

  • @SONUKOL1
    @SONUKOL1 2 роки тому +2

    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?

    • @wempibiang
      @wempibiang Рік тому

      check the authentication settting. Make sure its already anonymous

    • @Project-vf9pg
      @Project-vf9pg Рік тому

      I've the same problem, what can I do?

  • @tourushi9137
    @tourushi9137 9 місяців тому

    Hello, can you make a tutorial how to connect Firebase to Website with esp32?

  • @odirilefrank1926
    @odirilefrank1926 Рік тому +1

    great staff, but is it possible to integrate Google Voice Cammand or Alexa Voice Command??

  • @rookie_ceo
    @rookie_ceo 4 місяці тому

    sir is there any way to get ssid and password from user?

  • @laviniamaria54
    @laviniamaria54 6 місяців тому

    Very educational video congratulations, when I'm running the code it keeps giving a problem in the function ledcSetup(PWMChannel, freq, resolution); and ledcAttachPin(LED1_PIN, PWMChannel); it says that the variable was not declared correctly, what could be going wrong? and I'm also unable to see the sensor data in the database. If you could send the code it would be a great help.

  • @barrew4369
    @barrew4369 Рік тому

    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.

  • @شهدإبراهيم-ض1ق
    @شهدإبراهيم-ض1ق 2 роки тому +1

    what if i want to save every value instead of overwriting on it or update it ? like a spreadsheet ?

    • @wempibiang
      @wempibiang Рік тому

      you can set diffrent path name every time you do setInt

  • @IOT_ENERGYENERGY
    @IOT_ENERGYENERGY 7 місяців тому

    Token info: type = id token, status = error Token error: code: -4, message: connection lost
    why?

  • @mychannelmarco
    @mychannelmarco 8 місяців тому

    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

  • @sangarash5828
    @sangarash5828 Рік тому

    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?

  • @mubasirkhafid9582
    @mubasirkhafid9582 Рік тому

    Sir, I want to ask whether it is possible to communicate from ESP32 to Firebase and MIT App using Bluetooth

  • @lezbriddon
    @lezbriddon 10 місяців тому

    Can we link google assistant to firebase to control arduino etc. (I hate IFFT and blynk)

  • @sarfeildavecurran5806
    @sarfeildavecurran5806 Рік тому

    Hello po sir. Can I have/take a look at the programming challenge code po? Thanks.

  • @paulzedrickmenale5784
    @paulzedrickmenale5784 Місяць тому

    Baket po hindi ako maka connect sa firebase sabe po sakin na kulang dw yung mga credentials ko nilagay ko nmn po yung api key and link sa database pero kulang daw mga credentials ko

  • @chinthakasamarakoon6075
    @chinthakasamarakoon6075 Рік тому

    Thia firebase works only one hour. After that it gives a error. Cant upload or read data from firebaae

  • @samirakhrif8262
    @samirakhrif8262 Рік тому

    hi sir.how i can use mit slider to control servo motor with esp8266 and firebase. please

  • @dilangunawardhana
    @dilangunawardhana Рік тому

    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 ?

  • @saadiabrh5456
    @saadiabrh5456 Рік тому

    please can you tell me how can I use this platform for my projects of fall detection using the MCU 6050 accelerometer

  • @NaNi-hi6ve
    @NaNi-hi6ve 5 місяців тому

    can you make a tutorial wtih npk sensor

    • @NaNi-hi6ve
      @NaNi-hi6ve 5 місяців тому

      can you make a tutorial using the NPK Sensor with ESP8266 that the data NPK nutrients will display in mobile app flutter

  • @abuhamza9869
    @abuhamza9869 Рік тому

    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

  • @huangryan604
    @huangryan604 Рік тому

    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

    • @joedgoh
      @joedgoh  Рік тому

      Check the next lesson 06 using Firebase Stream to do that in realtime

    • @huangryan604
      @huangryan604 Рік тому

      @@joedgoh I've try and it shows error message "Compilation error: 'tokenStatusCallback' was not declared in this scope

    • @joedgoh
      @joedgoh  Рік тому

      Pls check for wrong spelling, Case sensitivity, and the Library declaration.

  • @joaomarianodasilva2630
    @joaomarianodasilva2630 Рік тому +1

    Boa tarde amigo
    Tem como disponibilizar este código

  • @subho9303
    @subho9303 2 роки тому

    Is wifi is necessary or we can do with android mobile hotspot because I cannot receving the data from firebase realtime database ?

    • @joedgoh
      @joedgoh  2 роки тому

      Either (mobile hotspot or wifi) it should work.

  • @SOFIA_TECH_KITCHEN
    @SOFIA_TECH_KITCHEN Рік тому

    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.

  • @dilangunawardhana
    @dilangunawardhana Рік тому

    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

    • @joedgoh
      @joedgoh  Рік тому +1

      Yes, of course. Thanks

    • @dilangunawardhana
      @dilangunawardhana Рік тому

      @@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 ?

    • @joedgoh
      @joedgoh  Рік тому +1

      In spark plan(free) you only have up to 100 simultaneous connections.

  • @Arthur-cb8ce
    @Arthur-cb8ce 7 місяців тому

    where can i find the Wifi.h libarary

    • @joedgoh
      @joedgoh  7 місяців тому

      Search it under library manager if you don't have one yet installed.

  • @gurubto2971
    @gurubto2971 Рік тому

    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.-

    • @DevasKarpDevas5000
      @DevasKarpDevas5000 Рік тому

      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.

  • @mouaadhyaichi
    @mouaadhyaichi 2 роки тому

    how to store data sensor collected in 24 H on firebase

  • @dilangunawardhana
    @dilangunawardhana Рік тому

    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

  • @oussamabouabid7753
    @oussamabouabid7753 10 місяців тому +1

    where is the code ?

  • @demcy4385
    @demcy4385 Рік тому

    can I use ESP8266 instead of ESP32 with the same code?

  • @udith-pz4tv
    @udith-pz4tv Рік тому

    pleas, can you do episode, ultrasonic sencer with arduino iot cloud.....Thanks,

  • @partouelectric2353
    @partouelectric2353 Рік тому

    thanks Joed. Great video. how can I get your video codes
    Best regards, Kazem

  • @edgarwideman737
    @edgarwideman737 2 роки тому +2

    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.

  • @adhambshara
    @adhambshara 11 місяців тому

    code?

  • @techxplorerxxx
    @techxplorerxxx 8 місяців тому

    How to parse string value from database? I was getting "/ in the string

  • @CompanyBusinessCards
    @CompanyBusinessCards Рік тому

    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.

    • @joedgoh
      @joedgoh  Рік тому +4

      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.

  • @igdagusryankurniantara1053
    @igdagusryankurniantara1053 10 місяців тому

    Can we connect arduino to firestore database not realtime databae ?

    • @joedgoh
      @joedgoh  10 місяців тому

      Yes

    • @igdagusryankurniantara1053
      @igdagusryankurniantara1053 10 місяців тому

      Is there any tutorial for i can learn sir ?., i haved browse the tutorial , doesnt see the good tutorial for firestore database

    • @joedgoh
      @joedgoh  10 місяців тому

      I don't have one as of now. In the future, I will create. Thanks 😊

  • @rexnight4767
    @rexnight4767 Рік тому

    Can you share the code?

    • @joedgoh
      @joedgoh  Рік тому

      Please email me at joedgoh@gmail.com