A simple 3.2" TFT LCD Module with Touch Panel test project

Discussion in 'The Completed Projects Collection' started by OldSpring, Sep 25, 2013.

  1. OldSpring

    Thread Starter New Member

    Aug 10, 2008
    3
    1
    Hello all,

    I just found and bought a serial 3.2" TFT LCD module with Touch Panel. Also it came with a micro SD card (All of test source code and images are in it)

    I have checked most of the project codes. they look ok.

    Now I made a simple touch screen project to show you. It is the simplest and easiest way to build a very nice user interface. I high recommend to use this module for your project or products.

    I use Arduino Duemilanove to build this project, you can use any MCU to control it.

    Below is my test project information:

    MCU:
    Arduino Duemilanove (you can find it any where)

    JP serial 3.2"TFT LCD Module (It come with TFT LCD and Micro SD Card)
    www.jianpingusa.com
    www.jianpingusa.com/jp32tftlcd_video.asp
    Micro SD card code:
    Code ( (Unknown Language)):
    1.  
    2. L@,65535
    3. LC,45,150,1,31,65535,OldSpring Touch Panel.
    4. LC,95,110,1,31,65535,project test.
    5. ZD,8
    6. T3,0
    7. L@,59160
    8. Ld,115,120,90,90,59160
    9. Le,120,125,80,80,59160
    10. Mi,125,130,spring
    11. T2,1,18,10,40,40,face1s,facedn
    12. T2,2,78,10,40,40,face2s,facedn
    13. T2,3,138,10,40,40,face3s,facedn
    14. T2,4,198,10,40,40,face4s,facedn
    15. T2,5,258,10,40,40,face5s,facedn
    16. T2,6,18,60,40,40,face6s,facedn
    17. T2,7,78,60,40,40,face7s,facedn
    18. T2,8,138,60,40,40,face8s,facedn
    19. T2,9,258,60,40,40,face9s,facedn
    20. T2,10,198,60,40,40,faceas,facedn
    21. T2,11,18,110,40,40,facebs,facedn
    22. T2,12,258,110,40,40,face1s,facedn
    23. T4,1
    24. end
    25.  
    26.  
    27.  
    Arduino code:
    Code ( (Unknown Language)):
    1.  
    2. /*==============================================================
    3.  File........JP Serial 3.2" TFT color LCD display module
    4.              A Touch Spring Test code for Arduino
    5.  Purpose.....This test code for JP Serial 3.2" TFT color LCD display module
    6.  Software....Arduino 1.52
    7.  MCU.........Arduino Duemilanove
    8.  Auther......OldSpring
    9.  Website.....WWW.-------.com
    10.  [EMAIL="Email.......oldsprings@yahoo.com"]Email.......oldsprings@yahoo.com[/EMAIL]
    11.  Started.....
    12.  Updated.....
    13.  Note: The module Rx <===> Tx of Arduino
    14.        The module Tx <===> Rx of Arduino
    15. =================== Parameter =============================*/
    16. byte Serial_Read;
    17. void setup()
    18. {
    19.   Serial.begin(9600);  
    20.   Serial.setTimeout(50);    
    21.   delay(1000);
    22.   OldSpring();
    23. }
    24. void delay_m() {
    25.   delay(200);
    26. }
    27. // ================== Touch Spring Function Test =======================
    28. void OldSpring() {
    29.     Serial.write("ZO,spring");   // Run a preprogram file in MMC card
    30.     Serial.write(13);              // end char
    31.     delay(2000);
    32.  
    33. }
    34. //=========================== System Loop ==============================
    35. void loop(){
    36.      if (Serial.available() > 0) {
    37.         Serial_Read = Serial.read();
    38.         switch (Serial_Read) {
    39.           case 128:    //Button Index = 1 "1"  
    40.                 Serial.write("Mi,125,130,face1");
    41.                 Serial.write(13);
    42.                 delay_m();
    43.                 break;
    44.           case 129:    //Button Index = 2 "2"
    45.                 Serial.write("Mi,125,130,face2");
    46.                 Serial.write(13);
    47.                 delay_m();
    48.                 break;
    49.           case 130:    //Button Index = 3 "3"
    50.                 Serial.write("Mi,125,130,face3");
    51.                 Serial.write(13);
    52.                 delay_m();
    53.                 break;
    54.           case 131:    //Button Index = 4 "4"
    55.                 Serial.write("Mi,125,130,face4");
    56.                 Serial.write(13);
    57.                 delay_m();
    58.                 break;
    59.           case 132:    //Button Index = 5 "5"
    60.                 Serial.write("Mi,125,130,face5");
    61.                 Serial.write(13);
    62.                 delay_m();
    63.                 break;
    64.           case 133:    //Button Index = 6 '6"
    65.                 Serial.write("Mi,125,130,face6");
    66.                 Serial.write(13);
    67.                 delay_m();
    68.                 break;
    69.           case 134:    //Button Index = 7 "7"
    70.                 Serial.write("Mi,125,130,face7");
    71.                 Serial.write(13);
    72.                 delay_m();
    73.                 break;
    74.           case 135:    //Button Index = 8 "8"
    75.                 Serial.write("Mi,125,130,face8");
    76.                 Serial.write(13);
    77.                 delay_m();
    78.                 break;
    79.           case 136:    //Button Index = 9 "9"
    80.                 Serial.write("Mi,125,130,face9");
    81.                 Serial.write(13);
    82.                 delay_m();
    83.                 break;
    84.           case 137:    //Button Index = 10 "0"
    85.                 Serial.write("Mi,125,130,facea");
    86.                 Serial.write(13);
    87.                 delay_m();
    88.                 break;
    89.           case 138:    //Button Index = 11 "-"
    90.                 Serial.write("Mi,125,130,faceb");
    91.                 Serial.write(13);
    92.                 delay_m();
    93.                 break;
    94.           case 139:    //Button Index = 12 "*"
    95.                 Serial.write("Mi,125,130,face1");
    96.                 Serial.write(13);
    97.                 delay_m();
    98.                 break;
    99.           case 140:    //Button Index = 14 "/"
    100.                 Serial.write("Mi,125,130,face2");
    101.                 Serial.write(13);
    102.                 delay_m();
    103.                 break;
    104.           case 141:    //Button Index = 15 "="
    105.                 Serial.write("Mi,125,130,facea");
    106.                 Serial.write(13);
    107.                 delay_m();
    108.                 break;
    109.                }              
    110. }}  
    111.  
    112.  
    113.  
    [​IMG]
    [​IMG]
    [​IMG]





    http://youtu.be/IPzeLQiHip8

    http://youtu.be/ULyrTEIJZHE

    Thanks to Allaboutcircuits team and all forume users.
    Oldspring
     
  2. Georacer

    Moderator

    Nov 25, 2009
    5,142
    1,266
    That's a neat project.

    A question: In what kind of file is the MicroSD code in?
     
  3. embpic

    Member

    May 29, 2013
    187
    3
    please provide circuit diagram for this
     
  4. quarkelec

    New Member

    Apr 1, 2014
    3
    0
    good stuff. Nice topic.
     
Loading...