Git Product home page Git Product logo

eve-esp32-weather-demo's Introduction

Example code for the EVE on a ESP with the WEMOS D1 mini

Simple weather station application for an ESP and a Matrix Orbital 4.3" Display.

Weather Screen

Requirements

1. Display setup

You need to upload the background image to the display Connect the EVE display to the USB2SPI board, be careful that the FFC is properly inserted in both headers Plug-in the USB2SPI to a USB cable and to your computer

DM

To verify you can run the test program, you should see the Matrix Orbital logo

jpeg_demo_43_EVE3_TPN.exe

DM

Download and install the EVE Asset Builder

https://www.matrixorbital.com/index.php?route=download/download/get&did=1695

With the EVE Asset Builder you will need to upload the images to the display

EAB1

  • a. Select Flash Utilities
  • b. Select Flash Programmer
  • c. Select MPSEE
  • d. Click Detect

The software will connect to the display and verify the on-board memory

EAB2

  • e. Select the flash.bin file in the flash folder
  • f. Click Update&Verify
  • g. Verify the upload is successful

2. Wiring the ESP32 to the EVE Display

Display---SPI2BBC---ESP32

EAB2

ESP Breakout Board
GND GND
3.3V 3.3V
D5 SCK
D6 MISO
D7 MOSI
D8 CS
D0 RST

3. Skeptch/Code setup

You will require the Arduino IDE

You may require to rename the folder to 'ESP-EVE3-Weather-Demo'

Load 'ESP-EVE3-Weather-Demo.ino'

Install the ESP8266 Board Manager

https://averagemaker.com/2018/03/wemos-d1-mini-setup.html

Configure the IDE by selecting the proper Board and COM Port.

Libraries required

to install Sketch > Include Library > Manage Libraries... and installing the library

  • ESP8266 Weather Station library by ThingPulse, version 2.0.1 was used during development.
  • Json Streaming Parser library by Daniel Eichhorn, version 1.0.5 was used during development.

openweathermap.org API Key

The datasource for this demo is the OpenWeatherMap API, befoure you can use this API you'll need to obtain a free API key.

openweathermap.org Location Code

  • Go to https://openweathermap.org/find and search for the city of your choice.
  • Click the link of the city of your choice and it will navigate to the weather page for this city. The last part of the URL will be the location code.

ie: If you Search for Calgary the page will be https://openweathermap.org/city/5913490 in this example 5913490 will be the location code.

Code Changes

Before you can run the code a few edits will need to be made in esp_weather_demo.ino

Variable Purpose
WIFI_SSID The name of the WIFI access point you would like to use
WIFI_PWD The password required for the WIFI access point
OPEN_WEATHER_MAP_APP_ID The openweathermap.org API key obtained above
OPEN_WEATHER_MAP_LOCATION The Location Code obtained above
UTC_OFFSET The time offset from DST

Compile and Run

Loading Weather Screen

Support Forums

http://www.lcdforums.com/forums/viewforum.php?f=45

eve-esp32-weather-demo's People

Contributors

hjakl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.