A 2.4″ TFT Touchscreen Shield For Arduino

Introduction

2.4" TFT Touch Screen Shield With Micro SD Socket
2.4″ TFT Touch Screen Shield With Micro SD Socket

If you are looking for an inexpensive graphical interface for your Arduino, this could be it. Our 2.4″ Colour TFT display, has a four wire resistive touch screen, a micro SD card socket, and a convenient arduino shield footprint. To help you get going we have provided some example code, which can be downloaded here.

Specifications

  • Screen Size  :  2.4 inch
  • Resolution  :  240 x 320
  • LCD Color   :  65k
  • LCD Driver  : ST7781
  • Interface      : 8080 8 data bit with 4 control bits
  • Touchscreen  : 4 Wire Resistive Touchscreen

Arduino Pin Connections

Arduino Pin LCD Shield Pin Use
3.3V 3.3V Power
5V 5V Power
GND GND Power
A0 LCD_RD LCD Control
A1 LCD_WR   TOUCH_YP LCD Control / Touch Data
A2 LCD_RS     TOUCH_XM LCD Control / Touch Data
A3 LCD_CS LCD Control
A4 LCD_RST LCD Reset
D2 LCD_D2 LCD Data
D3 LCD_D3 LCD Data
D4 LCD_D4 LCD Data
D5 LCD_D5 LCD Data
D6 LCD_D6 / TOUCH XP LCD Data/ Touch Data
D7 LCD_D7 / TOUCH YM LCD Data / Touch Data
D8 LCD_D0 LCD Data
D9 LCD_D1 LCD Data
D10 SD_CS SD Select
D11 SD_DI SD Data
D12 SD_DO SD Data
D13 SD_SCK SD Clock

 How To Use.

WARNING.  The USB B-type port on the Arduino Uno R3 is taller then the headers on the board.  As a result, many shields, including this one can contact the metal shielding of the USB port, causing damage. The simplest way to avoid this is to place a piece of electrical tape, or Kapton tape, on top of the USB port to insulate it.

As with all Arduino Shields, connecting to the arduino is simply a matter of plugging the shield in. Take care to align the pins correctly, and ensure the bottom of the shield does not make contact with the Arduino USB port.

Software

We have modified the open source  Adafruit-TFTLCD library to work with the pin arrangement, and ST7781 Controller used bu this shield. Examining the examples should give a fair idea of how use these, however we are always happy to answer relevant questions. The original library was written to work with a range of different controllers and shields. While this is convenient for using boards interchangeably, we decided to strip it back to just what was needed for this shield and the ST7781 controller, rather than extend it to include one more shield. This should make the memory footprint smaller, and the code a little faster. We will continue to improve this as time permits. To use the demonstration code, download  the library from here, and extract. Copy the folder “SWTFT-Shield” from the extracted archive to your arduino Libraries folder. You will also need to install the :