E-Bay Cheapo

Hi,
Have one of these
http://www.ebay.co.uk/itm/370987651121?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649

Tried Adafruit 7735 and olikraus with his help and libraries havent got it to display.

Anybody got this TFT working.

Thanks
Peter

Looks similar to image 2 in this thread so you may be in luck.

thanks, have been talking to Oliver(his post/info) but no luck =(

Randcook:
thanks, have been talking to Oliver(his post/info) but no luck =(

I don't know what you have discussed and tried yet but looking at the eBay images it looks like the header where pins are soldered conforms to the Nokia 5110 display pinouts and the TFT is I2C controlled.
I also came across this library linked from this page but they seem to be using SPI instead.
If your inclined the official code/drawings etc seems to be hosted in a zip file here and one PDF lists the pin functions of the soldered pin header.

Pins are labelled same as my device, scanned for I2C address but nothing found. used DIN and CLK on UNO pins 4 and 5

GitHub - zigwart/Adafruit_QDTech: 1.8" TFT LCD library for Arduino and QD Tech / Samsung S6D02A1 Library looks good , but get a general compile error?
Adafruit_QDTech.h:117:8: error: no macro name given in #ifndef directive
will have a look at the documents also

This is the most confusing device I have come across in a long time. I downloaded the official zip file and now it looks like it may be SDI though they are using I2C like pin names. I extracted the sketch and it's attached UFT library to the relevant places and the sketch compiles without error but only just fits into an UNO's memory.

//Param1:Value Can be:QD_TFT180A/QD_TFT180B/QD_TFT180C
//Param2 instructions:Connect to LCD_Pin SDA/SDI/MOSI(it means LCD_Model Pin_SDA/SDI/MOSI Connect to Arduino_UNO Pin11)
//Param3 instructions:Connect to LCD_Pin SCL/CLK/SCLK(it means LCD_Model Pin_SCL/CLK/SCLK Connect to Arduino_UNO Pin10)
//Param4 instructions:Connect to LCD_Pin CS/CE(it means LCD_Model Pin_CS/CE Connect to Arduino_UNO Pin9)
//Param5 instructions:Connect to LCD_Pin RST/RESET(it means LCD_Model Pin_RST/RESET Connect to Arduino_UNO Pin12)
//Param6 instructions:Connect to LCD_Pin RS/DC(it means LCD_Model Pin_RS/DC Connect to Arduino_UNO Pin8)
UTFT myGLCD(QD_TFT180C,11,10,9,12,8);   // Remember to change the model parameter to suit your display module!

What happens if you grab the official library, connect as shown in example and run there sketch?

With the Test sketch from qdtech with UTFT.h library.
UTFT myGLCD(QD_TFT180A/QD11,10,9,12,8); // Remember to change the model parameter to suit your display module!
errors
QDtech_160x128_TFT:23: error: 'QD_TFT180A' was not declared in this scope
QDtech_160x128_TFT:23: error: 'QD11' was not declared in this scope
what do i define for this???

Should

UTFT myGLCD(QD_TFT180A/QD11,10,9,12,8);

be

UTFT myGLCD(QD_TFT180A,11,10,9,12,8);
char QD_TFT180A;
UTFT myGLCD(QD_TFT180A,11,10,9,12,8);   // Remember to change the model parameter to suit your display module!

no compiles but needed to commented out Cross-Hairs and Moving sine wave as sketch was way too big.
Still Nothing =(

This seems to be the same display:

Randcook:

char QD_TFT180A;
UTFT myGLCD(QD_TFT180A,11,10,9,12,8);   // Remember to change the model parameter to suit your display module!

no compiles but needed to commented out Cross-Hairs and Moving sine wave as sketch was way too big.
Still Nothing =(

What Arduino are you running this on? It will just fit into an UNO as it stands but not my pro mini.
I'm not sure why you posted char QD_TFT180A; Did you add this to the QDTech supplied demo sketch as I did not have to do that and it compiled fine for me.

Time to explain in detail what pins on the LCD are connected where on the Arduino.

Think i have the same display.

I noticed there are 2 versions of UTFT library,

The newer dont seem to have support to this display.

the utft library you can download from this site works with mine.

http://www.ebay.com/itm/200951258962?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

I also changed the default A to B in this part : (UTFT myGLCD(QD_TFT180B,11,10,9,12,8); that increased the contrast

Here is a simple code you could try out

// UTFT_ViewFont (C)2012 Henning Karlsen
// web: http://www.henningkarlsen.com/electronics
//
// This program is a demo of the included fonts.
//
// This demo was made for modules with a screen resolution 
// of 320x240 pixels.
//
// This program requires the UTFT library.
//

#include <UTFT.h>
#include <avr/pgmspace.h>

// Declare which fonts we will be using

extern uint8_t SevenSegNumFont[];
extern uint8_t BigFont[];
extern uint8_t TinyFont[];
extern uint8_t Dingbats1_XL[];
extern uint8_t various_symbols[];



// Uncomment the next line for Arduino 2009/Uno
UTFT myGLCD(QD_TFT180B,11,10,9,12,8);   // Remember to change the model parameter to suit your display module!

int sensorPin = A0;
int x ;


void setup()
{
  pinMode(sensorPin , INPUT);
  myGLCD.InitLCD();

  myGLCD.clrScr();
  delay(500);
   myGLCD.setFont(TinyFont); 
  myGLCD.print("Soil moisture sensor",LEFT, 2);   
   myGLCD.print("Range : 0 ----> 99",LEFT, 12);
   myGLCD.print("0 = Wet / 99 = Dry ",LEFT,22);
   delay(1000);
  // myGLCD.print("code by panzerfaust",LEFT, 32);
   //delay(3000);
    myGLCD.fillScr(0,0,0);
}

void loop()
{
  myGLCD.setFont(TinyFont);
  myGLCD.print("SOIL MOISTURE:",LEFT, 2);
  x = analogRead(sensorPin);
  
  
  myGLCD.setColor(255,255,255);
  myGLCD.setBackColor(0,0,0);
  

  myGLCD.setFont(TinyFont);
  
  
  
  
  myGLCD.printNumI(x/10.3,RIGHT,1,2);
  
  
  myGLCD.setFont(Dingbats1_XL);
  myGLCD.print("7",LEFT,48);

  myGLCD.setFont(TinyFont);

 if (x >900 && x < 1024)
 {
   
   myGLCD.print("syNTax eRRor",CENTER,55);
   myGLCD.setFont(Dingbats1_XL);
  myGLCD.print("4",LEFT,48);
 }
 else if (x >700 && x < 900)
 {
   myGLCD.setFont(TinyFont);
myGLCD.print("  dead dry !  ",CENTER,55);
}
 else if(x >550 && x< 701)
 {
myGLCD.print("      dry ! ",CENTER,55);
 }
  else if(x >350 && x< 550)
 {
myGLCD.print("  * perfect * ",CENTER,55);
 }
 else if(x >201 && x< 349)
 {
myGLCD.print("     wet !   ",CENTER,55);
 }
 else if(x < 200)
 {
myGLCD.print("   flooded ! ",CENTER,55);
 }
 
 

  
  
  
  
   
  
  




  

  
}