2.8inch Touch Screen User Manual Arduino-En V1.00.2017.03.22
2.8inch Touch Screen User Manual Arduino-En V1.00.2017.03.22
8 inches Touch
Screen User Manual
---Arduino version
Preface
2.8 inches Touch Screen User Manual(Arduino version) is for Arduino UNO
board and Mega 2560 board or boards compatible with UNO. Other core boards
that provide 3-5V voltage and should be connected with wires when using are not
1.1. Features........................................................................................................................... 1
2. Preparation ................................................................................................................................ 4
3. Instruction.................................................................................................................................. 7
1.1. Features
(1)Compatible with Arduino UNO and Mega2560, and can be connected directly
(2) Compatible with all kinds of 5V or 3V MCU with 5V-3.3V change-over circuit.
(4)Adopting 8-bit parallel bus, quicker and smoother refresh than SPI.
(6)With Micro-SD card circuit, easy to expand the scope of the test.
1
1.2.2. Electronic Specifications
2
1.3.1. Size Specifications
3
1.3.3. CON1 interface
Figure 3. CON1interface
Note: Only SD_DO, SD_DI, SD_SS, SD_SCK and Arduino are on, and the rest are independent of
Arduino's IO.
2. Preparation
(1)A PC or a laptop
4
Figure 6. Mini USB Cable (Type B)
5
2.2. Software Preparation
Download the Arduino IDE from the official site of Arduino.( www.arduino.cc).
Install the IDE with default setting, you can select the installing path during the
6
3. Instruction
Figure 10
Connect 2.8 inches touch screen with Arduino UNO board(see Figure 11) , then
connect the UNO board with the PC or laptop with USB cable.
图 11
3.2.1. Example 1
(1)Open ..\2.8inch_Arduino_ILI9341_V3.2\Arduino
7
UNO\_9341uno\_9341uno.ino;
Figure 12
Figure 13
(4)Click the “upload” button , and wait for the completion of the
8
Figure 14
Example 1 is the most basic example program which can run without
relying on any library. The result of example 1 is that the whole screen is
filled with red, green, blue, white and black in turn and then filled
randomly. If this example works fine, the hardware of 2.8 inches touch
screen is fine.
3.2.2. Example 2
(1)Open ..\2.8inch_Arduino_ILI9341_V3.2\Arduino
Demo_UNO&Mega2560\Example02-DisplayString\DisplayString\DisplayString.ino ;
9
Figure 15
This example display the simplest alphabetic string and numbers, realizing
Vector font scaling which allows you to display any English letter of any font size.
3.2.3. Example 3
(1)Open ..\2.8inch_Arduino_ILI9341_V3.2\Arduino
Demo_UNO&Mega2560\Example03-graphicstest\graphicstest\graphicstest.ino
Figure 16
10
This example demonstrate various GUI Figure Function and realize screen
rotation.
3.2.4. Example 4
(1)Open ..\2.8inch_Arduino_ILI9341_V3.2\Arduino
Demo_UNO&Mega2560\Example04-Touch\tftpaint\tftpaint.ino;
Figure 17
3.2.5. Example 5
(1)Open ..\2.8inch_Arduino_ILI9341_V3.2\Arduino
Demo_UNO&Mega2560\Example05-ShowBMP\ShowBMP\ShowBMP.ino;
(2)Take out the SD card and put it in to a card reader, connect to the PC or laptop
with a USB cable.(See Figure 18). Open “Computer”, right click to format the
11
from ..\2.8inch_Arduino_ILI9341_V3.2\Arduino
card.
Figure 18
Figure 19
This example shows a program of digital photo frame, realizing the function of
12
3.2.6. Example 6
(1)Open ..\2.8inch_Arduino_ILI9341_V3.2\Arduino
Demo_UNO&Mega2560\Example06-Phonecal\phonecal\phonecal.ino;
(2)-(4)Same as 3.2.1, In Figure 20 is the result in the 2.8 inches touch screen. In
Figure 20 Figure 21
This example realize the function of a number pad, showing the character
3.2.7. Example 7
13
3.3. Working with MEGA2560
Connect 2.8 inches touch screen with Arduino MEGA2560 board(see Figure 22) ,
then connect the MEGA2560 board with the PC or laptop with USB cable.
Figure 22
Figure 23
14
3.3.1. Example 1
(1)Open ..\2.8inch_Arduino_ILI9341_V3.2\Arduino
Mega2560\_9341Mega2560\_9341Mega2560.ino;
Figure 24)
Figure 24
(5)Click “Tools”--“Processor”--“ATMega2560(Mega2560)
” (See Figure 25)
Figure 25
15
Figure 26)
Figure 26
( 5 ) Click the “upload” button , and wait for the completion of the
Figure 27
This is the most basic example program which can run without
relying on any library. The result of example 1 is that the whole screen is
filled with red, green, blue, white and black in turn and then filled
randomly. If this example works fine, the hardware of 2.8 inches touch
screen is fine.
16
3.3.2. Other Example
17