2.4" TFT touch Screen LCD (LGDP4535) Arduino Shield Compatible

  • RM38.00

  • Product Code: TFT Touch Screen 2.4 LGDP4535 
  • Availability: In Stock

The LCD has excellent vivid color contrast.

Spice up your Arduino project with a beautiful large touchscreen display shield with built in microSD card connection. This TFT display is big (2.4″ diagonal) bright (4 white-LED backlight) and colorful (18-bit 262,000 different shades)! 240×320 pixels with individual pixel control. It has way more resolution than a black and white 128×64 pixel display. As a bonus, this display has a resistive touchscreen attached to it already, so you can detect finger presses anywhere on the screen.

 

Specifications

  • 2.4" diagonal LCD TFT display
  • Resolution: 240×320 , 18-bit (262,000) color
  • LGDP4535 controller (0x4535)
  • 8-bit digital interface, plus 4 control lines
  • Uses digital pins 5-13 and analog 0-3. That means you can use digital pins 2, 3 and analog 4 and 5. Pin 12 is available if not using the microSD
  • Works with any Arduino ‘328 or Mega (Leonardo not supported yet)
  • 5V compatible! Use with 3.3V or 5V logic
  • Onboard 3.3V 300mA LDO regulator
  • 4 white LED backlight. On by default but you can connect the transistor to a digital pin for backlight control
  • 4-wire resistive touchscreen
  • Micro SD slot
  • Size: 71 x 52 x 7mm

 

Package Includes

  • 1 x Touch Screen Module
  • 1 x Stylus Pen

 

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

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.

 

Arduino Library

MCUFriend 2.4 inch LCD Shield – LGDP4535 LCD driver (0x4535)

Informatie (ENG): Bron Arduino forum

I was unable to find a programming datasheet for the lgdp4535 but I did turn-up some code for a different micropocessor platform that made this possible.
So this is a hack of the “Adafruit_TFTLCD” library where the ILI9341 initialisation valuse are replace with the values for the lgdp4535 and the library is initalised forced to use the ILI9341.

To do this modify “Adafruit_TFTLCD.cpp” and replace the array “ILI932x_regValues” with the following:

static const uint16_t ILI932x_regValues[] PROGMEM = {
  
      0x15, 0x0030,     /* Set the internal vcore voltage */                                              
     0x9A, 0x0010,     /* Start internal OSC */
      0x11, 0x0020,        /* set SS and SM bit */
      0x10, 0x3428,        /* set 1 line inversion */
      0x12, 0x0002,        /* set GRAM write direction and BGR=1 */ 
      0x13, 0x1038,        /* Resize register */
      TFTLCD_DELAY, 40, 
      0x12, 0x0012,        /* set the back porch and front porch */
      TFTLCD_DELAY, 40, 
      0x10, 0x3420,        /* set non-display area refresh cycle ISC[3:0] */
      0x13, 0x3045,        /* FMARK function */
      TFTLCD_DELAY, 70, 
      0x30, 0x0000,      /* RGB interface setting */
      0x31, 0x0402,        /* Frame marker Position */
      0x32, 0x0307,      /* RGB interface polarity */
      0x33, 0x0304,      /* SAP, BT[3:0], AP, DSTB, SLP, STB */
      0x34, 0x0004,      /* DC1[2:0], DC0[2:0], VC[2:0] */
      0x35, 0x0401,      /* VREG1OUT voltage */
      0x36, 0x0707,      /* VDV[4:0] for VCOM amplitude */
      0x37, 0x0305,      /* SAP, BT[3:0], AP, DSTB, SLP, STB */
      0x38, 0x0610,      /* DC1[2:0], DC0[2:0], VC[2:0] */
      0x39, 0x0610,      /* VREG1OUT voltage */
      0x01, 0x0100,      /* VDV[4:0] for VCOM amplitude */
      0x02, 0x0300,      /* VCM[4:0] for VCOMH */
      0x03, 0x1030,      /* GRAM horizontal Address */
      0x08, 0x0808,      /* GRAM Vertical Address */
      0x0A, 0x0008,      
      0x60, 0x2700,        /* Gate Scan Line */
      0x61, 0x0001,        /* NDL,VLE, REV */
      0x90, 0x013E,
      0x92, 0x0100,
      0x93, 0x0100,
      0xA0, 0x3000,
      0xA3, 0x0010,
      0x07, 0x0001,
      0x07, 0x0021,
      0x07, 0x0023,
      0x07, 0x0033,
      0x07, 0x0133,
};

Then in your setup code use:  tft.begin(0x9341);

 

Write a review

Note: HTML is not translated!
    Bad           Good

 

Tags: Screen, Touch