Category:SPI TFT LCDs

From ElectroDragon
(Redirected from Category:TFT LCDs)
Jump to navigation Jump to search

Dimensions


Pin Definition

Header text Pin Definition Touch Resolution Controller
1.8 VCC: Power 3.3V/5V, GND, CS: SPI_CS Active on Low, RST: Reset, Low Active, DC: Data / Command, SDI/MOSI/Data, SCK, LED: LED backlight, 3.3V - 128*160 ST7735
2.2 VCC: Power 3.3V/5V, GND, CS: SPI_CS Active on Low, RST: Reset, Low Active, DC: Data / Command, SDI/MOSI/Data, SCK, LED: LED backlight, 3.3V TP_CLK, TP_CS, TP_DIN, TP_DOUT, TP_IRQ: Active on Low When Detect Touch 320*240 262K/65K ILI9341
2.4 VCC: Power 3.3V/5V, GND, CS: SPI_CS Active on Low, RST: Reset, Low Active, DC: Data / Command, SDI/MOSI/Data, SCK, LED: LED backlight, 3.3V TP_CLK, TP_CS, TP_DIN, TP_DOUT, TP_IRQ: Active on Low When Detect Touch 320*240 262K/65K ILI9341
2.8 VCC: Power 3.3V/5V, GND, CS: SPI_CS Active on Low, RST: Reset, Low Active, DC: Data / Command, SDI/MOSI/Data, SCK, LED: LED backlight, 3.3V TP_CLK, TP_CS, TP_DIN, TP_DOUT, TP_IRQ: Active on Low When Detect Touch 320*240 262K/65K ILI9341
3.2 VCC: Power 3.3V/5V, GND, CS: SPI_CS Active on Low, RST: Reset, Low Active, DC: Data / Command, SDI/MOSI/Data, SCK, LED: LED backlight, 3.3V TP_CLK, TP_CS, TP_DIN, TP_DOUT, TP_IRQ: Active on Low When Detect Touch 320*240 262K/65K ILI9341
3.5 VCC: Power 3.3V/5V, GND, CS: SPI_CS Active on Low, RST: Reset, Low Active, DC: Data / Command, SDI/MOSI/Data, SCK, LED: LED backlight, 3.3V TP_CLK, TP_CS, TP_DIN, TP_DOUT, TP_IRQ: Active on Low When Detect Touch 480*320 262K/65K ILI9488
4.0 VCC: Power 3.3V/5V, GND, CS: SPI_CS Active on Low, RST: Reset, Low Active, DC: Data / Command, SDI/MOSI/Data, SCK, LED: LED backlight, 3.3V XP2046: TP_CLK, TP_CS, TP_DIN, TP_DOUT, TP_IRQ: Active on Low When Detect Touch 480*320 262K/65K ST7796S

Hardware Design

Schematic

  • HY-TFT320: File:HY-TFT320 schematics.pdf
  • For 1.8 SPI TFT LCD, JP1 is the power level selector, short connecting it when you supply the power with 3.3V

Arduino

概述

当我们直接将没有板载电平转换模块的SPI显示模块接到Arduino上运行时,会发现根本不能运行。

这是因为SPI模块的引脚只能输入3.3V高电平,而Arduino输出的高电平为5V。要想成功运行,有两种方法:短接法和外接电平转换模块法。

短接法的优点是操作简单,只需短接,不需要再外接器件,缺点是运行时,模块发热量较大,可能会影响模块的使用寿命。

外接电平转换模块法为常规操作,优点是运行时模块发热量小,运行稳定,缺点是操作稍微复杂(需要外接电平转换模块),增加成本(需要额外购买电平转换模块)。

综上所述,推荐使用外接电平转换模块法。

短接法

所谓短接法就是将模块背后的J1元件位置(如下图所示)用焊锡短接起来。短接后,运行时模块VCC引脚必须接5V电源(接3.3V不能运行)。

600px-MSP2402-007.jpg

外接电平转换模块法

所谓外接电平转换模块法就是将Arduino和显示模块通过外部电平转换模块连接起来,这样就可以将Arduino输出的5V高电平经过电平转换模块转换为3.3V,然后输入给显示模块。如下图所示:

600px-MSP2402-008.png

Demo Code



REF

Tools

This category currently contains no pages or media.