WEATHERMAN – ESP8266 on a 2.4″ Colour LCD

The WEATHERMAN Web Weather Station project has taken on many guises as it has evolved through different hardware configurations. My latest is built on the ESP8266 WeMos D1 Mini board and uses my recent eBay delivered 2.4″ True Color TFT LCD 320×240 Display Module.


Weatherman: sporting its brand new CNC’ed case, showing day select button


Weatherman: In its brand new HDPE 2-part case

Weatherman Colour:

Weatherman Colour: running on an ESP8266 and displaying on a 2.4″ Colour 320×240 LCD

Similar to other small OLED displays, this display runs on 3.3V and supports an I²C interface which makes it an ideal companion to the web-capable ESP8266. And what’s more, it ships from within Canada!

According to the data sheet for this device (DS320240CTFT-56) from DIGOLE has the following features:

  • Pixels: 320xRGBx240, 262K colors, high bright self light emitting
  • Screen size: 36.8x49mm
  • Product size: (WxHxD): 43 x 70 x 5.6mm (1.7″ x 2.8″ x 0.2″)
  • Power Supply: 3.0V to 7.0V
  • Power consumption: 0.5mA to 135mA (at 5V when backlight full on)
  • Communication mode: UART, I2C, SPI, detect your setting automatically
  • Receiving buffer: 2Kb
  • Communication signal can work on 3.3V and 5.0V TTL
  • Default setting: UART baud 9600bps, I2C 0x27 address
  • UART baud (bps): 300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 115200

In addition, it boasts a simple command set with an integrated graphic engine, 7 preloaded fonts, provides special commands to set color and draw color image, and can display 256 color image with 262K true color image on same screen.

The unit is built using a WemMos D1 Mini board built on the ESP8266-12 processor. The board connects to the display using the I²C interface and a small push button is used to cycle through the seven days of the weather forecast. Data displayed comes from an API hosted by ““. For each of the 7 days of forecast, data is parsed from the response and displayed on the screen. Humidex and windchill are calculated using data from the forecast (see this post) and also displayed.

Weatherman Colour:

Weatherman Colour: Eminently hackable…

Stay cool!

3 thoughts on “WEATHERMAN – ESP8266 on a 2.4″ Colour LCD

  1. Thomas

    Hello Adrian,
    would you please be so kind to post the code for this great project?
    It would be a big help for using this display.
    Thanks a lot!

  2. joni khan

    Hi, Great work!

    can you share code and wiring diagram for displaying text on TFT with help of ESP8266. I tried alot but only white screen is displayed.


    1. Adrian Post author

      Thanks for your comment. Can you please describe what you are doing, the hardware that you are using and the interface between the ESP and the TFT.
      In my case, I am using the 2.4″ TFT from Digole and interfacing it to a WeMos D1 Mini ESP8266 board using I2C interface (GPIO5 -> SCL, GPIO4 -> SDA).


Come on... leave a comment...