Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

2.8inch Arduino Display: Difference between revisions

From LCD wiki
Liang (talk | contribs)
Lin (talk | contribs)
 
(32 intermediate revisions by 2 users not shown)
Line 7: Line 7:




== <font color="blue">Product Video</font> ==
{{#ev:youtube|8g5vvE-9KYE}}


== <font color="blue">Product video</font> ==
*[http://www.lcdwiki.com/Video_Presentation Related Video]


{{#ev:youtube|8g5vvE-9KYE&t}}
== <font color="blue">Product Picture</font> ==
 
== <font color="blue">Product picture</font> ==
[[File:MAR2808-011.jpg|300px]]
[[File:MAR2808-011.jpg|300px]]
[[File:MAR2808-009.jpg|300px]]
[[File:MAR2808-009.jpg|300px]]


==<font color="blue">Product description</font> ==
==<font color="blue">Product Description</font> ==


*Support development boards such as ArduinoUNO and Mega2560 for use without wiring
* Supports development boards such as Arduino UNO and Mega2560 for plug-in use without wiring
*320X240 HD resolution and support touch function
* 320X240 resolution, clear display, support for touch function
*Supports 16-bit RGB 65K color display and rich color display
* Support 16-bit RGB 65K color display, display rich colors
*using 8-bit parallel bus, refresh faster than serial SPI
* 8-bit parallel bus, faster than serial SPI refresh
*With SD card slot to facilitate the expansion of the experiment
* On-board 5V/3.3V level shifting IC, compatible with 5V/3.3V operating voltage
*Provide Arduino library, provide a wealth of sample programs
* Easy to expand the experiment with SD card slot
*Military-grade process standards, long-term work stably
* Provides an Arduino library with a rich sample program
*Provides underlying driver technology support
* Military-grade process standards, long-term stable work
*Data Acquisition: See [[#Driver download|'''Driver download''']]
* Provide underlying driver technical support
 
==<font color="blue">Product parameters</font> ==


==<font color="blue">Product Parameters</font> ==
{| class="wikitable" border="1" style="width: 500px; background-color: white;"
{| class="wikitable" border="1" style="width: 500px; background-color: white;"
|name
| align="center" |Name
|parameter
| align="center" |Parameter
|-
| align="center" |Display Color
| align="center" |RGB 65K color
|-
| align="center" |SKU
| align="center" |MAR2808
|-
|-
|SKU
| align="center" |Screen Size 
|MAR2808
| align="center" |2.8(inch)
|-
|-
|size
| align="center" |Type
|2.8(inch)
| align="center" |TFT
|-
|-
|type
| align="center" |Driver IC
|TFT
| align="center" |ILI9341
|-
|-
|driver chip
| align="center" |Resolution
|ILI9341
| align="center" |320*240 (Pixel)
|-
|-
|resolution
| align="center" |Module Interface
|320*240 (Pixel)
| align="center" |8-bit parallel interface
|-
|-
|module interface
| align="center" |Active Area 
|8-bit parallel interface
| align="center" |43.2*57.6(mm)
|-
|-
|effective display area
| align="center" |Module PCB Size
|57.6x43.2(mm)
| align="center" |52.70*78.22(mm)
|-
|-
|module PCB size
| align="center" |Operating Temperature
|78.22x52.7(mm)
| align="center" | -20℃~60℃
|-
|-
|operating temperature
| align="center" |Storage Temperature
| -20℃~70℃
| align="center" | -30℃~70℃
|-
|-
|operating Voltage
| align="center" |Operating Voltage
|5V
| align="center" |5V/3.3V
|-
|-
|power consumption
| align="center" |Power Consumption
|about 90mw
| align="center" |TBD
|-
|-
|product weight
| align="center" |Product Weight(Package containing)
|25(g)
| align="center" |44(g)
|}
|}


==<font color="blue">Interface definition</font> ==
==<font color="blue">Interface Definition</font> ==
[[file:MAR2808-008.jpg|left|578x578px]]
[[file:MAR2808-037.jpg|left|500x500px]]
{| class="wikitable" border="1" style="width: 500px; background-color: white;"
{| class="wikitable" border="1" style="width: 550px; background-color: white;"
|-
|-
| align="center" |number
| align="center" |Number
| align="center" |label
| align="center" |Pin Label
| align="center" |pin description
| align="center" |Pin Description
|-
|-
| align="center" |1
| align="center" |1
| align="center" |LCD_RST
| align="center" |LCD_RST
|LCD bus reset signal
|LCD bus reset signal, low level reset
|-
|-
| align="center" |2
| align="center" |2
| align="center" |LCD_CS
| align="center" |LCD_CS
|LCD bus chip select signal
|LCD bus chip select signal, low level enable
|-
|-
| align="center" |3
| align="center" |3
| align="center" |LCD_RS
| align="center" |LCD_RS
|LCD bus command/data select signal
|LCD bus command / data selection signal,
low level: command, high level: data
|-
|-
| align="center" |4
| align="center" |4
Line 101: Line 107:
| align="center" |6
| align="center" |6
| align="center" |GND
| align="center" |GND
|power ground
|Power ground
|-
|-
| align="center" |7
| align="center" |7
Line 109: Line 115:
| align="center" |8
| align="center" |8
| align="center" |3V3  
| align="center" |3V3  
|NC this pin can not be connected
|3.3V power input, this pin can be disconnected
|-
|-
| align="center" |9
| align="center" |9
Line 145: Line 151:
| align="center" |17
| align="center" |17
| align="center" |SD_SS  
| align="center" |SD_SS  
|SD card SPI bus chip select signal
|SD card SPI bus chip select signal, low level enable
|-
|-
| align="center" |18
| align="center" |18
Line 160: Line 166:
|}
|}


==<font color="blue">Product size</font> ==
==<font color="blue">Connect to Arduino</font> ==
Product size drawing:


[[file:MAR2808-001.PNG|750x750px]]
{| class="FCK__ShowTableBorders" align="left"
 
==<font color="blue">Hardware description</font> ==
Hardware schematic:[http://www.lcdwiki.com/res/MAR2808/Arduino_2.8inch%E6%A8%A1%E5%9D%97%E5%8E%9F%E7%90%86%E5%9B%BE.pdf '''Arduino 2.8 inch display module schematic.pdf''']
 
==<font color="blue">Using Instructions</font> ==
'''<big>Arduino platform using instructions</big>'''
 
1.Wiring instructions
 
{| class="wikitable" border="1" style="width: 800px; background-color: white;"
! colspan="2" |connect with UNO development board
! colspan="2" |Connect with Mega2560 Development Board
|-
! align="center" |pins on the module
! align="center" |UNO microcontroller pin
! align="center" |pins on the module
! align="center" |Mega2560 microcontroller pin
|-
| align="center" |LCD_RST
| align="center" |A4
| align="center" |LCD_RST
| align="center" |5V
|-
| align="center" |LCD_CS
| align="center" |A3
| align="center" |LCD_CS
| align="center" |GND
|-
| align="center" |LCD_RS
| align="center" |A2
| align="center" |LCD_RS
| align="center" |21
|-
| align="center" |LCD_WR
| align="center" |A1
| align="center" |LCD_WR
| align="center" |20
|-
| align="center" |LCD_RD
| align="center" |A0
| align="center" |LCD_RD
| align="center" |A0
|-
| align="center" |GND
| align="center" |GND
| align="center" |GND
| align="center" |GND
|-
| align="center" |5V
| align="center" |5V
| align="center" |5V
| align="center" |5V
|-
| align="center" |LCD_D0
| align="center" |8
| align="center" |LCD_D0
| align="center" |8
|-
| align="center" |LCD_D1
| align="center" |9
| align="center" |LCD_D1
| align="center" |9
|-
| align="center" |LCD_D2
| align="center" |2
| align="center" |LCD_D2
| align="center" |2
|-
| align="center" |LCD_D3
| align="center" |3
| align="center" |LCD_D3
| align="center" |3
|-
| align="center" |LCD_D4
| align="center" |4
| align="center" |LCD_D4
| align="center" |4
|-
| align="center" |LCD_D5
| align="center" |5
| align="center" |LCD_D5
| align="center" |5
|-
|-
| align="center" |LCD_D6
![[file:MAR2808-038.jpg|无框|400x400px]]
| align="center" |6
![[file:MAR2808-039.jpg|无框|400x400px]]
| align="center" |LCD_D6
| align="center" |6
|-
|-
| align="center" |LCD_D7
| align="center" | '''Arduino UNO direct insertion picture'''
| align="center" |7
| align="center" | '''Arduino Mega2560 direct insertion picture'''
| align="center" |LCD_D7
| align="center" |7
|-
| align="center" |SD_SS
| align="center" |10
| align="center" |SD_SS
| align="center" |10
|-
| align="center" |SD_DI
| align="center" |11
| align="center" |SD_DI
| align="center" |11
|-
| align="center" |SD_DO
| align="center" |12
| align="center" |SD_DO
| align="center" |12
|-
| align="center" |SD_SCK
| align="center" |13
| align="center" |SD_SCK
| align="center" |13
|}
|}
2.operating instructions
<br clear="all">
 
Install the Arduino IDE software on your computer before doing the following
 
a.Connect the 2.8-inch display module to the Arduino development board according to the wiring instructions and power it on (note the development board model)
 
b.Download the 2.8 inch display module package from [[#Driver download|'''Driver download''']] column
 
c.Extract the data package,open the install library folder,you can see the LCDWIKI_GUI,LCDWIKI_KBV and touch screen these three libraries,as shown below:
 
[[file:MAR2808-012.jpg|800x800px]]
 
d.Copy the three libraries:LCDWIKI_GUI,LCDWIKI_KBV,and touch screen to the directory where the Arduino project files are located,
 
The default directory for Arduino project files is "C:\Users\Administrator\Documents\Arduino",You can define it yourself as follows:
 
Open Arduino IDE software,click File->Preferences to define the directory where Arduino project files are located,as shown in the following figure:
 
[[file:MAR2808-017.jpg|800x800px]]
 
e.Open the Example folder in the package, you can see there are 11 test examples, as shown below:
 
[[file:MAR2808-013.jpg|800x800px]]
 
f.Open any test example,eg open "Example_02_clear_screen"
 
g.After opening the "Example_02_clear_screen" test program,click the Tools button to select the board model and port number,as shown in the following figure:
 
[[file:MAR2808-014.jpg|800x800px]]
 
If the development board model selection Mega, you also need to select the processor model, for the 2.8-inch display module,
 
we only select the ATmega2560 processor, as shown below:
 
[[file:MAR2808-015.jpg|800x800px]]
 
h.Click the upload button to compile and download. When "Done Uploading" is displayed,the program has been successfully downloaded to the development board,
 
as shown in the following figure:
 
[[file:MAR2808-016.jpg|800x800px]]
 
i.If the 2.8-inch display module is continuously displayed in black, white, red, green, and blue, the program runs successfully.
 
'''<big>Matters needing attention</big>'''
 
a.The display module uses 8-bit parallel port to transfer data,so the LCDWIKI library also needs to be set to 8-bit mode (since the LCDWIKI library supports
 
both 8-bit and 16-bit modes),the modification method is as follows:
 
Open the file '''LCDWKI_KBV\lcd_mode.h''' and set the '''CONFIG_USE_8BIT_BUS''' macro to 1, as shown below:
 
{{code|1=
//if using 8bit mode,set the below macro definition to 1
//if using 16bit mode,set the below macro definition to 0
#define CONFIG_USE_8BIT_BUS 1
}}'''<big>STM32 platform using instructions</big>'''
 
1.Wiring instructions
{| class="wikitable" border="1" style="width: 500px; background-color: white;"
! align="center" |pins on the module
! align="center" |STM32 corresponding wiring pin
|-
| align="center" |LCD_RST
| align="center" |PC5
|-
| align="center" |LCD_CS
| align="center" |PC9
|-
| align="center" |LCD_RS
| align="center" |PC8
|-
| align="center" |LCD_WR
| align="center" |PC7
|-
| align="center" |LCD_RD
| align="center" |PC6
|-
| align="center" |GND
| align="center" |GND
|-
| align="center" |5V
| align="center" |5V
|-
| align="center" |LCD_D0
| align="center" |PB8
|-
| align="center" |LCD_D1
| align="center" |PB9
|-
| align="center" |LCD_D2
| align="center" |PB10
|-
| align="center" |LCD_D3
| align="center" |PB11
|-
| align="center" |LCD_D4
| align="center" |PB12
|-
| align="center" |LCD_D5
| align="center" |PB13
|-
| align="center" |LCD_D6
| align="center" |PB14
|-
| align="center" |LCD_D7
| align="center" |PB15
|-
| align="center" |SD_SS
| align="center" |NC(No need to connect)
|-
| align="center" |SD_DI
| align="center" |NC(No need to connect)
|-
| align="center" |SD_DO
| align="center" |NC(No need to connect)
|-
| align="center" |SD_SCK
| align="center" |NC(No need to connect)
|}
2.operating instructions
 
Before you do the following, first install the keil software on your computer
 
a.Connect the 2.8-inch display module to the STM32 development board and power it up according to the wiring instructions
 
b.Download the 2.8 inch display module package from [[#Driver download|'''Driver download''']] column
 
c.Unpack the package, open the "'''3-STM32测试程序\STM32_Demo_STM32F103RCT6_8BIT\STM32综合测试程序ILI9341_IO模拟\USER'''" folder,
 
find the "'''TOUCH.uvproj'''" file, double-click to open, as shown below:
 
[[file:MAR2808-029.jpg|800x800px]]
 
d.After opening the project, first make JTAG settings, the setup steps are as follows (if the project has been set, you do not need to set it):
 
Connect JTAG to the computer and development board, click the magic wand icon -> Debug-> drop-down menu to select J-LINK/J-TRACE Cortex, as shown below:
 
[[file:MAR2808-034.jpg|800x800px]]
 
Next click Settings, set ort to SW, Max to 2MHz, as shown below:
 
[[file:MAR2808-025.jpg|800x800px]]
 
e.Set flash, the setup steps are as follows (if the project has been set, you do not need to set it):
 
First select the MCU model, click the magic wand icon -> Device -> select STM32F103RC MCU model, as shown below:
 
[[file:MAR2808-036.jpg|800x800px]]


Then select the flash model, click Utilities->Settings->Add->Select STM32F10x High-density Flash->Add, as shown below:
==<font color="blue">How to use on Arduino</font> ==


[[file:MAR2808-035.jpg|800x800px]]
*'''Step 1: Download the test program'''


f.Compile the project, click the compile button to compile the project. If the "FromELF: creating hex file..." prompt appears, the compilation is successful,
# Download the Arduino test program from the [[#Program Download|'''Program Download''']] column
# For a description of the relevant test procedures, please refer to the test program documentation in the package


as shown in the following figure:
*'''Step 2: Connect the Arduino development board'''


[[file:MAR2808-030.jpg|800x800px]]
# Plug the module directly into the Arduino development board ([[#Connect to Arduino| <font color="red"> '''Do not plug in?'''</font>]])
# After the module is plugged in, power on the Arduino board


g.Download the program, click the download button, download the hex file to the development board, if the “Programming Done. Verify OK.” prompt appears,
*'''Step 3: Copy the dependent library'''


the download is successful, as shown below:
# Make sure the Arduino IDE is installed on your computer (if it is not installed: [https://www.arduino.cc/en/Main/Software '''Arduino IDE download URL'''])
# After installing the Arduino IDE, you need to copy the dependent library to the Arduino project directory as follows:


[[file:MAR2808-031.jpg|800x800px]]
::(1) Decompress the downloaded test package
::(2) Copy the dependent libraries in the <font color="red"> '''Install libraries'''</font> directory in the package (shown below) to the <font color="red">'''libraries'''</font> folder
:::of the Arduino project directory ([http://www.lcdwiki.com/res/PublicFile/Arduino_IDE_Use_Illustration_EN.pdf <font color="red"> '''Don't know the Arduino project directory?'''</font>])
::[[File:MAR2406-005.jpg|500px]]


h.If the module displays characters and graphics normally, the program runs successfully.
*'''Step 4: Compile and download the program to the development board'''


'''<big>Matters needing attention</big>'''
# Open the sample in the Example directory of the package to test, compile and download([http://www.lcdwiki.com/res/PublicFile/Arduino_IDE_Use_Illustration_EN.pdf <font color="red"> '''Don't know how to compile and download?'''</font>])


a.When downloading the program, if the following error occurs, the JTAG setting is incorrect. Please follow the instructions in step d to set it:
*'''Step 5: Observe the running of the program'''


[[file:MAR2808-032.jpg|400x400px]] [[file:MAR2808-033.jpg|400x400px]]
# After the program is downloaded, run it directly and observe the running status. If it can be displayed normally, the program runs


b.If the following error occurs, the flash setting is incorrect. Please follow the instructions in step e:
::successfully, as shown in the following figure (take the display_graphics program as an example):


[[file:MAR2808-023.jpg|400x400px]]
::[[File:MAR2808-040.jpg|150px]] [[File:MAR2808-041.jpg|150px]]


c.If the module does not display any after the program is successfully downloaded, you need to press the reset button to reset
==<font color="blue">Program Download</font> ==


Follow the steps below to run the program directly after downloading successfully (do not need to press the reset button)
* [http://www.lcdwiki.com/res/Program/Arduino/2.8inch/UNO_8BIT_ILI9341_MAR2808_V1.2/2.8inch_Arduino_8BIT_Module_ILI9341_MAR2808_V1.2.zip '''2.8 inch Arduino UNO module package''']


Click the magic wand icon -> Utilities->Settings-> check Reset and run, as shown below:
==<font color="blue">Product Documentation</font> ==


[[file:MAR2808-028.jpg|800x800px]]
* [http://www.lcdwiki.com/res/MAR2808/2.8inch_Arduino_8BIT_Module_MAR2808_User_Manual_EN.pdf '''2.8 inch Arduino UNO Module User Manual''']
* [http://www.lcdwiki.com/images/6/66/MAR2808-001.PNG '''2.8 inch Arduino UNO Module Size Picture''']
* [http://www.lcdwiki.com/res/MAR2808/Altium_2.8_37pin_QD-TFT2802_Package_library.zip '''2.8 inch QD-TFT2802 TFT LCD Schematic and PCB Package Library''']
* [http://www.lcdwiki.com/res/MAR2808/QD-TFT2802_V1.1.pdf '''2.8 inch TFT Specifications''']
* [http://www.lcdwiki.com/res/MAR2808/ILI9341_Datasheet.pdf '''Driver IC ILI9341 Data sheet''']


==<font color="blue">Driver download</font> ==
==<font color="blue">Reference Materials</font> ==
baiduyun download:[https://pan.baidu.com/s/1iZegp6Oyhv57Zd1RTf8uyw '''2.8inch_Arduino_8bit_ILI9341_V1.0.zip''']


Local download:[http://www.lcdwiki.com/res/MAR2808/2.8inch_Arduino_8bit_ILI9341_MAR2808_V1.0.zip '''2.8inch_Arduino_8bit_ILI9341_V1.0.zip''']
* [http://www.lcdwiki.com/res/PublicFile/Arduino_IDE_Use_Illustration_EN.pdf '''Arduino IDE software use illustration''']
* [http://www.lcdwiki.com/res/PublicFile/C51_Keil%26stc-isp_Use_Illustration_EN.pdf '''C51 Keil and stc-isp software use illustration''']
* [http://www.lcdwiki.com/res/PublicFile/STM32_Keil_Use_Illustration_EN.pdf '''STM32 keil software use illustration''']
* [http://www.lcdwiki.com/res/PublicFile/PCtoLCD2002_Use_Illustration_EN.pdf '''PCtoLCD2002 software use illustration''']
* [http://www.lcdwiki.com/res/PublicFile/Image2Lcd_Use_Illustration_EN.pdf '''Image2Lcd software use illustration''']
* [http://www.lcdwiki.com/Chinese_and_English_display_modulo_settings '''Chinese and English display modulo settings''']


==<font color="blue">Common software description </font> ==
==<font color="blue">Common Software</font> ==
Character modulo software PCtoLCD2002 download:[http://www.lcdwiki.com/res/software/PCtoLCD2002.zip '''PCtoLCD2002.zip''']


Image modulo software Image2Lcd Download:[http://www.lcdwiki.com/res/software/Image2Lcd.zip '''Image2Lcd.zip''']
* [http://www.lcdwiki.com/res/software/PCtoLCD2002.zip '''PCtoLCD2002''']
* [http://www.lcdwiki.com/res/software/Image2Lcd.zip '''Image2Lcd''']


[[#top|BACK TO TOP]]
[[#top|BACK TO TOP]]

Latest revision as of 14:54, 2 November 2019

语言选择

Languages

➤中文
➤EN



Product Video

Product Picture

Product Description

  • Supports development boards such as Arduino UNO and Mega2560 for plug-in use without wiring
  • 320X240 resolution, clear display, support for touch function
  • Support 16-bit RGB 65K color display, display rich colors
  • 8-bit parallel bus, faster than serial SPI refresh
  • On-board 5V/3.3V level shifting IC, compatible with 5V/3.3V operating voltage
  • Easy to expand the experiment with SD card slot
  • Provides an Arduino library with a rich sample program
  • Military-grade process standards, long-term stable work
  • Provide underlying driver technical support

Product Parameters

Name Parameter
Display Color RGB 65K color
SKU MAR2808
Screen Size  2.8(inch)
Type TFT
Driver IC ILI9341
Resolution 320*240 (Pixel)
Module Interface 8-bit parallel interface
Active Area  43.2*57.6(mm)
Module PCB Size 52.70*78.22(mm)
Operating Temperature -20℃~60℃
Storage Temperature -30℃~70℃
Operating Voltage 5V/3.3V
Power Consumption TBD
Product Weight(Package containing) 44(g)

Interface Definition

Number Pin Label Pin Description
1 LCD_RST LCD bus reset signal, low level reset
2 LCD_CS LCD bus chip select signal, low level enable
3 LCD_RS LCD bus command / data selection signal,

low level: command, high level: data

4 LCD_WR LCD bus write signal
5 LCD_RD LCD bus read signal
6 GND Power ground
7 5V 5V power input
8 3V3 3.3V power input, this pin can be disconnected
9 LCD_D0 LCD 8-bit data Bit0
10 LCD_D1 LCD 8-bit data Bit1
11 LCD_D2 LCD 8-bit data Bit2
12 LCD_D3 LCD 8-bit data Bit3
13 LCD_D4 LCD 8-bit data Bit4
14 LCD_D5 LCD 8-bit data Bit5
15 LCD_D6 LCD 8-bit data Bit6
16 LCD_D7 LCD 8-bit data Bit7
17 SD_SS SD card SPI bus chip select signal, low level enable
18 SD_DI SD card SPI bus MOSI signal
19 SD_DO SD card SPI bus MISO signal
20 SD_SCK SD card SPI bus clock signal

Connect to Arduino

无框 无框
Arduino UNO direct insertion picture Arduino Mega2560 direct insertion picture


How to use on Arduino

  • Step 1: Download the test program
  1. Download the Arduino test program from the Program Download column
  2. For a description of the relevant test procedures, please refer to the test program documentation in the package
  • Step 2: Connect the Arduino development board
  1. Plug the module directly into the Arduino development board ( Do not plug in?)
  2. After the module is plugged in, power on the Arduino board
  • Step 3: Copy the dependent library
  1. Make sure the Arduino IDE is installed on your computer (if it is not installed: Arduino IDE download URL)
  2. After installing the Arduino IDE, you need to copy the dependent library to the Arduino project directory as follows:
(1) Decompress the downloaded test package
(2) Copy the dependent libraries in the Install libraries directory in the package (shown below) to the libraries folder
of the Arduino project directory ( Don't know the Arduino project directory?
  • Step 4: Compile and download the program to the development board
  1. Open the sample in the Example directory of the package to test, compile and download( Don't know how to compile and download?
  • Step 5: Observe the running of the program
  1. After the program is downloaded, run it directly and observe the running status. If it can be displayed normally, the program runs
successfully, as shown in the following figure (take the display_graphics program as an example):

Program Download

Product Documentation

Reference Materials

Common Software

BACK TO TOP