This repository was archived by the owner on Mar 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +78
-4
lines changed
Expand file tree Collapse file tree 3 files changed +78
-4
lines changed Original file line number Diff line number Diff line change 1+ # FirebaseDemo
2+
3+ FirebaseDemo is a sample that shows basic usage of the ` FirebaseArduino ` API.
4+
5+ ## Software setup
6+
7+ 1 . Install [ Arduino 1.6.9] ( https://www.arduino.cc/en/Main/Software )
8+ 1 . Install [ Arduino ESP8266 core] ( https://github.com/esp8266/Arduino#installing-with-boards-manager )
9+ 1 . Download [ FirebaseArduino library] ( https://github.com/googlesamples/firebase-arduino/archive/master.zip )
10+ 1 . Start Arduino
11+ 1 . Click ` Sketch > Include Library > Add .ZIP Library... `
12+ 1 . Choose ` firebase-arduino-master.zip ` downloaded in step ` 3. `
13+
14+ ## Configuration
15+
16+ 1 . Go to https://www.firebase.com/ and create a new Firebase
17+ 1 . Copy the ` Firebase Hostname `
18+ 1 . Go to ` Secrets `
19+ 1 . Click ` Firebase Secrets > Show `
20+ 1 . Copy the ` Firebase Secret `
21+ 1 . Start Arduino
22+ 1 . Click ` File > Examples > FirebaseArduino > FirebaseRoom_ESP8266 `
23+ 1 . Replace ` SSID ` and ` PASSWORD ` with WiFi credentials
24+ 1 . Replace ` example.firebaseio.com ` with the ` Firebase Hostname ` from step ` 2. `
25+ 1 . Replace ` secret_or_token ` with ` Firebase Secret ` from step ` 5. `
26+ 1 . Click ` Sketch > Upload `
27+
28+ ## Play
29+
30+ 1 . Go to the Firebase console ` Data ` section
31+ 1 . Watch the data being modified as the sketch runs.
Original file line number Diff line number Diff line change 1- # Firebase Room
1+ # FirebaseRoom
2+
3+ FirebaseRoom is a sample that shows basic usage of FirebaseArduino to push
4+ sensor data to Firebase, and trigger actuators from Firebase.
25
36## Software setup
47
24271 . Go to https://www.firebase.com/ and create a new Firebase
25281 . Copy the ` Firebase Hostname `
26291 . Go to ` Secrets `
27- 1 . Click ` Firebase Secrets > Shows `
30+ 1 . Click ` Firebase Secrets > Show `
28311 . Copy the ` Firebase Secret `
29321 . Start Arduino
30- 1 . Click ` File > Examples > firebase-arduino > FirebaseRoom_ESP8266 `
33+ 1 . Click ` File > Examples > FirebaseArduino > FirebaseRoom_ESP8266 `
34+ 1 . Replace ` SSID ` and ` PASSWORD ` with WiFi credentials
31351 . Replace ` example.firebaseio.com ` with the ` Firebase Hostname ` from step ` 2. `
32361 . Replace ` secret_or_token ` with ` Firebase Secret ` from step ` 5. `
33371 . Click ` Sketch > Upload `
40441 . Same for ` cooldown ` and ` brrr `
41451 . Press the push button in the room
42461 . Watch the ` pushbutton ` value change in the Firebase console
43- 1 . Put your hand on the light sensor
47+ 1 . Put one hand on the light sensor
44481 . Watch the ` sunlight ` value change in the Firebase console
4549
4650## Homeworks
Original file line number Diff line number Diff line change 1+ # FirebaseStream
2+
3+ FirebaseStream is a sample that shows basic usage of the ` FirebaseArduino `
4+ streaming API.
5+
6+ It displays the current bitcoin price on a OLED screen as it gets updated on
7+ https://publicdata-cryptocurrency.firebaseio.com .
8+
9+ ## Hardware setup
10+
11+ 1 . Get a [ Feather Huzzah] ( https://www.adafruit.com/product/2821 )
12+ 1 . Get a [ FeatherWing OLED] ( https://www.adafruit.com/products/2900 )
13+ 1 . Solder female headers on the ` Feather Huzzah ` .
14+ 1 . Solder mail headers on the ` FeatherWing OLED ` .
15+ 1 . Stack the ` FeatherWing OLED ` on top of the ` Feather Huzzah ` .
16+
17+ ## Software setup
18+
19+ 1 . Install [ Arduino 1.6.9] ( https://www.arduino.cc/en/Main/Software )
20+ 1 . Install [ Arduino ESP8266 core] ( https://github.com/esp8266/Arduino#installing-with-boards-manager )
21+ 1 . Download [ FirebaseArduino library] ( https://github.com/googlesamples/firebase-arduino/archive/master.zip )
22+ 1 . Start Arduino
23+ 1 . Click ` Sketch > Include Library > Add .ZIP Library... `
24+ 1 . Choose ` firebase-arduino-master.zip ` downloaded in step ` 3. `
25+ 1 . Install the following libraries using ` Sketch > Include Library > Manage Libraries... ` :
26+ - [ Adafruit_GFX] ( https://github.com/adafruit/Adafruit-GFX-Library )
27+ - [ Adafruit_SSD1306] ( https://github.com/adafruit/Adafruit_SSD1306 )
28+
29+ ## Configuration
30+
31+ 1 . Start Arduino
32+ 1 . Click ` File > Examples > FirebaseArduino > FirebaseStream_ESP8266 `
33+ 1 . Replace ` SSID ` and ` PASSWORD ` with WiFi credentials
34+ 1 . Click ` Sketch > Upload `
35+
36+ ## Play
37+
38+ 1 . Watch the screen be updated with the current bitcoin price.
39+ 1 . Watch the data being modified as the sketch run.
You can’t perform that action at this time.
0 commit comments