Skip to content

paulgreg/esp8266-color-weather-station

Repository files navigation

ESP8266 Weather Station

That project is another version of my esp32 weather station, using here an esp8266 and a TFT screen to display multiple locations.

Hardware

  • esp8266
  • ILI9341 TFT screen compatible 3.3V

The ILI9341 TFT display is connected to the esp8266 board as follows:

  • CS pin is connected to D2 (GPIO4),
  • RST pin is connected to D3 (GPIO0),
  • D/C pin is connected to D4 (GPIO2),
  • MOSI pin is connected to D7 (GPIO13),
  • SCK pin is connected to D5 (GPIO14),
  • VCC and BL are connected to pin 3V3,
  • GND is connected to pin GND of the esp8266

Connections to flash esp8266 (if not using NodeMCU)

  • VCC to 3.3
  • Ground to ground
  • RX from FTDI to TX on ESP
  • TX from FTDI to RX on ESP
  • DTR from FTDI to GPIO 0 on ESP
  • RST from FTDI to RESET on ESP

Arduino env

Copy parameters.h.dist to parameters.h and update it with your wifi settings and update the locations array (you need to change lat/lng and set your OpenWeatherMap API token).

Weather API

Icons

Icons are official icons from OpenWeatherMap.

I’ve used Gimp to convert them into BMP then used lcd-image-converter to transform them into .h file. You’ll need to set color profile to R5G6B5 and little-endian.

ILI9341 library

Here’s useful links :

HTTP request & JSON parsing