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
Lin (talk | contribs)
Lin (talk | contribs)
 
(53 intermediate revisions by 2 users not shown)
Line 6: Line 6:
}}
}}


== <font color="blue">Product picture</font> ==
 
== <font color="blue">Product Video</font> ==
{{#ev:youtube|8g5vvE-9KYE}}
 
*[http://www.lcdwiki.com/Video_Presentation Related Video]
 
== <font color="blue">Product Picture</font> ==
[[File:MAR2808-011.jpg|300px]]
[[File:MAR2808-009.jpg|300px]]
[[File:MAR2808-009.jpg|300px]]
[[File:MAR2808-010.jpg|300px]]
[[File:MAR2808-011.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
*320X240 HD resolution and support touch function
*Supports 16-bit RGB 65K color display and rich color display
*using 8-bit parallel bus, refresh faster than serial SPI
*With SD card slot to facilitate the expansion of the experiment
*Provide Arduino library, provide a wealth of sample programs
*Military-grade process standards, long-term work stably
*Provides underlying driver technology support
*Data Acquisition: See [[#Driver download|'''Driver download''']]


==<font color="blue">Product parameters</font> ==
* 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


==<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|800x800px]]
[[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 95: 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 103: 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 139: 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 154: Line 166:
|}
|}


==<font color="blue">Product size</font> ==
==<font color="blue">Connect to Arduino</font> ==
Product size drawing:
 
[[file:MAR2808-001.PNG|750x750px]]
 
==<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;"
{| class="FCK__ShowTableBorders" align="left"
! 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
![[file:MAR2808-038.jpg|无框|400x400px]]
| align="center" |8
![[file:MAR2808-039.jpg|无框|400x400px]]
| align="center" |LCD_D0
| align="center" |8
|-
|-
| align="center" |LCD_D1
| align="center" | '''Arduino UNO direct insertion picture'''
| align="center" |9
| align="center" | '''Arduino Mega2560 direct insertion picture'''
| 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
| align="center" |6
| align="center" |LCD_D6
| align="center" |6
|-
| align="center" |LCD_D7
| align="center" |7
| 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">
 
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:
==<font color="blue">How to use on Arduino</font> ==


Open Arduino IDE software,click File->Preferences to define the directory where Arduino project files are located,as shown in the following figure:
*'''Step 1: Download the test program'''


[[file:MAR2808-017.jpg|800x800px]]
# 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


e.Open the Example folder in the package, you can see there are 11 test examples, as shown below:
*'''Step 2: Connect the Arduino development board'''


[[file:MAR2808-013.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


f.Open any test example,eg open "Example_02_clear_screen"
*'''Step 3: Copy the dependent library'''


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:
# 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-014.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]]


If the development board model selection Mega, you also need to select the processor model, for the 2.8-inch display module,
*'''Step 4: Compile and download the program to the development board'''


we only select the ATmega2560 processor, as shown below:
# 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>])


[[file:MAR2808-015.jpg|800x800px]]
*'''Step 5: Observe the running of the program'''


h.Click the upload button to compile and download. When "Done Uploading" is displayed,the program has been successfully downloaded to the development board,
# After the program is downloaded, run it directly and observe the running status. If it can be displayed normally, the program runs


as shown in the following figure:
::successfully, as shown in the following figure (take the display_graphics program as an example):


[[file:MAR2808-016.jpg|800x800px]]
::[[File:MAR2808-040.jpg|150px]] [[File:MAR2808-041.jpg|150px]]


i.If the 2.8-inch display module is continuously displayed in black, white, red, green, and blue, the program runs successfully.
==<font color="blue">Program Download</font> ==


'''<big>precautions</big>'''
* [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''']


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
==<font color="blue">Product Documentation</font> ==


both 8-bit and 16-bit modes),the modification method is as follows:
* [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''']


Open the file '''LCDWKI_KBV\lcd_mode.h''' and set the '''CONFIG_USE_8BIT_BUS''' macro to 1, as shown below:
==<font color="blue">Reference Materials</font> ==


{{code|1=
* [http://www.lcdwiki.com/res/PublicFile/Arduino_IDE_Use_Illustration_EN.pdf '''Arduino IDE software use illustration''']
//if using 8bit mode,set the below macro definition to 1
* [http://www.lcdwiki.com/res/PublicFile/C51_Keil%26stc-isp_Use_Illustration_EN.pdf '''C51 Keil and stc-isp software use illustration''']
//if using 16bit mode,set the below macro definition to 0
* [http://www.lcdwiki.com/res/PublicFile/STM32_Keil_Use_Illustration_EN.pdf '''STM32 keil software use illustration''']
#define CONFIG_USE_8BIT_BUS 1
* [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">Driver download</font> ==
==<font color="blue">Common Software</font> ==
Baidu cloud disk download:


local download:
* [http://www.lcdwiki.com/res/software/PCtoLCD2002.zip '''PCtoLCD2002''']
* [http://www.lcdwiki.com/res/software/Image2Lcd.zip '''Image2Lcd''']


==<font color="blue">Common software description </font> ==
[[#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