You are on page 1of 5

3.

2inchArduinoLCDShieldUserGuide
Rev 1.1, May 2012

3.2inchArduinoLCDShieldUserGuide

Table of Contents
1
2
3
4
5
6

Introduction ............................................................................................................................. 3
Features .................................................................................................................................... 3
Specifications ........................................................................................................................... 3
Pin Definition ........................................................................................................................... 4
Fimware library ...................................................................................................................... 4
FAQs ......................................................................................................................................... 4

2
Contactus:electronics.lee@gmail.com

3.2inchArduinoLCDShieldUserGuide

1 Introduction
TheideaofdeveloptheLCDshieldforArudinoisthattheLCDissowidelyusedinmobile
phones, handsets, and portable devices, but there is no such thing for Arduino. Although
therearemanydifferentLCDmoduleouttherefrom1.8~7with8bitor16bitdatabus,
they are not easy to use and you have to make your own adapter board or flying wire
betweenArduinoboardsandLCDmodule.Wechoosethemostpopular3.2inchLCDscreen
for our LCD shield because it has big screen and touch panel which eliminate additional
keypad and can be operated on one hand. Another good news is that Henning Karlsen
developedaopensourceLCDgraphiclibraryITDBforArduino,weporthislibrarytoourLCD
shieldwithlittlemodificationswhichisreallycool.HavefunwithourLCDshieldwithyour
infiniteimagination.

2 Features

3.2inchbigLCDscreen
Resistivetouchpanel
TFcardreadersupport
WellmatewithArduinoUNOandMega2560board
ITBDopensourcegraphiclibrarysupport

3 Specifications

3.2inchTFTLCDscreen
Resolution320x240,RGB565format
8bitLCDdatabus
TFcardreadsupport
LCDcontrollerSSD1289
TouchpanelcontrollerADS7843

3
Contactus:electronics.lee@gmail.com

3.2inchArduinoLCDShieldUserGuide

4 PinDefinition
LCDShield
Pins

Arduino
UNO
Pins

ArduinoMega2560
Pins

Description

0~7

0~7
(PE0,PE1,PE4,PE5,PG5,PE3,PH3,PH4)
9
10
11
12
13
A0
A1

DataBus[0:7]

9
10
11
12
13
A0
A1

0~7
(PD0~PD7)
9
10
11
12
13
A0
A1

A2
A3
A4
A5

A2
A3
A4
A5

A2
A3
A4
A5

TF_CS
Touch_Select(TCS)
MOSI(DIN)
MISO(DOUT)
Touch_CLK(TCLK)
Chipselect(CS)
Data/Command_Select
D/C(RS)
Write(WR)
Reset(RST)
Touch_IRQ(IRQ)
Latchsignal(ALE)

Note: Touch screen controller and TF card reader share the same hardware SPI port
(Pin11,Pin12,Pin13), they are activated by different chip select signals(Touch screen use Pin10,
whileTFreaderusePin9).

5 Fimwarelibrary
We use ITDB LCD graphic library written Henning Karlsen from
http://www.henningkarlsen.com/electronics with little modification. Please download the
modifiedfirmwarelibrarypackagefrom
http://www.bestelecs.com/download/arduinolcd/32lcd.zip.
After downloading, decompress the zip file and copy the ITDB02_Graph16 and
ITDB02_Touchfoldersintoarduino1.0\librariesdirectory.Openthefilewithinoextension
on each example folder, and upload thecode into your Arduino boardthen havefun. The
ITDB02_Graph16 demonstrate various graphic functions, and the ITDB02_Touch
demonstratethetouchpanelfunctions.
The TF/SD card reader example is located on Arduino software libraries/SD/examples
directory.

6 FAQs
Q1:Whatis2wayDIPswitchonthebackoftheshield?
A1:The0~7pinsisusedasLCDdatabus,whereasthepin0andpin1isUARTportwhichis
usedbythebootloaderwhenuploadingthecode.TheDIPswitcherswitchON/OFFthepin0
andpin1fromtheLCDdatabus,ifitconflictswhenuploadingthecodepleaseswitchitOFF.
Q2:WhytheLCDdatabusis8bitwhiletheLCDcontrolleris16bitdatabus.
A2:TherearelimitedIOresourcesinArduino2009/Unoboard,ifIuse16bitdatabus,and
4
Contactus:electronics.lee@gmail.com

3.2inchArduinoLCDShieldUserGuide

sumupwithtouchscreencontrollerandTFcardreaderIOs,therewillbenotanymorepins
for other shield. So use a latch to latch higher 8bit and write with 8bit lower byte
simultaneously.

5
Contactus:electronics.lee@gmail.com

You might also like