Pages: [1]   Go Down
Author Topic: SainSmart tft 3.2 lcd display not working.  (Read 2033 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I got a new 3.2 lcd screen and it wont work. It lights up so it must be getting power, but nothing comes on the screen. I have no errors when compiling.
Code:
// UTFT_Textrotation_Demo (C)2012 Henning Karlsen
// web: http://www.henningkarlsen.com/electronics
//
// This program is a demo of the textrotation-functions.
//
// This demo was made for modules with a screen resolution
// of 320x240 pixels.
//
// This program requires the UTFT library.
//

#include <UTFT.h>

// Declare which fonts we will be using
extern uint8_t BigFont[];
extern uint8_t SevenSegNumFont[];

// Uncomment the next line for Arduino 2009/Uno
//UTFT myGLCD(ITDB32S,19,18,17,16);   // Remember to change the model parameter to suit your display module!

// Uncomment the next line for Arduino Mega
UTFT myGLCD(ITDB32S,38,39,40,41);   // Remember to change the model parameter to suit your display module!

void setup()
{
  myGLCD.InitLCD();
  myGLCD.clrScr();
  myGLCD.setFont(BigFont);
}

void loop()
{
    myGLCD.print("Text rotation", 0, 0);
    myGLCD.setColor(0, 0, 255);
    myGLCD.print("0 degrees", 0, 16, 0);
    myGLCD.print("90 degrees", 319, 0, 90);
    myGLCD.print("180 degrees", 319, 239, 180);
    myGLCD.print("270 degrees", 0, 239, 270);

    myGLCD.setFont(SevenSegNumFont);
    myGLCD.setColor(0, 255, 0);
    myGLCD.print("45", 90, 100, 45);
    myGLCD.print("90", 200, 50, 90);
    myGLCD.print("180", 300, 200, 180);

  while (true) {};
}
Logged

Dee Why NSW
Offline Offline
Edison Member
*
Karma: 29
Posts: 1662
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I understand there is some confusion about the wiring. If you trawl back through this forum you will find quite a bit of information about it.
Logged

Washington
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you using the shield or plugging directly into the screen's connectors?

The shield has a contrast pot on it which will need to be wired in if you are not using the shield for this project. 

Massey
Logged

A Veteran, whether active duty, retired, national guard, or reserve, is someone who, at one point in his or her life, wrote a blank check ma

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you using the shield or plugging directly into the screen's connectors?

The shield has a contrast pot on it which will need to be wired in if you are not using the shield for this project. 

Massey
Its an atmega 2560 with a shield and the screen on top.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It looks just like this.
http://www.amazon.com/gp/product/B008FWSH3C/ref=s9_simh_gw_p236_d9_i2?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=center-2&pf_rd_r=10RTCY7G9YJX2K6Q52J8&pf_rd_t=101&pf_rd_p=1389517282&pf_rd_i=507846
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you using the shield or plugging directly into the screen's connectors?

The shield has a contrast pot on it which will need to be wired in if you are not using the shield for this project. 

Massey
I have adjusted the contrast pot. It gets power for sure.
Logged

Leeds, England
Offline Offline
Sr. Member
****
Karma: 8
Posts: 396
Quick, chuck it in the bin before the boss finds out...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I appreciate that this might not be what you want to hear, but I have the same setup and I have loaded up your code and it works just fine.

Sainsmart Mega 2560, interface board/shield, 3.2" tft display with touch. Not using the SD card slot.
Logged

Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I appreciate that this might not be what you want to hear, but I have the same setup and I have loaded up your code and it works just fine.

Sainsmart Mega 2560, interface board/shield, 3.2" tft display with touch. Not using the SD card slot.
By chance have you done anything to the UTFT library?
Logged

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 44
Posts: 2805
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Short of trying to compile your code it looks all right. The lines uncommented are for the mega and the display id "UTFT myGLCD(ITDB32S,38,39,40,41); is the same I use with several of my own  3.2" displays which leaves the contrast pot. If you have a Mega for the Itead display there are 2 versions 1.2 and 2.0... The 1.2 version has a contrast pot that must be adjusted to be able to see the display properly.
It is a 10 turn pot so be careful because the leads to the pot are fragile and be patient... the adjustment is only 2 or 3 turns close to one end of it's rotation (Added).

Bob
« Last Edit: February 15, 2013, 06:46:58 pm by Docedison » Logged

--> WA7EMS <--
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I tried it. Now all I have is a bright white screen.
Logged

Pages: [1]   Go Up
Jump to: