FirebaseRoom is a sample that shows basic usage of FirebaseArduino to push sensor data to Firebase, and trigger actuators from Firebase.
- Install Arduino 1.6.9
- Install Arduino ESP8266 core
- Install Silicon Labs VCP driver (for MacOSX and Windows)
- Download FirebaseArduino library
- Start Arduino
- Click
Sketch > Include Library > Add .ZIP Library...
- Choose
firebase-arduino-master.zip
downloaded in step3.
- Get a Wio Link board
- Connect:
- a Grove - Vibration Motor on
pin 5
- a Grove - Light Sensor on
pin A0
- a Grove - Red LED on
pin 12
- a Grove - Button on
pin 14
- a Grove - Mini Fan on
pin 13
- Start Arduino
- Open
File > Examples > FirebaseArduino > FirebaseRoom_ESP8266
- In
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
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
- Go to the Firebase console
Data
section - Set
redlight
to1
then0
- Watch the Red LED turn on and off in the room
- Same for
cooldown
andbrrr
- Press the push button in the room
- Watch the
pushbutton
value change in the Firebase console - Put one hand on the light sensor
- Watch the
sunlight
value change in the Firebase console
- Build a Firebase web app that interacts with the room.
- Add Grove modules to modules interactions.
- Connect other Grove modules to the room and submit new PRs
- Reduce the number of Firebase API calls using
FirebaseObject
orFirebaseStream
. - Watch or star the GitHub repo
- Give feedback
- Report bugs
- Fork and contribute