Problem displaying bitmaps and shapes on the 1.8" TFT Screen

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Problem displaying bitmaps and shapes on the 1.8" TFT Screen

Postby FRAC » Thu May 17, 2012 10:39 am

Hi all,

I recently bought the 1.8" TFT Screen but I can't display any shapes or bitmaps on it. I mean, I think I wired the cables correctly indeed when I test text display it works fine but... only a few milli-seconds!!
After that delay the screen returns opaque and nothing more will happen on it (despite the program is still running: on the serial port I can still diplay informations).

The problem is neither due to over-memorie capacity (I check that on the console when I load the program on the arduino card) nor to the Micro SD card I used externally (the serial port notice me that the SD card works fine).

Concretely this what happen when I run the spitfbitmat example on the arduino:

On the screen I see a few moments a colored pixel fog and then nothing happenned...
On the serial port I see this:

Initializing SD card...OK!

Loading image 'parrot.bmp'
File size: 61496
Image Offset: 54
Header size: 40
Bit Depth: 24
Image size: 128x160
Loaded in 1214 ms

This is my schematic http://scott-bot.com/wp-content/uploads ... ematic.png

Any idea where could be the problem?

Ps- in the Tools-> programmer menu I choose AVR ISP can it be source of the problem?
FRAC
 
Posts: 9
Joined: Sun Nov 27, 2011 12:50 pm

Re: Problem displaying bitmaps and shapes on the 1.8" TFT Screen

Postby adafruit_support_bill » Thu May 17, 2012 11:22 am

Do you have a photo of your actual connections? I don't see anything corresponding to the backlight pin on your schematic.
User avatar
adafruit_support_bill
 
Posts: 16083
Joined: Sat Feb 07, 2009 9:11 am

Re: Problem displaying bitmaps and shapes on the 1.8" TFT Screen

Postby FRAC » Thu May 17, 2012 12:13 pm

This a picture I take from my schematic:

https://twitpic.com/9m3nnq/full

Hope it will be clear

The "..." indicate that the pin are not plugged

By the way thanks for your help :)
FRAC
 
Posts: 9
Joined: Sun Nov 27, 2011 12:50 pm

Re: Problem displaying bitmaps and shapes on the 1.8" TFT Screen

Postby adafruit_support_bill » Thu May 17, 2012 1:08 pm

Your wiring does not match the example in the tutorial. You have Tx tied to the Reset pin. Anytime you send anything on the serial port it will reset the LCD.
D/C is connected to pin 4 instead of 9. And there is some other yellow wire connected there as well.
User avatar
adafruit_support_bill
 
Posts: 16083
Joined: Sat Feb 07, 2009 9:11 am

Re: Problem displaying bitmaps and shapes on the 1.8" TFT Screen

Postby FRAC » Fri May 18, 2012 9:57 am

Ok I see what you mean for the reset problem. This my code which is supposed to go with the schematic above:

Code: Select all
int dataPin = 3;   
int clockPin = 2;
#define sclk 13
#define mosi 11
#define rst 1
#define cs 10 // <=> TFT_CS
#define dc 4
#define SD_CS 8

[...]
Code: Select all
 
  pinMode(7, OUTPUT); // LED 1
  pinMode(6, OUTPUT); // LED 2
  pinMode(9, INPUT); // BUTTON 1
  pinMode(5, INPUT); // BUTTON 2
  pinMode(10, OUTPUT); // CS
  digitalWrite(cs, HIGH);
  digitalWrite(7, LOW);


So if I understand well, the only things I have to do are to disconnect the rst pin on the screen and plugged it into the Vcc and disconnected the Tx pin on the arduino. But which port should I specify for the rst pin in the code?
FRAC
 
Posts: 9
Joined: Sun Nov 27, 2011 12:50 pm

Re: Problem displaying bitmaps and shapes on the 1.8" TFT Screen

Postby adafruit_support_bill » Fri May 18, 2012 10:27 am

We recommend that you get it working first with the tutorial configuration, then change one thing at a time to simplify debugging.

If you are not going to use the reset function, you can specify an invalid pin number like -1. It is better to connect the pin to the Arduino reset instead of VCC. That way the lcd will reset when the Arduino does.
User avatar
adafruit_support_bill
 
Posts: 16083
Joined: Sat Feb 07, 2009 9:11 am

Re: Problem displaying bitmaps and shapes on the 1.8" TFT Screen

Postby FRAC » Fri May 18, 2012 12:38 pm

Ok I will try that thanks for the support :)
FRAC
 
Posts: 9
Joined: Sun Nov 27, 2011 12:50 pm


Return to Glowy things (LCD, LED, TFT, EL) purchased at Adafruit

Who is online

Users browsing this forum: No registered users and 3 guests

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


New Products [108]

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[31]


 
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[34]
LCDs & Displays[48]
Components & Parts[70]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[111]
 
Wireless[14]
Cables[62]
 
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]