Difference between revisions of "2.8inch Arduino Display"

From LCD wiki
Jump to: navigation, search
(Driver download)
(41 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
 
|-
 
|-
|SKU
+
| align="center" |SKU
|MAR2808
+
| align="center" |MAR2808
 
|-
 
|-
|size
+
| align="center" |Screen Size 
|2.8(inch)
+
| align="center" |2.8(inch)
 
|-
 
|-
|type
+
| align="center" |Type
|TFT
+
| align="center" |TFT
 
|-
 
|-
|driver chip
+
| align="center" |Driver IC
|ILI9341
+
| align="center" |ILI9341
 
|-
 
|-
|resolution
+
| align="center" |Resolution
|320*240 (Pixel)
+
| align="center" |320*240 (Pixel)
 
|-
 
|-
|module interface
+
| align="center" |Module Interface
|8-bit parallel interface
+
| align="center" |8-bit parallel interface
 
|-
 
|-
|effective display area
+
| align="center" |Active Area 
|57.6x43.2(mm)
+
| align="center" |43.2*57.6(mm)
 
|-
 
|-
|module PCB size
+
| align="center" |Module PCB Size
|78.22x52.7(mm)
+
| align="center" |52.70*78.22(mm)
 
|-
 
|-
|operating temperature
+
| align="center" |Operating Temperature
| -20℃~70℃
+
| align="center" | -20℃~70℃
 
|-
 
|-
|operating Voltage
+
| align="center" |Storage Temperature
|5V
+
| align="center" | -40℃~70℃
 
|-
 
|-
|power consumption
+
| align="center" |Operating Voltage
|about 90mw
+
| align="center" |5V/3.3V
 
|-
 
|-
|product weight
+
| align="center" |Power Consumption
|25(g)
+
| align="center" |About 90mw
 +
|-
 +
| align="center" |Product Weight
 +
| align="center" |About 25(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 105:
 
| 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 113:
 
| 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 149:
 
| 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 164:
 
|}
 
|}
  
==<font color="blue">Product size</font> ==
+
==<font color="blue">Product Documentation</font> ==
Product size drawing:
 
 
 
[[file:MAR2808-001.PNG|750x750px]]
 
  
==<font color="blue">Hardware description</font> ==
+
* [http://www.lcdwiki.com/res/MAR2808/2.8inch_Arduino_8BIT_Module_MAR2808_User_Manual_EN.pdf '''2.8寸Arduino UNO Module User Manual''']
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''']
+
* [http://www.lcdwiki.com/images/6/66/MAR2808-001.PNG '''2.8 inch Arduino UNO Module Size Picture''']
 +
* [http://www.lcdwiki.com/res/MAR2808/MAR2808-2.4-UNO.pdf '''2.8 inch Arduino UNO Module Schematic''']
 +
* [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">Using Instructions</font> ==
+
==<font color="blue">Connect to Arduino</font> ==
'''<big>Arduino platform using instructions</big>'''
 
  
1.Wiring instructions
+
{| class="FCK__ShowTableBorders" align="left"
 
 
{| 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
 
| 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
+
![[file:MAR2808-038.jpg|无框|400x400px]]
| align="center" |11
+
![[file:MAR2808-039.jpg|无框|400x400px]]
| align="center" |SD_DI
 
| align="center" |11
 
 
|-
 
|-
| align="center" |SD_DO
+
| align="center" | '''Arduino UNO direct insertion picture'''
| align="center" |12
+
| align="center" | '''Arduino Mega2560 direct insertion picture'''
| 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:
 
  
Open Arduino IDE software,click File->Preferences to define the directory where Arduino project files are located,as shown in the following figure:
+
==<font color="blue">How to use on Arduino</font> ==
  
[[file:MAR2808-017.jpg|800x800px]]
+
*'''Step 1: Download the test program'''
  
e.Open the Example folder in the package, you can see there are 11 test examples, as shown below:
+
# 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
  
[[file:MAR2808-013.jpg|800x800px]]
+
*'''Step 2: Connect the Arduino development board'''
  
f.Open any test example,eg open "Example_02_clear_screen"
+
# 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.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:
+
*'''Step 3: Copy the dependent library'''
  
[[file:MAR2808-014.jpg|800x800px]]
+
# 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:
  
If the development board model selection Mega, you also need to select the processor model, for the 2.8-inch display module,
+
::(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]]
  
we only select the ATmega2560 processor, as shown below:
+
*'''Step 4: Compile and download the program to the development board'''
  
[[file:MAR2808-015.jpg|800x800px]]
+
# 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>]
  
h.Click the upload button to compile and download. When "Done Uploading" is displayed,the program has been successfully downloaded to the development board,
+
*'''Step 5: Observe the running of the program'''
  
as shown in the following figure:
+
# After the program is downloaded, run it directly and observe the running status. If it can be displayed normally, the program runs
  
[[file:MAR2808-016.jpg|800x800px]]
+
::successfully, as shown in the following figure (take the display_graphics program as an example):
  
i.If the 2.8-inch display module is continuously displayed in black, white, red, green, and blue, the program runs successfully.
+
::[[File:MAR2808-040.jpg|150px]] [[File:MAR2808-041.jpg|150px]]
  
'''<big>precautions</big>'''
+
==<font color="blue">Program Download</font> ==
  
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
+
# [https://yunpan.360.cn/surl_ymI7zms9THM '''Demo_Arduino_8BIT''']
 +
# [https://yunpan.360.cn/surl_ymI7pQICY5h '''Demo_STC12C5A60S2_8BIT''']
 +
# [https://yunpan.360.cn/surl_ymI7pWVcQzs '''Demo_STM32F103RCT6_8BIT''']
 +
# [https://yunpan.360.cn/surl_ymI7p7bbdCR '''Demo_STM32F103ZET6_8BIT''']
 +
# [https://yunpan.360.cn/surl_ymI74PtGpZQ '''Demo_STM32F407ZGT6_8BIT''']
 +
# [https://yunpan.360.cn/surl_ymI74ThwC3d '''Demo_STM32F429IGT6_8BIT''']
  
both 8-bit and 16-bit modes),the modification method is as follows:
+
* [https://yunpan.360.cn/surl_ymI7IuQS9B3 '''2.8 inch Arduino UNO module package(The above program is packaged with one click download)''']
  
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]]

Revision as of 15:50, 4 December 2018


语言选择

Languages

➤中文
➤EN



Product Video

Product Picture

MAR2808-011.jpg MAR2808-009.jpg

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℃~70℃
Storage Temperature -40℃~70℃
Operating Voltage 5V/3.3V
Power Consumption About 90mw
Product Weight About 25(g)

Interface Definition

MAR2808-037.jpg
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

Product Documentation

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?
MAR2406-005.jpg
  • 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):
MAR2808-040.jpg MAR2808-041.jpg

Program Download

  1. Demo_Arduino_8BIT
  2. Demo_STC12C5A60S2_8BIT
  3. Demo_STM32F103RCT6_8BIT
  4. Demo_STM32F103ZET6_8BIT
  5. Demo_STM32F407ZGT6_8BIT
  6. Demo_STM32F429IGT6_8BIT

Reference Materials

Common Software

BACK TO TOP