Difference between revisions of "ITDB02-2.2S/zh-cn"

From ITEAD Wiki
Jump to: navigation, search
(Created page with "==规格== {| border="1" | PCB 尺寸||41mm X 68mm X 1.6mm |- | 电源电压||5V DC |- | 控制芯片||ILI9341 |- | 分辨率||320*240 |- | LED数目||4 LEDs |- |}")
m
 
(15 intermediate revisions by the same user not shown)
Line 25: Line 25:
 
|}
 
|}
  
==Electrical Characteristics==
+
==电气特性==
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
| align="center" style="background:#f0f0f0;"|'''Parameter'''
+
| align="center" style="background:#f0f0f0;"|'''参数'''
| align="center" style="background:#f0f0f0;"|'''Min.'''
+
| align="center" style="background:#f0f0f0;"|'''最小值'''
| align="center" style="background:#f0f0f0;"|'''Typical'''
+
| align="center" style="background:#f0f0f0;"|'''经典值'''
| align="center" style="background:#f0f0f0;"|'''Max.'''
+
| align="center" style="background:#f0f0f0;"|'''最大值'''
| align="center" style="background:#f0f0f0;"|'''Unit'''
+
| align="center" style="background:#f0f0f0;"|'''单位'''
 
|-
 
|-
| Power voltage||4.5||5||5.5||VDC
+
| 电源电压||4.5||5||5.5||VDC
 
|-
 
|-
| Input voltage VinH (Target Voltage = 3.3V)||3||3.3||3.6||V
+
| 最高输入电压 (目标电压 = 3.3V)||3||3.3||3.6||V
 
|-
 
|-
| Input voltage VinH (Target Voltage = 5V)||4.5||5||5.5||V
+
| 最高输入电压 (目标电压 = 5V)||4.5||5||5.5||V
 
|-
 
|-
| Input voltage VinL||-0.3||0||0.5||V
+
| 最低输入电压||-0.3||0||0.5||V
 
|-
 
|-
| Current Consumption||-||40||80||mA
+
| 消耗电流||-||40||80||mA
 
|}
 
|}
  
==Hardware==
+
==硬件图==
 
[[File:IM140714001pic1.jpg|500px]]
 
[[File:IM140714001pic1.jpg|500px]]
 
[[File:IM140714001pic2.jpg|500px]]
 
[[File:IM140714001pic2.jpg|500px]]
 
[[File:IM140714001pic3.jpg|500px]]
 
[[File:IM140714001pic3.jpg|500px]]
  
==Pin Map==
+
引脚图
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
| align="center" style="background:#f0f0f0;"|'''Pin'''
+
| align="center" style="background:#f0f0f0;"|'''引脚'''
| align="center" style="background:#f0f0f0;"|'''Type*'''
+
| align="center" style="background:#f0f0f0;"|'''类型*'''
| align="center" style="background:#f0f0f0;"|'''Description'''
+
| align="center" style="background:#f0f0f0;"|'''描述'''
 
|-
 
|-
 
| VCC||P||5V Power supply pin
 
| VCC||P||5V Power supply pin
Line 80: Line 80:
 
|-
 
|-
 
|}
 
|}
*Type: P--Power supply; G--Ground; I--Input; O--Output.
+
*Type: P--电源; G--; I--输入; O--输出.
*LEDA: When LEDA is set as high electronic level, the backlight turns on. When it's set as low electronic level, the backlight turns off.
+
*LEDA: 当LEDA设置为高电平,背光会亮;当LEDA设置为低电平,背光会熄灭。
  
==Instruction==
+
==使用说明==
<big>'''Display the image from micro SD card'''</big>
+
<big>'''显示micro SD中的图片'''</big>
*[[download]] the library from this link: https://github.com/adafruit/Adafruit_ILI9340 , then extract it into the directory '''\arduino\libraries'''
+
*下载Adafruit_ILI9340的库,地址为:https://github.com/adafruit/Adafruit_ILI9340 , 把库解压到'''\arduino\libraries'''目录下
  
*copy the image '''woof.bmp''' from the directory '''Adafruit_ILI9340\examples\spitftbitmap''' to your SD card, then plug the card into the SD card slot on [[ITDB02-2.2S]] LCD module
+
*'''Adafruit_ILI9340\examples\spitftbitmap'''目录下的'''woof.bmp'''图片拷贝到micro SD卡中。然后插到[[ITDB02-2.2S]]模块的micro SD卡座上。
  
*Use arduino IDE to open '''spitftbitmap.ino''' in the directory '''Adafruit_ILI9340\examples\spitftbitmap''' then upload it to UNO main board. Select 5V electronic level in the 2.2S LCD module, then use dupont lines to connect UNO and LCD module according to the table as below:
+
*用arduino IDE打开Adafruit_ILI9340中'''spitftbitmap.ino''',将其烧写进UNO主板。
 +
*[[ITDB02-2.2S]]模块电平选择5V,按照以下的接线方式使用杜邦线连接UNO和[[ITDB02-2.2S]]模块:
  
 
{| class="wikitable wikitable-indent"
 
{| class="wikitable wikitable-indent"
 
|-
 
|-
| align="center" style="background:#f0f0f0;"|'''2.2S pins'''
+
| align="center" style="background:#f0f0f0;"|'''2.2S 引脚'''
| align="center" style="background:#f0f0f0;"|'''UNO pins'''
+
| align="center" style="background:#f0f0f0;"|'''UNO 引脚'''
 
|-
 
|-
 
| VCC||5V
 
| VCC||5V
Line 118: Line 119:
 
|}
 
|}
  
*Power UNO main board, a picture of dog showed on the display.
+
*UNO插上电源,屏幕上会显示一只狗的图片。
  
<big>'''Control LEDA backlight via PWM pins'''</big>
+
<big>'''利用PWM引脚控制LEDA背光'''</big>
*Use arduino IDE to open the demo '''0.1Basics\Fade''', then upload it into UNO
+
*用arduino IDE打开'''0.1Basics\Fade'''的例子,烧写到UNO中去。
*Connect [[ITDB02-2.2S]] module to UNO according to the table as below:
+
*然后按照以下的接线方式连接UNO和[[ITDB02-2.2S]]模块:
 
{| class="wikitable wikitable-indent"
 
{| class="wikitable wikitable-indent"
 
|-
 
|-
| align="center" style="background:#f0f0f0;"|'''2.2S pins'''
+
| align="center" style="background:#f0f0f0;"|'''2.2S 引脚'''
| align="center" style="background:#f0f0f0;"|'''UNO pins'''
+
| align="center" style="background:#f0f0f0;"|'''UNO 引脚'''
 
|-
 
|-
 
| VCC||5V
 
| VCC||5V
Line 135: Line 136:
 
|-
 
|-
 
|}
 
|}
*Power UNO main board, you will see the backlight of display turn form dark to light circularly.
+
*主板插上电源后,可以看到屏幕的背光会由暗到亮,由亮到暗这样循环发光。
 
[[File:IM140714001in2.gif|500px]]
 
[[File:IM140714001in2.gif|500px]]
  
==Download==
+
==文件下载==
 
Schematic--[[:File:sch_ITDB02-2.2S.pdf]]
 
Schematic--[[:File:sch_ITDB02-2.2S.pdf]]
  
==Useful Link==
+
==有用链接==
  
 
https://github.com/adafruit/Adafruit_ILI9340
 
https://github.com/adafruit/Adafruit_ILI9340

Latest revision as of 03:41, 22 July 2014

概述

IM140714001 6.jpg

ITDB02-2.2S 是一个2.2inch SPI TFT LCD屏幕模块,分辨率为320X240,262K种颜色。LCD模块的控制芯片为ILI9341,它的接口是SPI的,需要6根线(SCK,MISO,MOSI,CS,D/C,RST)来控制。而且,这个模块还包含了micro SD卡接口。

购买 ITDB02-2.2S

特色

  • 兼容3.3/5V操作电平
  • 自带micro SD卡接口
  • 支持IO口或PMW来控制背光


规格

PCB 尺寸 41mm X 68mm X 1.6mm
电源电压 5V DC
控制芯片 ILI9341
分辨率 320*240
LED数目 4 LEDs

电气特性

参数 最小值 经典值 最大值 单位
电源电压 4.5 5 5.5 VDC
最高输入电压 (目标电压 = 3.3V) 3 3.3 3.6 V
最高输入电压 (目标电压 = 5V) 4.5 5 5.5 V
最低输入电压 -0.3 0 0.5 V
消耗电流 - 40 80 mA

硬件图

IM140714001pic1.jpg IM140714001pic2.jpg IM140714001pic3.jpg

引脚图

引脚 类型* 描述
VCC P 5V Power supply pin
GND G Ground
SCK I SPI SCK
MISO O SPI MISO
MOSI I SPI MOSI
CS I Chip Select for TFT
D/C I Command or parameter select
RST I RESET signal for TFT
LEDA* I Backlight control pin
SD_CS I Chip Select for SD
  • Type: P--电源; G--地; I--输入; O--输出.
  • LEDA: 当LEDA设置为高电平,背光会亮;当LEDA设置为低电平,背光会熄灭。

使用说明

显示micro SD中的图片

  • Adafruit_ILI9340\examples\spitftbitmap目录下的woof.bmp图片拷贝到micro SD卡中。然后插到ITDB02-2.2S模块的micro SD卡座上。
  • 用arduino IDE打开Adafruit_ILI9340中spitftbitmap.ino,将其烧写进UNO主板。
  • ITDB02-2.2S模块电平选择5V,按照以下的接线方式使用杜邦线连接UNO和ITDB02-2.2S模块:
2.2S 引脚 UNO 引脚
VCC 5V
GND GND
SCK D13
MISO D12
MOSI D11
CS D10
D/C D9
RST D8
LEDA 5V/3V3
SD_CS D4
  • UNO插上电源,屏幕上会显示一只狗的图片。

利用PWM引脚控制LEDA背光

  • 用arduino IDE打开0.1Basics\Fade的例子,烧写到UNO中去。
  • 然后按照以下的接线方式连接UNO和ITDB02-2.2S模块:
2.2S 引脚 UNO 引脚
VCC 5V
GND GND
LEDA D9
  • 主板插上电源后,可以看到屏幕的背光会由暗到亮,由亮到暗这样循环发光。

IM140714001in2.gif

文件下载

Schematic--File:sch_ITDB02-2.2S.pdf

有用链接

https://github.com/adafruit/Adafruit_ILI9340