Difference: TFTDisplay (2 vs. 3)

Revision 32020-07-17 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

TFT Displays

Introduction

A wide range of displays is available for use with the Arduino system. For the WeMos D1 mini system I found 3 display boards. Each of them is based a on different controller chip and has different resolution. Here they are are:

Changed:
<
<
  • 64x48 pixel 0.96" TFT screen with SSD1306 controller. The SSD1306 uses the I2C bus
>
>
  • 64x48 pixel 0.66" TFT screen with SSD1306 controller. The SSD1306 uses the I2C bus
 
  • 128x128 pixel 1.4" display based on the ST7735 controller. The ST7735 uses the SPI bus
  • 320x240 pixel 2.4" display based on the ILI9341 display and the XPT2046 touch controller.
Changed:
<
<
64x48 pixels with SSD3306 128x128 with ST7735 320x240 pixel touch screen with ILI9341
>
>
64x48 pixels with SSD1306 128x128 with ST7735 320x240 pixel touch screen with ILI9341
 
ssd1306.png tftScreen.png lolon2.4inch.png
Changed:
<
<
Each of them has its advantages and disadvantages. The 0.96" display is really tiny and its resolution is very limited allowing to write just a few characters. The 1.4" display is already quite a bit better even though 128x128 bit resolution is still not enough for sophisticated graphics. It is enough however to write a few lines of text and produce simply graphics, e.g. to create a graph of sensor readout results.
>
>
Each of them has its advantages and disadvantages. The 0.66" display is really tiny and its resolution is very limited allowing to write just a few characters. In addition it is monochrome only. However, the reference display driver included in MicroPython uses this controller chip. There are also higher resolution and color screens using this controller but I did not find one with the WeMos D1 mini bus interface.
 
Changed:
<
<
The 2.4" display is clearly the most powerful device, adding touch functionality. It is however so big that it is difficult to plug it onto the WeMos D1 bus, even it the connector is available. The better solution is an adapter board an a connecting cable.
>
>
The 1.4" display is already quite a bit better even though 128x128 bit resolution is still not enough for sophisticated graphics. It is enough however to write a few lines of text and produce simply graphics, e.g. creating a graph of sensor readout results.

The 2.4" display is clearly the most powerful device, adding touch functionality. It is however so big that it is difficult to plug it onto the WeMos D1 bus, even if the connector is available. The better solution is an adapter board and a connecting cable.

  Since the 1.4" display is enough for most our applications, it can be nicely plugged onto the bus just like any other sensor or actuator shield and it is substantially cheaper than the 2.4" solution, this is the device we chose for the course.
Added:
>
>

Preparing the hardware

Before using the display its solder jumpers on the back must be configured. There are 4 solder fields for configuration

  • TFT LED. his allows to control the display back light. I leave it unconfigured which results in the back light LED being permanently on
  • TFT_CS: D0. TFT_CS and TFT_DC can be selected onto D0, D3, D4 or D8 corresponding to GPIO 26, 17,16, 5. Since D3 and D4 cannot be used on the CPU with PSRAM the only selections possible are D0 and D8. I select D0 for CS and D8 for TFT_DC
  • TFT_DC: D8
  • TFT_RST is connected to the system reset
Here is a photo of the jumper settings:

tftJumpers.png

 

The driver software

Searching the Internet I found many display drivers none of which really satisfied me:

Line: 33 to 46
 
META FILEATTACHMENT attachment="ssd1306.png" attr="" comment="" date="1593855886" name="ssd1306.png" path="ssd1306.png" size="162691" user="UliRaich" version="1"
META FILEATTACHMENT attachment="tftScreen.png" attr="" comment="" date="1593855908" name="tftScreen.png" path="tftScreen.png" size="147843" user="UliRaich" version="1"
META FILEATTACHMENT attachment="lolon2.4inch.png" attr="" comment="" date="1593855908" name="lolon2.4inch.png" path="lolon2.4inch.png" size="224064" user="UliRaich" version="1"
Added:
>
>
META FILEATTACHMENT attachment="tftJumpers.png" attr="" comment="" date="1595002607" name="tftJumpers.png" path="tftJumpers.png" size="641474" user="UliRaich" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback