All post of ElecFreaksTFT01 LCD

TFT01 Arduino LCD shield in stock

By July 26, 2011 10 Comments
Arduino_TFT01_Shield

TFT01 series LCD modules are  excellent products,  They are designed easy achieved show character, pant screen, show picture, SD card, extern Flash and touch function.

However all of the TFT01 LCD modules are working in 3.3V voltage level and it’s not compatible with Arduino pins, so we make two shields for Arduino, one sheild for Arudino Duemilanove Board, the other for Arduino Mega Board. And now user can directly plug the TFT01 LCD module in the shield and stand on the Arduino board.

TFT01 Arduino LCD Shield v1.0,  designed for TFT01-2.4 and it support both 16 bit mode and 8 bit mode.  If you use the 8 bit mode by the jumper header as figure, you can use the SD card or touch function in the TFT01 LCD module either. When you select SD card or touch function at 8 bit mode, there used D10 pin for selecting, SD card(D10 Pin set LOW) or Touch(D10 Pin set High).

Here is a pant screen demo code that use the TFT01 Arduino LCD Shield v1.0 for 8 bit mode and 16 bit mode.
The demo is in 8 bit mode pin connect as,
DB9-DB16 to pin D0-D7 ; DB0 – DB8 to GND ; LDEA to 3.3V ; VCC to 5V ; GND to GND
RESET to A2
CS to A3
WR to A4
RS to A5


#include <avr/pgmspace.h>

#define LCD_RS   19
#define LCD_WR   18
#define LCD_CS   17
#define LCD_REST 16

void LCD_Writ_Bus(char VH,char VL)
{
unsigned char i,temp,data;
data=VH;
for(i=0;i<8;i++)
{
temp=(data&0x01);
if(temp)
digitalWrite(i,HIGH);
else
digitalWrite(i,LOW);
data=data>>1;
}
digitalWrite(LCD_WR,LOW);
digitalWrite(LCD_WR,HIGH);
data=VL;
for(i=0;i<8;i++)
{
temp=(data&0x01);
if(temp)
digitalWrite(i,HIGH);
else
digitalWrite(i,LOW);
data=data>>1;
}
digitalWrite(LCD_WR,LOW);
digitalWrite(LCD_WR,HIGH);
}

......

void setup()
{
for(int p=0;p<20;p++)
{
pinMode(p,OUTPUT);
}
LCD_Init();
}

void loop()
{
Pant(0x0, 0x0);
delay(500);
Pant(0xff, 0x00);
delay(500);
Pant(0x00, 0xff);
delay(500);
Pant(0xff, 0xff);
delay(500);
}

If you used 16 bit mode , just change “Lcd_Writ_Bus” as below code:
The demo is in 16 bit mode connect as,
DB9-DB16 to pin D0-D7 ; DB0 – DB8 to D8-D15 ; LDEA to 3.3V ; VCC to 5V ; GND to GND
RESET to A2
CS to A3
WR to A4
RS to A5


#define Bus_16
#define LCD_RS   19
#define LCD_WR   18
#define LCD_CS   17
#define LCD_REST 16

void Lcd_Writ_Bus(char VH,char VL)
{
  unsigned char i,temp,data;
  data=VH;
  for(i=0;i<8;i++)
  {
    temp=(data&0x01);
    if(temp)
      digitalWrite(i,HIGH);
    else
      digitalWrite(i,LOW);
    data=data>>1;
  }
  data=VL;
  for(i=8;i<16;i++)
  {
    temp=(data&0x01);
    if(temp)
      digitalWrite(i,HIGH);
    else
      digitalWrite(i,LOW);
    data=data>>1;
  }
  digitalWrite(LCD_WR,LOW);
  digitalWrite(LCD_WR,HIGH);
}

The full code from here.

 

 

LCD TFT01 Arduino Mega Shield v1.0, it supports only 16 bit mode for TFT01-3.2 or TFT01-3.2W module. Because of Mega board have enough pins for using SD card and Touch function at the same time.

The demo is in 16 bit mode connect as,
DB9-DB16 to pin D22-D29 ; DB0 – DB8 to D37-D30 ; LDEA to 3.3V ; VCC to 5V ; GND to GND

RESET to D41
CS to D40
WR to D39
RS to D38

#define LCD_RS   38
#define LCD_WR   39
#define LCD_CS   40
#define LCD_REST 41

void Lcd_Writ_Bus(char VH,char VL)
{
unsigned char i,temp,data;
data=VH;
for(i=22;i<=29;i++)
{
temp=(data&0x01);
if(temp)
digitalWrite(i,HIGH);
else
digitalWrite(i,LOW);
data=data>>1;
}
data=VL;
for(i=37;i>=30;i--)
{
temp=(data&0x01);
if(temp)
digitalWrite(i,HIGH);
else
digitalWrite(i,LOW);
data=data>>1;
}
digitalWrite(LCD_WR,LOW);
digitalWrite(LCD_WR,HIGH);
}

......
void setup()
{
for(int p=22;p<42;p++)
{
pinMode(p,OUTPUT);
}

Lcd_Init();

}

void loop()
{
Pant(0x0, 0x0);
delay(500);
Pant(0xff, 0x00);
delay(500);
Pant(0x00, 0xff);
delay(500);
Pant(0xff, 0xff);
delay(500);
}

Get the full code from here.

Related information:

 

VN:F [1.9.13_1145]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)
robi

Author robi

ElecFreaks - Community for electronics enthusiasts, provide all you need.

More posts by robi

Join the discussion 10 Comments

  • Thad Offer says:

    I and my friends were going through the nice, helpful tips from the blog then the sudden came up with an awful suspicion I never expressed respect to the website owner for those secrets.

    [Reply]

    clark Reply:

    Thanks for your comment. You can keep on following us. I am sure you can find more useful solutions or tips on it.

    [Reply]

    VN:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • Sal Uziel says:

    Wow, awesome blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is magnificent, let alone the content!. Thanks For Your article about TFT01 Arduino LCD shield in stock | ElecFreaks .

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • Aaron Kiphart says:

    Wow, fantastic blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is wonderful, let alone the content!. Thanks For Your article about TFT01 Arduino LCD shield in stock | ElecFreaks .

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • Wow, superb blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is wonderful, let alone the content!. Thanks For Your article about TFT01 Arduino LCD shield in stock | ElecFreaks .

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • Floyd Maraldo says:

    Wow, wonderful blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is wonderful, as well as the content!. Thanks For Your article about TFT01 Arduino LCD shield in stock | ElecFreaks .

    [Reply]

    dany Reply:

    We are so happy and appreciated that you like our blog, and welcome to leave a message or contact us if you have any question or idea.

    [Reply]

    VN:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • Sal Uziel says:

    Wow, fantastic blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is fantastic, as well as the content!. Thanks For Your article about TFT01 Arduino LCD shield in stock | ElecFreaks .

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • Jefferson says:

    Is this shield compatible also with TFT module ITDB02 from Itead?

    [Reply]

    robi Reply:

    Dear, this compatible with each others.

    [Reply]

    VN:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)

Leave a Reply