1.8" TFT LCD w/joystick and SD card. white screen

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

1.8" TFT LCD w/joystick and SD card. white screen

Postby asteroide06 » Sat Feb 02, 2013 7:18 am

Hello,

I just received an Adafruit shield, Adafruit 1.8" 18-bit Color TFT Shield w/microSD and Joystick, ID 802.
I connect it on an Arduino Mega 2560. As many other users, when upload any of the exanples provided with ADAFRUIT8ST7732 library examples, the screen is always white. The serial monitor shows a normal behavior. I can read the messages, the values of the analog reading with the joystick, etc... I changed the CS value to 10 and DC value to 8, according to the pin numbering on the shield. I double checked the solderings, redid them to make sure they make a good contact. No change.
You can see pictures of the solderings here:
http://www.asteroide06.fr/soldering1.jpg
http://www.asteroide06.fr/soldering2.jpg
They are not perfect (done with a smartphone)

What else can I try ?

Thanks for your help
asteroide06
 
Posts: 4
Joined: Sat Feb 02, 2013 7:02 am

Re: 1.8" TFT LCD w/joystick and SD card. white screen

Postby asteroide06 » Sat Feb 02, 2013 7:03 pm

Ok, I got the solution. In the examples provided, the sclk and mosi pins must be used too. I first changed only the CS, DC and RST adresses. It's not enough to make it fully functional on an Arduino mega 2560.

For example in graphicstest, the original code is:
Code: Select all
#define sclk 4
#define mosi 5
#define cs   6
#define dc   7
#define rst  8  // you can also connect this to the Arduino reset


To make it work with Arduino mega 2560:
Code: Select all
#define sclk 13
#define mosi 11
#define cs  10
#define dc   8
#define rst -1  // you can also connect this to the Arduino reset


In shieldtest, the original code is:
Code: Select all
#define SD_CS    4  // Chip select line for SD card
#define TFT_CS  10  // Chip select line for TFT display
#define TFT_DC   8  // Data/command line for TFT
#define TFT_RST  -1  // Reset line for TFT (or connect to +5V)
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);


To make it work with Arduino mega 2560:
Code: Select all
#define sclk 13
#define mosi 11
#define SD_CS    4  // Chip select line for SD card
#define TFT_CS  10  // Chip select line for TFT display
#define TFT_DC   8  // Data/command line for TFT
#define TFT_RST  -1  // Reset line for TFT (or connect to +5V)
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, mosi, sclk, TFT_RST);


Hope this helps.
asteroide06
 
Posts: 4
Joined: Sat Feb 02, 2013 7:02 am

Re: 1.8" TFT LCD w/joystick and SD card. white screen

Postby dmpyron » Wed Feb 06, 2013 11:22 pm

Thanks for doing my research! :D Now I won't wander around trying to figure what little thing I've done wrong.
dmpyron
 
Posts: 29
Joined: Mon Dec 10, 2012 10:14 am

Re: 1.8" TFT LCD w/joystick and SD card. white screen

Postby unexpectedly » Tue Apr 02, 2013 4:31 pm

Thank you so much! I've already burned a diagonal black line in my screen from trying to figure this out.

Adafruit, please put something somewhere in the description about Mega people seeing this thread. :D

Yaaay, now I can get back to trying to use this to control my test bench... AND get a graph readout!

Thanks,
Chris
unexpectedly
 
Posts: 5
Joined: Sun Nov 25, 2012 3:08 am

Re: 1.8" TFT LCD w/joystick and SD card. white screen

Postby unexpectedly » Tue Apr 02, 2013 4:37 pm

Whoops, was happy too soon. Graphics test works from changes above but not shield test. I'll figure it out... :D
unexpectedly
 
Posts: 5
Joined: Sun Nov 25, 2012 3:08 am

Re: 1.8" TFT LCD w/joystick and SD card. white screen

Postby peony3000 » Wed May 01, 2013 10:43 am

Hi
I'm was getting the white screen with a Arduino Uno
The correct pin assignments are....
Code: Select all
// You can use any (4 or) 5 pins
#define sclk 13
#define mosi 11
#define cs   10
#define dc   8
#define rst  -1  // you can also connect this to the Arduino reset

Andy
peony3000
 
Posts: 1
Joined: Wed Apr 17, 2013 2:23 pm

Re: 1.8" TFT LCD w/joystick and SD card. white screen

Postby adafruit_support_mike » Wed May 01, 2013 3:58 pm

This is an issue we started seeing with a small number of TFT shields after pburgess, our blinky-stuff guru, optimized the library. Unfortunately, it hits so rarely that he hasn't been able to replicate the issue and fix it.

Try using this version of the library: https://github.com/adafruit/TFTLCD-Libr ... 5263787d1f
When you void a product warrany, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 1393
Joined: Thu Feb 11, 2010 1:51 pm

Re: 1.8" TFT LCD w/joystick and SD card. white screen

Postby unexpectedly » Wed May 01, 2013 6:58 pm

BTW, to update, I was able to get it working to the point where a joystick move could make words show up on the screen. I forgot exactly what I did, but I recall it was an issue of getting all the pin #s right on my Mega. If someone comes here via google with a Mega and is stuck ,reply and I'll dig up the sketch.
unexpectedly
 
Posts: 5
Joined: Sun Nov 25, 2012 3:08 am


Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: No registered users and 5 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]