Google Firebase & ESP8266 Complete Guide - Sending/Receiving Data from ESP8266 & Firebase

Поділитися
Вставка
  • Опубліковано 4 жов 2024
  • NextPCB offers first 2-layer 100 X 100 mm PCB with 0$ : www.nextpcb.co...
    4-layer PCB - 12$ : www.nextpcb.co...
    ....................................................................................................................................................................................................................................
    Google Firebase is a Google-backed application development software used for creating, managing, and modifying data generated from any android/IOS application, web services, IoT sensors & Hardware. Using the IoT hardware & cloud platform, we can control the IoT devices including LEDs from any part of the world.
    In this video tutorial we will cover:
    1. How to Control an LED Control using Google Firebase & Nodemcu ESP8266?
    2. How to Send Real-Time Humdity Temperature Sensor Data to Google Firebase using Nodemcu ESP8266?
    3. How to send DHT11 Humidity Temperature Sensor Data to Android Application Using Google Firebase & Nodemcu ESP8266?
    Generally, all the tutorials related to Google Firebase Console will be covered here including creating an account, creating the databases, firebase host, firebase authentication key, firebase rules, real-time data monitoring, etc. We will also build a custom Android App using MIT App Inventor.
    Source Code Links:
    1. IoT Based LED Control using Google Firebase & ESP8266: how2electronic...
    2. Send Real-Time Sensor Data to Google Firebase with ESP8266: how2electronic...
    3. Send Sensor Data to Android Using Google Firebase & ESP8266: how2electronic...
    ....................................................................................................................................................................................................................................
    Drop a like if you liked this video.
    Don't forget to subscribe to our channel for more Electronics projects and tutorials.
    Website: how2electronic...
    Facebook: / electronicsbyalex
  • Наука та технологія

КОМЕНТАРІ • 91

  • @abrahamchristopher4945
    @abrahamchristopher4945 2 роки тому +3

    Wow thank you... You saved my day... I never knew that you could do that with Realtime Database... and I finally got the answer. Thank you so much

  • @humyrx
    @humyrx 3 роки тому +3

    I keep getting "pushing / logs failed" in the serial monitor and the data does not publish to Firebase :( sos

  • @Jihenguesmi
    @Jihenguesmi 6 місяців тому +1

    hey excuse me but it says Error compiling the NodeMCU 1.0 (ESP-12E Module)

  • @roopkumardubey4453
    @roopkumardubey4453 4 роки тому

    Thank you so much for this !!!
    it literally solved my Problem !!!
    i was messing with it since 3 days !!!!

  • @pravindasarkar788
    @pravindasarkar788 3 роки тому +1

    I have followed the tutorial but sensor data is not showing in firebase..I have changed the rules also..but didn't work.please help me out..

  • @spyghetti
    @spyghetti 4 роки тому +3

    Great video and application, I hadn't heard about using google firebase before this but I've been loving the ESP8266 and looking for more projects with it.

  • @DeepakSharma-zw6ys
    @DeepakSharma-zw6ys 25 днів тому

    This is not a good way to implement this looping (Polling) you should make the video on how automatic data should update in esp8266 when any data change available on firebase

  • @time-lapse259
    @time-lapse259 3 роки тому +1

    You are continuously writing to pin in a Loop, do u think its going to damage the hardware?

  • @GBKBS
    @GBKBS 4 роки тому +1

    still not connecting with Firebase showing the message "pushing /logs failed problem"

    • @infotechpkk
      @infotechpkk 3 роки тому

      pushing /logs failed:
      Humidity: 71.00% Temperature: 21.30°C

    • @infotechpkk
      @infotechpkk 3 роки тому

      Same Error ...
      Bhai koi solution mila?

  • @ivanyacobrepi4982
    @ivanyacobrepi4982 3 роки тому

    when wifi is off why does the sensor value not change to zero but still shows the last reading? how to make the reading value to zero when wifi is off or not connected?

  • @time-lapse259
    @time-lapse259 3 роки тому +1

    In example 1, instead of on or off can we send light intensity data( like a slider in blynk)?

  • @stlo0309
    @stlo0309 3 роки тому

    you are creating new record for every measurement you're uploading in Example 2. I don't want to do this, I want to "update" an existing entry, not constantly create new entries. How do I do this?

  • @khalidtanveer-s9q
    @khalidtanveer-s9q 7 місяців тому

    Don’t know but I am not getting database credentials for me😢

  • @mramzadg
    @mramzadg 4 роки тому +1

    Awesome sir jee

  • @rameshk.pandey6883
    @rameshk.pandey6883 Рік тому

    Dear, when am compling code ,its come error for node mcu, pl tell me how to solve.....

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

    Will this application work if I use only ntc thermistor I am getting perfect reading on firebase but this app doesn't display anything

  • @IrrigationSystem-s9n
    @IrrigationSystem-s9n 11 місяців тому

    Good Day! Where can I find the library that you've used? I can't seem to find it in the description box.

  • @filippogermi1618
    @filippogermi1618 3 роки тому

    higood guide and idea, unfortunately i have trouble, i could not have any APi or secret key to be used, suggestions

  • @shorayajain9322
    @shorayajain9322 3 роки тому

    I tried this project but i keep getting "Command error". I think that my ESP is not connecting with Firebase. Please give solution to this problem

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

    To same application can u add battry voltage and current reading?how we do that

  • @Dancopymus
    @Dancopymus 3 роки тому

    Hello, how would it be to instead show the data on a TFT Display ILI9341, for example?

  • @AhmedEu
    @AhmedEu 3 роки тому

    this library is flawed. you have to change the firebase fingerprint every now and then!! :(

  • @nitishnitish9172
    @nitishnitish9172 4 роки тому

    a great amount of knowledge

  • @kietnguyen3226
    @kietnguyen3226 3 роки тому +1

    hi, i ran your code on arduino ide and got error while compilling, error like below, can you please help me to fix it? thank you, and here is the error:
    Arduino: 1.8.15 (Windows 7), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
    C:\Users\Home\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp: In member function 'virtual void FirebaseHttpClientEsp8266::begin(const string&)':
    C:\Users\Home\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:47:50: error: no matching function for call to 'begin(const char*, const char [60])'
    47 | http_.begin(url.c_str(), kFirebaseFingerprint);
    | ^
    In file included from C:\Users\Home\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9:
    C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:166:10: note: candidate: 'bool HTTPClient::begin(String, uint16_t, String)' (near match)
    166 | bool begin(String host, uint16_t port, String uri = "/") __attribute__ ((error("obsolete API, use ::begin(WiFiClient, host, port, uri)")));
    | ^~~~~
    C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:166:10: note: conversion of argument 2 would be ill-formed:
    C:\Users\Home\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:47:30: error: invalid conversion from 'const char*' to 'uint16_t' {aka 'short unsigned int'} [-fpermissive]
    47 | http_.begin(url.c_str(), kFirebaseFingerprint);
    | ^~~~~~~~~~~~~~~~~~~~
    | |
    | const char*
    In file included from C:\Users\Home\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9:
    C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:167:10: note: candidate: 'bool HTTPClient::begin(String, const uint8_t*)' (near match)
    167 | bool begin(String url, const uint8_t httpsFingerprint[20]) __attribute__ ((error("obsolete API, use ::begin(WiFiClientSecure, ...)")));
    | ^~~~~
    C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:167:10: note: conversion of argument 2 would be ill-formed:
    C:\Users\Home\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:47:30: error: invalid conversion from 'const char*' to 'const uint8_t*' {aka 'const unsigned char*'} [-fpermissive]
    47 | http_.begin(url.c_str(), kFirebaseFingerprint);
    | ^~~~~~~~~~~~~~~~~~~~
    | |
    | const char*
    C:\Users\Home\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp: In member function 'virtual void FirebaseHttpClientEsp8266::begin(const string&, const string&)':
    C:\Users\Home\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:51:60: error: invalid conversion from 'const char*' to 'const uint8_t*' {aka 'const unsigned char*'} [-fpermissive]
    51 | http_.begin(host.c_str(), kFirebasePort, path.c_str(), kFirebaseFingerprint);
    | ^~~~~~~~~~~~~~~~~~~~
    | |
    | const char*
    In file included from C:\Users\Home\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9:
    C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:168:70: note: initializing argument 4 of 'bool HTTPClient::begin(String, uint16_t, String, const uint8_t*)'
    168 | bool begin(String host, uint16_t port, String uri, const uint8_t httpsFingerprint[20]) __attribute__ ((error("obsolete API, use ::begin(WiFiClientSecure, ...)")));
    | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
    exit status 1
    Error compiling for board NodeMCU 1.0 (ESP-12E Module).
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

  • @muhammadazim4656
    @muhammadazim4656 4 роки тому

    hello bro, I have problem with my firebase. when I make some changes through Atom software, it not change anything in my website. Even tho I have entered ctrl + f5.

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

    sir how to do that without using the hardcoded ssid and wifi password? but with the help of wifimanager library? much appreciated man

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

    Bro can you do one with soil ph sensor wherein the data is sent into android and google firebase using esp8266

  • @debduttapanda2018
    @debduttapanda2018 3 роки тому

    Your video is very helpful. But the firebaseExtended for arduino is not in active development. Secondly the connection sometimes seems sleeping(not responding sometimes) after some time or after some idle time. After some trial it works again. So my question is the firebase lib for arduino can be used for production and how can I fix the connection freeze/sleeping/not responding situation? Thanks

  • @pedropedroza5617
    @pedropedroza5617 3 роки тому

    Hello from Mexico i have a problem with this :( because when I try to connect with firebase I can't sent datos to firebase, I saw many videos in Spanish but nothing, could you help me with this issue?

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

    Will the google firebase store the historical data, i mean whenever i use the sensor does it store and show all the readings?

  • @smitmehta3329
    @smitmehta3329 3 роки тому

    SIR I AM NOT GETTING THE FIREBASEARDUINO LIBRARY
    CAN YOU PLS GIVE ME A LINK OF IT 🙏🙏

  • @jitenderpatil2371
    @jitenderpatil2371 3 роки тому

    Can we save the data by using mit app on mobile in excel please give details

  • @rianaldiansyah8096
    @rianaldiansyah8096 4 роки тому

    can you make control and monitoring system at the same time with 1 nodemcu and arduino with serial communication???

  • @VINAYAKPANCHAL-kx8jt
    @VINAYAKPANCHAL-kx8jt 6 місяців тому

    what is firebase auth and firebase host in your Arduino code and how can i find that?

  • @groody5358
    @groody5358 3 роки тому

    dude I am getting ESP Auto reset after 50 Serial Monitor messages.
    Can you help me please?

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

    doesn't work anymore

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

    the FirebaseArduino.h is not recognised

  • @sezginkorkmaz976
    @sezginkorkmaz976 4 роки тому +1

    good job. i see your video " send data to thing speak server using sim 800/900gsm" . it was olso nice. i have a question. how can i make gsm connection with FİREBASE. i can not make it. i couldn't send data to firebase server using sim800/900 gsm.
    how can I do it. thanks in advance for your help.

    • @HowtoElectronics
      @HowtoElectronics  4 роки тому +1

      Hi, your query is noted. In the future project , i will try sending data to firebase using gsm & arduino.

    • @thenextproblem8001
      @thenextproblem8001 3 роки тому

      @@HowtoElectronics have you done it mate :)

    • @HowtoElectronics
      @HowtoElectronics  3 роки тому +1

      Check the latest video related to Arduino IoT Box, I have done.

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

    Can we add dht11 sensor to this circuit?

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

    please help i cant find the library anywhere

  • @ky-effect2717
    @ky-effect2717 2 роки тому

    Thanks for the video bro

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

    where is MIT app inventor

  • @yesmecreations2533
    @yesmecreations2533 3 роки тому

    Sir, how much data send and receive in firebase database free subscription

  • @solidname9085
    @solidname9085 3 роки тому

    what if i want use MQTT protocol? please reply

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

    if i created a custom mit app with firebase it won't opening and says authentication required. but when i installed your App there is no problem. if i changed the firebase url and key in the app you had given, then the app is getting installed but the app won't gets opened

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

      please help me brother if you had time😣. it would be a great help

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

    I want this code ... Plzz could you help me sir

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

    No need of arduino ?

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

    I want to ask, when I compile and upload the coding in esp8266 in the monitor series only shows the dots .. how I want to solve this problem

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

      just change the baud rate in serial monitor as you fix in your program under setup () function

  • @chathurakawshalya
    @chathurakawshalya 4 роки тому

    Thanks a lot mate

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

    NOT WORKING

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

    where is linke of MIT app

  • @aryangupta4252
    @aryangupta4252 3 роки тому

    please also tell how to create data base

  • @no0bajnabi932
    @no0bajnabi932 4 роки тому

    Brother how can i learn this? Please reply me

  • @kashishnaqvi4708
    @kashishnaqvi4708 4 роки тому

    Hey, Is there any way we can build an app with MIT app inventor for different nodemcu boards, as we always have to add the firebase token and url in Firedatabase properties, we always have to edit it then compile the project, Can you please tell me if i can fill the token and url of firebase from outside the code? Please help, it is urgent.

    • @HowtoElectronics
      @HowtoElectronics  4 роки тому

      May be you can design the Android App using Android Studio. You can add the feature there.

  • @yesmecreations2533
    @yesmecreations2533 3 роки тому

    Sir, if nodemcu is fitted in box then what to do so it will not be overheated and is firebase database free subscription is sufficient for small project

    • @HowtoElectronics
      @HowtoElectronics  3 роки тому

      It wont be overheated. And firebase data is sufficient.

    • @yesmecreations2533
      @yesmecreations2533 3 роки тому

      @@HowtoElectronics Sir, how much data send and receive in firebase database free subscription

  • @蔣駿緯
    @蔣駿緯 3 місяці тому

    doesnt work

  • @jaafaromar8570
    @jaafaromar8570 3 роки тому

    Why my database secrets doesn't have auth?

    • @intuicodigital1135
      @intuicodigital1135 3 роки тому +1

      You need to go to data base and create a database first then go back to secrets

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

    bro please give me linke of the MIT app aifi linke

  • @ramonvaldezmeza8082
    @ramonvaldezmeza8082 4 роки тому

    can i graphic these data in webapp?

  • @maruf826
    @maruf826 4 роки тому +1

    bro i've the problem why my firebase doesn't post the data, serial monitor show " pushing /logs failed"

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

    Nice bro 👍👍👍👍👍

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

    I love u Thank you

  • @AlbertoRodriguez-oe6jo
    @AlbertoRodriguez-oe6jo 3 роки тому

    Thanks.

  • @alexisalejandroespinozalag3538
    @alexisalejandroespinozalag3538 3 роки тому

    Hola, tengo un problema, todo funciona pero el sensor dht11 en el apartado de temperatura da como grados -20 :( , podrias ayudarme ?

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

      hola tu tienes problema con bibliotecas

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

      Hay forma de guardar los datos en Cloud firebase?, esto ya lo tengo funcional en real time, hice api en CI para obtener mis registros en json. Solo que no encuentro la forma de enviarlos a Cloud firebase.

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

    ESP8266Wifi.h ---> Library Name Please.....

  • @hamzarauf320
    @hamzarauf320 3 роки тому

    my database secret keys is not showin can you plz help me how to solve it ?