Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 2.58 KB

readme.md

File metadata and controls

56 lines (41 loc) · 2.58 KB

wemos-d1-firebase-display

Demo

A remote display controlled with ESP82666

Click on the images to see a n HQ demo

Boot Demo

Motivation

This is how me and my wife communicate these days 😁🤷‍.

My friend Uri Shaked introduced me to esp8266 and it's been almost 10 years since I've written C/C++/Embeddedd. so why not?

Hardware

Wemos D1 Mini OLED 0.66'' (64x48)

Installation

Arduino IDE

  • download firebase-arduino
  • Arduino Studio > Sketch > Include Library > Add .ZIP Library

Firebase

  • create new project (change the name of the project in all the following)
  • navigate to project settings
  • grab the database secrets
    warning : "database secrets" are currently deprecated and use a legacy Firebase token generator. Update your source code with the Firebase Admin SDK.
  • make sure you have firebase-cli (npm install -g firebase-tools)

Configuration

  • rename src/wemos/config.sample.h to src/wemos/config.h and add your values
  • change "wemos-d1-firebase-display" in src/web/.firebaserc to be your firebase project name

Gotchas

  • if you're getting
    • Firebase.h:26:25: fatal error: ArduinoJson.h: No such file or directory"
    • FirebaseObject.h:109:21: error: 'StaticJsonBuffer' was not declared in this scope
  • Arduino Studio > Sketch > Include Library > make sure ArduinoJson is version 5.13.2

Run

Editor

  • if you're familiar with programming and used to have nice tools, maybe arduino IDE is not for you I advise to use VSCode + Arduino extension. remember to configure the IDE as below vscode config