IOT with Firebase : Connecting Arduino NodeMCU with Google Firebase #PART1
Internet of Things developers share a lot of common implementation requirements across a wide range of IoT applications. Collecting data, delivering low latency content, and securing communications between devices and back-end services are just three of those common needs.while meeting common needs can be challenging at times, IoT development platforms such as Google Firebase provide services that allow developers to meet many of these requirements.
Let's Get Started With Tutorial :
Here I will begin my large IOT with Firebase Tutorial using Arduino NodeMCU that many people have been asking for. I decided to teach IOT with Firebase through problem solving. This first video covers basic setup guide for connecting Arduino NodeMCU with Goggle Firebase which includes step by step configuration of Firebase Console & Arduino IDE, and much more.
This tutorial is light on problems, I hope you enjoy it.
If you like videos like this consider donating $1, or simply turn off AdBlocker. Either helps me to continue making tutorials
Transcript / Cheat Sheet :
Software setup
- Install Arduino 1.6.9
- Install Arduino ESP8266 core
- Download FirebaseArduino library
- Start Arduino
- Click
Sketch > Include Library > Add .ZIP Library...
- Choose
firebase-arduino-master.zip
downloaded in step3.
Here i will suggest to only use arduino ide 1.6.9 version on Linux machine then only this tutorial will work like charm otherwise you will get error.
Now Include firebase libray to arduino ide navigate to : Sketch>Include Library > Add .zip Library > {Library _location}
For checking whether the library is installed or not just navigate to Sketch>Include Library >Manage Library & search for firebase library now we are ready to rock. Let's run our first example on arduino just navigate to : File>Examples>Firebase Arduino>Firebase_Demo_ESP8266.
Code :
Configuration
- Start Arduino
- Open
File > Examples > FirebaseArduino > FirebaseRoom_ESP8266
- In
above FirebaseRoom_ESP8266
: ReplaceWIFI_SSID
andWIFI_PASSWORD
with WiFi credentials - Go to https://firebase.google.com/console/ and create a new Firebase Project
- Go to
Database
- Copy the
Database hostname
(Database URL withouthttps://
and trailing/
) - In
Above code FirebaseRoom_ESP8266
: replaceFIREBASE_HOST
with theDatabase Hostname
- Go to
⚙ > Project Settings > Database > Database secrets
- Click
Firebase Secrets > Show
- Copy the
Database Secret
- In
FirebaseRoom_ESP8266
: ReplaceFIREBASE_AUTH
withDatabase Secret
- Select the board
Board > ESP8266 Modules > NodeMCU 1.0
- Select the serial port
Port > /dev/tty...
- Select the upload speed
Upload Speed > 115200
- Click
Sketch > Upload
After Uploading the sketch Open you Serial monitor and select baudrate of 9600, if everything goes well should able to see output screen below .
that's end up with great tutorial on getting started IOT with Firebase using Arduino NodeMCU & if you guy's are facing any issues let me know in comment section below :)
沒有留言:
張貼留言