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 - Наука та технологія
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
I keep getting "pushing / logs failed" in the serial monitor and the data does not publish to Firebase :( sos
hey excuse me but it says Error compiling the NodeMCU 1.0 (ESP-12E Module)
Thank you so much for this !!!
it literally solved my Problem !!!
i was messing with it since 3 days !!!!
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..
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.
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
You are continuously writing to pin in a Loop, do u think its going to damage the hardware?
No it wont damage the hardware
still not connecting with Firebase showing the message "pushing /logs failed problem"
pushing /logs failed:
Humidity: 71.00% Temperature: 21.30°C
Same Error ...
Bhai koi solution mila?
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?
In example 1, instead of on or off can we send light intensity data( like a slider in blynk)?
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?
Don’t know but I am not getting database credentials for me😢
Awesome sir jee
Dear, when am compling code ,its come error for node mcu, pl tell me how to solve.....
Will this application work if I use only ntc thermistor I am getting perfect reading on firebase but this app doesn't display anything
Good Day! Where can I find the library that you've used? I can't seem to find it in the description box.
higood guide and idea, unfortunately i have trouble, i could not have any APi or secret key to be used, suggestions
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
To same application can u add battry voltage and current reading?how we do that
Hello, how would it be to instead show the data on a TFT Display ILI9341, for example?
this library is flawed. you have to change the firebase fingerprint every now and then!! :(
a great amount of knowledge
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.
Same error could you resolve?
downgrade ur arduinojson to2.7+
@@leejaric4448 bro there is no 2.7+ can you pls help
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.
sir how to do that without using the hardcoded ssid and wifi password? but with the help of wifimanager library? much appreciated man
Bro can you do one with soil ph sensor wherein the data is sent into android and google firebase using esp8266
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
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?
Will the google firebase store the historical data, i mean whenever i use the sensor does it store and show all the readings?
SIR I AM NOT GETTING THE FIREBASEARDUINO LIBRARY
CAN YOU PLS GIVE ME A LINK OF IT 🙏🙏
Can we save the data by using mit app on mobile in excel please give details
can you make control and monitoring system at the same time with 1 nodemcu and arduino with serial communication???
what is firebase auth and firebase host in your Arduino code and how can i find that?
dude I am getting ESP Auto reset after 50 Serial Monitor messages.
Can you help me please?
doesn't work anymore
the FirebaseArduino.h is not recognised
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.
Hi, your query is noted. In the future project , i will try sending data to firebase using gsm & arduino.
@@HowtoElectronics have you done it mate :)
Check the latest video related to Arduino IoT Box, I have done.
Can we add dht11 sensor to this circuit?
please help i cant find the library anywhere
Thanks for the video bro
where is MIT app inventor
Sir, how much data send and receive in firebase database free subscription
what if i want use MQTT protocol? please reply
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
please help me brother if you had time😣. it would be a great help
I want this code ... Plzz could you help me sir
No need of arduino ?
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
just change the baud rate in serial monitor as you fix in your program under setup () function
Thanks a lot mate
NOT WORKING
where is linke of MIT app
please also tell how to create data base
Brother how can i learn this? Please reply me
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.
May be you can design the Android App using Android Studio. You can add the feature there.
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
It wont be overheated. And firebase data is sufficient.
@@HowtoElectronics Sir, how much data send and receive in firebase database free subscription
doesnt work
Why my database secrets doesn't have auth?
You need to go to data base and create a database first then go back to secrets
bro please give me linke of the MIT app aifi linke
can i graphic these data in webapp?
bro i've the problem why my firebase doesn't post the data, serial monitor show " pushing /logs failed"
Same problem face me..
@@nickautomationtech6687 yeah we have a solution. due to key
which solve the problem
Nice bro 👍👍👍👍👍
I love u Thank you
Thanks.
Hola, tengo un problema, todo funciona pero el sensor dht11 en el apartado de temperatura da como grados -20 :( , podrias ayudarme ?
hola tu tienes problema con bibliotecas
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.
ESP8266Wifi.h ---> Library Name Please.....
my database secret keys is not showin can you plz help me how to solve it ?