Tuesday, 26 August 2014

LCD-2000_Function manual

1.Introduce

  This manual mainly introduced the function examples from the LCD-2000 driver library. Every driving function is included in the driver file. We have a total of three electronic screen, they are LCD-2000-3916/LCD-2000-9225/LCD-2000-7775. The
driver of them is not exactly the same, but the driving way is the same. We can call function in the same way. So this manual is suitable for three kinds of LCD screen.

We can description the functional use the format as fellow:

Table 1.Function Description format

Table 2.Function drawLine
Example:/*draw a black line between(0,0)and(100,100)*/
drawline(0,0,100,100,RGB(0,0,0));

Table 3.Function drawFastVLine
Example:/*draw a black line which length is 50 and start with(0,100)*/
drawFastVLine(0,100,50,RGB(0,0,0));

Table 4.Function drawFastHLine
Example:/* draw a black line which length is 80 and start with(20,0)*/
drawFastHLine(20,0,80,RGB(0,0,0));

Table 5.Function fillRect
Example:/*fill a black rectangle start with (0,0),its length is 100,the width is 50 */
fillRect(0,0,100,50,RGB(0,0,0));

Table 6.Function fillScreen
Example:/*fill the screen with red*/
fillScreen(RGB(255,0,0));

Table 7.Function drawCircle
Example  :/*draw a red circle*/
drawCircle(50,100,50,RGB(255,0,0));

Table 8.Function drawCircleHelper

Table 9.cornername value
Example:/*draw the top of the circle*/
drawCircleHelper(50,100,50,1+8, RGB(255,0,0);

Table 10.Function fillCircle
Example:/*fill a red circle*/
fillCircle(50,100,50, RGB(255,0,0));

Table 11.Function fillCircleHelper
Example:/*fill a circle*/
fillCircleHelper(50,100,50,1, 20,RGB(255,0,0));

Table 12.Function drawTriangle
Example: /*draw a rad triangle*/
drawTriangle(0,0,0,100,50,0, RGB(255,0,0));

Table 13.Function fillTriangle
Example: /*fill a triangle use red*/
fillTriangle(0,0,0,100,50,0, RGB(255,0,0));

Table 14.Function drawRoundRect
Example: /*draw a red roundrect */
drawRoundRect(20,20,100,80, 20,RGB(255,0,0));

Table 15.Function fillRoundRect
Example: /*fill a drawRoundRect with red*/
fillRoundRect(20,20,100,80,20, RGB(255,0,0));

Table 16.Function drawChar
Example: /* a black characters write on a write paper*/
drawChar(10,10,'A', RGB(255,255,255), RGB(0,0,0),5) ;

Table 17.Function setstroke

Table 18.Function setTextColor

Table 19.Function setTextSize
Example: /*set a stroke, and a text color, a text size*/
TFTscreen.stroke(255,255,255);
TFTscreen.setTextColor(0xffff, 0xf000);
TFTscreen.setTextSize(2);

Table 20.Function text
Example: /* output a string*/
Text ("abcd: \n ",0,0);

Thursday, 21 August 2014

Multi channel Voltage

1. The purpose of the experiment

This application note is in order to introduce the 8-channel voltage acquisition system . The system included one Arduino UNO R3 board, one DS-REF-431,one TFT LCD screen(We have the LCD-2000-7775 and the LCD-2000-9225, you can choose one to use). The main content of this article is to present the voltage data display .The measured voltage range is 0~4.096V

2. Experiment platform

l  Hardware platform
  One computer, one Arduino UNO R3 board, a LCD-2000-7775 screen, USB data cable, DS-REF-431
l  Software platform
   Arduino-1.5.4, Aruduino drive for Windows

3.Experiment process

(1) We can use DuPont cable to connect the 9K resistance between VCC and A0 port, a 910Ω resistance between  GND  pin and A0 pin. The others(A1-A7) is connection as the same as A0.

(2)Then we can connect the reference source module to UNO R3 board, the connection of pin shows the following table.
Because of the development board internal reference source is not accurate enough, so in order to get a accurate value we need an external reference source. In this experiment ,we used the reference source module is designed  an production by ourselves, which will provide a stable precision reference voltage. In this test , it will provide an accuratevoltage of 4.096V. If you want to know more about the DS-REF-431, you can scan our website to download the datasheet. 

Connection circuit diagram as below:

(3) Open the arduino-1.5.4 software, and writing a program
²  LCD-2000-7775(LCD-2000-9225) is a thin transistor liquid crystal displayeach pixel can be drove by the thin film transistor which is behind the TFT. By this way, it is not only improves the response speed of the display, and you can precisely control display levels. Then the color of TFT LCD will be more realistic. For the TFT LCD module, we can display numbers, English characters, pictures color and the like.

The initialization of LCD screen is shown below
      ²  The Voltage acquisition software is shown below:

²  The Voltage acquisition data display on LCD-2000-7775 software is shown below.

 4. Result

l  We can see the voltage data from the LCD-2000-7775
l  We can easily achieve 8 channels voltage acquisition by change the program




Tuesday, 29 July 2014

LCD-2000 Serial Quick Start manual

This application note applies to the following device:
Mega 2560, UNO R3, LCD-2000,TFT LCD Shield for Mega 2560,TFT LCD Shield for UNO R3


1. What is a TFT screen

TFT(Thin Film Transistor)is a thin transistor liquid crystal display,each pixel can be drove by the thin film transistor which is behind the TFT. By this way, it is not only improves the response speed of the display, and you can precisely control display levels. Then the color of TFT LCD will be more realistic. TFT is composed of a light source, a light guide plate, polarizing plate, filter plate, a glass substrate, alignment film, the liquid crystal material, a thin film transistor and so on. When the TFT display and drive IC (controller) integrated together, it became a TFT display module. We should to distinguish TFT screen and TFT modules. In generally, we use the TFT module. For the TFT LCD module, we
can display numbers, English characters, pictures color and the like.

2. The parameter comparison of these three modules

This application note describes three different drive LCD-2000 TFT screen module, and the parameter comparison of these three modules are as follows:

Module Number is type and controller chips numbered of TFT screen. Control Chip is TFT screen drive chip. The size of 2.0 inches is the distance between the corner of the screen. Resolution is the number which refers to the horizontal pixels and vertical pixels. Color Number refers to there is 65535 color in each point. Drive Library is the driver files which is prepared by our own.

3.Hardware connection

The TFT LCD Shield for Arduino Mega2560 should be directed put on Arduino Mega2560, and then put the LCD-2000 on the TFT LCD shield.
For the UNO R3 , it connect in the same way with Mega2560

4.Load the driver library

You should extract the library package file to “arduino-1.5.4-r2-windows\arduino-1.5.4\libraries” directory directly. 

5. TFT screen initialization

TFT screen with Mega2560 pin initialization, Example are as follows:










Friday, 25 July 2014

LCD-2000-XXXX

1.Introduce

  We have a total of three electronic screen, they are LCD-2000-3916/LCD-2000-9225/LCD-2000-7775. They are single-chip controller, and all of them can display to a maximum of 176-RGB x 220 -dot graphics on 262k-color TFT panel. The chip can
be connected to the outside of the microprocessor directly. And accept the 8-bit high speed bus interface and serial peripheral interface. The display data can be stored in the memory for data RAM which is 176×220×18 bits.

2.Features

 (1)Drive 2.0-inch TFT screen LCD-2000
 (2)Display resolution: 176(H)×220(V)
 (3)Display data RAM : 176×220 ×18bits=696960bits
 (4)Display mode: Full color mode, 262K-colors, 8-colors
 (5)Pin set: DB0-DB7 is IO port for data transmission, WR/RS/CS/LE/RST/PWM is            control pin
 (6)Supports 8-bit micro-controller interface 8080 series
 (7)IO port power supply voltage:1.65-3.5V
 (8)Low power consumption

The parameter comparison of these three modules is as follows:


Configurations


LCD-2000-NT3916/ILI9225/ST7775 ×Mega2560 × Adapter plate

 LCD-2000-NT3916/ILI9225/ST7775 ×UNO R3 ×Adapter plate