Giter VIP home page Giter VIP logo

esp32-e-paper-weather-display's Introduction

ESP32-e-Paper-Weather-Display

An ESP32 and an ePaper Display reads Open Weather Map and displays the weather

For standalone use, download the ZIP file to your desktop.

Go to Sketch > Include Library... > Add .ZIP Library... Then, choose the ZIP file.

After inclusion, Go to File, Examples and scroll down to 'ESP32-e-paperWeather-display' and choose your version/screen size. Make sure to come back to this dialog from time to time to keep each library up to date. Also make sure that you only have one version of each of the libraries installed.

Also see: https://www.arduino.cc/en/Guide/Libraries#toc4

Download the software to your Arduino's library directory.

  1. From the examples, choose depending on your module either

    • Waveshare_1_54
    • Waveshare_2_9
    • Waveshare_4_2
    • Waveshare_7_5 (instead of Mini Grafx requires GxEPD2 library, which needs Adafruit_GFX, additionally requires U8g2_for_Adafruit_GFX)
    • Waveshare_7_5_T7 (the newer 800x480 version; above is 640x384)
  2. Obtain your OWM API key - it's free

  3. Edit the owm_credentials.h file in the IDE (TAB at top of IDE) and change your Language, Country, choose your units Metric or Imperial and be sure to find a valid weather station location on OpenWeatherMap, if your display has all blank values your location does not exist!

  4. Save your files.

NOTE: See schematic for the wiring diagram, all displays are wired the same, so wire a 7.5" the same as a 4.2", 2.9" or 1.54" display!

The Battery monitor assumes the use of a Lolin D32 board which uses GPIO-35 as an ADC input, also it has an on-board 100K+100K voltage divider directly connected to the Battery terminals. On other boards, you will need to change the analogRead(35) statement to your board e.g. (39) and attach a voltage divider to the battery terminals.

Compile and upload the code - Enjoy!

7.5" 800x480 E-Paper Layout

alt text width="600"

7.5" 640x384 E-Paper Layout

alt text width="600"

4.2" E-Paper Layout

alt_text, width="400"

1.54" E-Paper Layout

alt_text, width="200"

**** NOTE change needed for latest Waveshare HAT versions ****

Ensure you have the latest GxEPD2 library

See here: https://github.com/ZinggJM/GxEPD2/releases/tag/1.2.10

Modify this line in the code:

display.init(115200, true, 2); // init(uint32_t serial_diag_bitrate, bool initial, uint16_t reset_duration, bool pulldown_rst_mode)

esp32-e-paper-weather-display's People

Contributors

andymule avatar dtorner avatar fixxcz avatar g6ejd avatar jeanrobertjs avatar kretzp avatar maditnerd avatar pakequis avatar rmoravcik avatar simper00 avatar systeembeheerder avatar televator avatar tomaszdom avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.