Skip to content

Latest commit

 

History

History
138 lines (82 loc) · 4.24 KB

README.md

File metadata and controls

138 lines (82 loc) · 4.24 KB

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