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

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 พ.ค. 2020
  • NextPCB offers first 2-layer 100 X 100 mm PCB with 0$ : www.nextpcb.com/?code=Htoeletric
    4-layer PCB - 12$ : www.nextpcb.com/?code=Htoeletric
    ....................................................................................................................................................................................................................................
    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: how2electronics.com/led-contr...
    2. Send Real-Time Sensor Data to Google Firebase with ESP8266: how2electronics.com/send-sens...
    3. Send Sensor Data to Android Using Google Firebase & ESP8266: how2electronics.com/send-sens...
    ....................................................................................................................................................................................................................................
    Drop a like if you liked this video.
    Don't forget to subscribe to our channel for more Electronics projects and tutorials.
    Website: how2electronics.com
    Facebook: / electronicsbyalex
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 86

  • @abrahamchristopher4945
    @abrahamchristopher4945 2 ปีที่แล้ว +2

    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

  • @roopkumardubey4453
    @roopkumardubey4453 3 ปีที่แล้ว

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

  • @spyghetti
    @spyghetti 3 ปีที่แล้ว +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.

  • @nitishnitish9172
    @nitishnitish9172 3 ปีที่แล้ว

    a great amount of knowledge

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

  • @humyrx
    @humyrx 3 ปีที่แล้ว +3

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

  • @user-xt6bp1ny5x
    @user-xt6bp1ny5x 6 หลายเดือนก่อน

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

  • @debduttapanda2018
    @debduttapanda2018 2 ปีที่แล้ว

    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

  • @rafaelpascua7630
    @rafaelpascua7630 7 หลายเดือนก่อน

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

  • @mramzadg
    @mramzadg 3 ปีที่แล้ว +1

    Awesome sir jee

  • @ky-effect2717
    @ky-effect2717 ปีที่แล้ว

    Thanks for the video bro

  • @chathurakawshalya
    @chathurakawshalya 3 ปีที่แล้ว

    Thanks a lot mate

  • @rianaldiansyah8096
    @rianaldiansyah8096 3 ปีที่แล้ว

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

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

  • @filippogermi1618
    @filippogermi1618 3 ปีที่แล้ว

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

  • @Jihenguesmi
    @Jihenguesmi หลายเดือนก่อน +1

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

  • @sreekanth252
    @sreekanth252 2 หลายเดือนก่อน

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

  • @Dancopymus
    @Dancopymus 2 ปีที่แล้ว

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

  • @kasunperera4625
    @kasunperera4625 ปีที่แล้ว

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

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

  • @b_28_vaidande_ayush93
    @b_28_vaidande_ayush93 2 ปีที่แล้ว

    Nice bro 👍👍👍👍👍

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

  • @pravindasarkar788
    @pravindasarkar788 2 ปีที่แล้ว +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..

  • @muhammadazim4656
    @muhammadazim4656 3 ปีที่แล้ว

    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.

  • @VINAYAKPANCHAL-kx8jt
    @VINAYAKPANCHAL-kx8jt หลายเดือนก่อน

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

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

  • @denise4ever242
    @denise4ever242 ปีที่แล้ว

    Can we add dht11 sensor to this circuit?

  • @jitenderpatil2371
    @jitenderpatil2371 2 ปีที่แล้ว

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

  • @federickgregorio511
    @federickgregorio511 7 หลายเดือนก่อน

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

  • @solidname9085
    @solidname9085 3 ปีที่แล้ว

    what if i want use MQTT protocol? please reply

  • @hussonfaesl6360
    @hussonfaesl6360 2 ปีที่แล้ว

    I love u Thank you

  • @yashkelh
    @yashkelh 7 หลายเดือนก่อน

    where is linke of MIT app

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

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

  • @hoangnam5848
    @hoangnam5848 6 หลายเดือนก่อน

    please help i cant find the library anywhere

  • @groody5358
    @groody5358 3 ปีที่แล้ว

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

  • @user-hq5cn5pw3u
    @user-hq5cn5pw3u 2 หลายเดือนก่อน

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

  • @AlbertoRodriguez-oe6jo
    @AlbertoRodriguez-oe6jo 2 ปีที่แล้ว

    Thanks.

  • @smitmehta3329
    @smitmehta3329 2 ปีที่แล้ว

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

  • @aryangupta4252
    @aryangupta4252 3 ปีที่แล้ว

    please also tell how to create data base

  • @yashkelh
    @yashkelh 7 หลายเดือนก่อน

    bro please give me linke of the MIT app aifi linke

  • @time-lapse259
    @time-lapse259 3 ปีที่แล้ว +1

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

  • @kashishnaqvi4708
    @kashishnaqvi4708 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

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

  • @yesmecreations2533
    @yesmecreations2533 3 ปีที่แล้ว

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

  • @rameshk.pandey6883
    @rameshk.pandey6883 9 หลายเดือนก่อน

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

  • @ramonvaldezmeza8082
    @ramonvaldezmeza8082 3 ปีที่แล้ว

    can i graphic these data in webapp?

  • @hamzarauf320
    @hamzarauf320 3 ปีที่แล้ว

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

  • @yashkelh
    @yashkelh 7 หลายเดือนก่อน

    where is MIT app inventor

  • @sushanshakya
    @sushanshakya 7 หลายเดือนก่อน

    No need of arduino ?

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

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

  • @muhammadgul5804
    @muhammadgul5804 3 ปีที่แล้ว +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?

  • @kietnguyen3226
    @kietnguyen3226 2 ปีที่แล้ว +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.

    • @shrushtihegde9714
      @shrushtihegde9714 2 ปีที่แล้ว

      Same error could you resolve?

    • @leejaric4448
      @leejaric4448 2 ปีที่แล้ว

      downgrade ur arduinojson to2.7+

    • @akhilsubhash7644
      @akhilsubhash7644 2 ปีที่แล้ว

      @@leejaric4448 bro there is no 2.7+ can you pls help

  • @AfraimZahangir
    @AfraimZahangir ปีที่แล้ว

    the FirebaseArduino.h is not recognised

  • @no0bajnabi932
    @no0bajnabi932 3 ปีที่แล้ว

    Brother how can i learn this? Please reply me

  • @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 ปีที่แล้ว

      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.

  • @sezginkorkmaz976
    @sezginkorkmaz976 3 ปีที่แล้ว +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  3 ปีที่แล้ว +1

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

    • @thenextproblem8001
      @thenextproblem8001 2 ปีที่แล้ว

      @@HowtoElectronics have you done it mate :)

    • @HowtoElectronics
      @HowtoElectronics  2 ปีที่แล้ว +1

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

  • @dashelbernardo6104
    @dashelbernardo6104 5 หลายเดือนก่อน +1

    NOT WORKING

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

  • @AhmedEu
    @AhmedEu 2 ปีที่แล้ว

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

  • @jesus_life
    @jesus_life ปีที่แล้ว

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

  • @maruf826
    @maruf826 3 ปีที่แล้ว +1

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