FirebaseDemo is a sample that shows basic usage of the FirebaseArduino
API.
- 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.
- 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 - Watch the data being modified as the sketch runs
Certainly! Here's a similar format tailored for your "Lasereye" project:
-
Download the Application:
- Visit the GitHub repository for Lasereye.
- Click on the green "Code" button and select "Download ZIP".
- Once downloaded, extract the ZIP file to your desired location.
-
Setup ESP8266 Board:
- Connect and configure the ESP8266 board with the laser and laser sensor as per the project requirements.
-
Install Dependencies:
- [Add any specific instructions for installing dependencies, such as Firebase setup or Android Studio installation.]
-
Run the Android App:
- Open the Android Studio IDE.
- Import the project located in the extracted folder.
- Run the app on an Android emulator or physical device.
-
Interact with Lasereye:
- Use the Android app to monitor real-time notifications of trespassing events.
- Toggle the sensor's on/off status remotely through the app.
- Real-time Trespassing Detection: Lasereye detects trespassing events in real-time using a laser sensor.
- Firebase Integration: Trespassing events are recorded and stored in Firebase Realtime Database for access and monitoring.
- Android App Notifications: Receive instant notifications on your Android device when a trespassing event occurs.
- History Tracking: View a history of trespassing events within the Android app for monitoring and analysis.
- Remote Control: Control the sensor's on/off status remotely through the Android app.