Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Latest commit

 

History

History
64 lines (53 loc) · 3.2 KB

File metadata and controls

64 lines (53 loc) · 3.2 KB

FirebaseRoom

FirebaseRoom is a sample that shows basic usage of FirebaseArduino to push sensor data to Firebase, and trigger actuators from Firebase.

Software setup

  1. Install Arduino 1.6.9
  2. Install Arduino ESP8266 core
  3. Install Silicon Labs VCP driver (for MacOSX and Windows)
  4. Download FirebaseArduino library
  5. Start Arduino
  6. Click Sketch > Include Library > Add .ZIP Library...
  7. Choose firebase-arduino-master.zip downloaded in step 3.

Hardware setup

  1. Get a Wio Link board
  2. Connect:

Configuration

  1. Start Arduino
  2. Open File > Examples > FirebaseArduino > FirebaseRoom_ESP8266
  3. In FirebaseRoom_ESP8266: Replace WIFI_SSID and WIFI_PASSWORD with WiFi credentials
  4. Go to https://firebase.google.com/console/ and create a new Firebase Project
  5. Go to Database
  6. Copy the Database hostname (Database URL without https:// and trailing /)
  7. In FirebaseRoom_ESP8266: replace FIREBASE_HOST with the Database Hostname
  8. Go to ⚙ > Project Settings > Database > Database secrets
  9. Click Firebase Secrets > Show
  10. Copy the Database Secret
  11. In FirebaseRoom_ESP8266: Replace FIREBASE_AUTH with Database Secret
  12. Select the board Board > ESP8266 Modules > NodeMCU 1.0
  13. Select the serial port Port > /dev/tty...
  14. Select the upload speed Upload Speed > 115200
  15. Click Sketch > Upload

Play

  1. Go to the Firebase console Data section
  2. Set redlight to 1 then 0
  3. Watch the Red LED turn on and off in the room
  4. Same for cooldown and brrr
  5. Press the push button in the room
  6. Watch the pushbutton value change in the Firebase console
  7. Put one hand on the light sensor
  8. Watch the sunlight value change in the Firebase console

Homeworks

  • 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 or FirebaseStream.
  • Watch or star the GitHub repo
  • Give feedback
  • Report bugs
  • Fork and contribute