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.
- 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|
|A1||LCD_WR TOUCH_YP||LCD Control / Touch Data|
|A2||LCD_RS TOUCH_XM||LCD Control / Touch Data|
|D6||LCD_D6 / TOUCH XP||LCD Data/ Touch Data|
|D7||LCD_D7 / TOUCH YM||LCD Data / Touch Data|
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.
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 :
- Touch Screen Library to access the Touch Screen
- Adafruit Core Graphics Library which is extended by our TFT library