Author Topic: ebay 3,5" TFT With Touch  (Read 2344 times)

0 Members and 1 Guest are viewing this topic.

Offline maurosmartinsTopic starter

  • Regular Contributor
  • *
  • Posts: 62
  • Country: pt
    • Electronics and Embedded systems
ebay 3,5" TFT With Touch
« on: August 23, 2018, 09:22:54 pm »
Hello all,

I've recently bought one of these 3,5" TFT displays for use on a project. Unfortunately it was damaged during transportation and the touch panel itself was broken. I was able to use the rest of the display to start writing code for my application.

I've ordered a new display, and my question is; how do I read the touch panel, I haven't found any clue on how to read the touch information, what is the interface?

Thanks in advanced,
Best regards, Mauro.

 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: ebay 3,5" TFT With Touch
« Reply #1 on: August 23, 2018, 10:00:19 pm »
1st step is to identify the touch controller, then read that datasheet

https://www.mouser.com/Semiconductors/Data-Converter-ICs/Touch-Screen-Controllers/_/N-625wj?P=1yq2yc5

 

Offline maurosmartinsTopic starter

  • Regular Contributor
  • *
  • Posts: 62
  • Country: pt
    • Electronics and Embedded systems
Re: ebay 3,5" TFT With Touch
« Reply #2 on: August 23, 2018, 10:30:31 pm »
Hello,

it doesn't help much, physically I can only see two extra ICs on the PCB (74HC245) not touch controllers.

any usual touch controller in these boards as the ILI9481 is for the TFT itself.

Best regards, Mauro.
 

Offline Mr. Scram

  • Super Contributor
  • ***
  • Posts: 9810
  • Country: 00
  • Display aficionado
Re: ebay 3,5" TFT With Touch
« Reply #3 on: August 23, 2018, 11:50:06 pm »
I haven't had much luck with these. One broke before arrival and one developed spots shortly after.
 

Offline MasterT

  • Frequent Contributor
  • **
  • Posts: 785
  • Country: ca
Re: ebay 3,5" TFT With Touch
« Reply #4 on: August 24, 2018, 12:08:46 am »
It could have resistive touch panel, use your multimeter in resistance measurement mode, check  across A1 - A2 and D6 -D7 (arduino pin mapping), 300-600 Ohm expected.
 

Offline msliva

  • Newbie
  • Posts: 8
Re: ebay 3,5" TFT With Touch
« Reply #5 on: August 24, 2018, 12:34:54 am »
Hello,

I do not have this LCD but you can read the the sources bellow. Maybe could help.

You can try read the reviews on the bottom of the page: "Download MCUFRIEND_kbv library from gitub plug in and play, its simple"

https://www.ebay.com/itm/3-5-inch-TFT-LCD-Touch-Screen-Display-Module-480X320-fr-Arduino-UNO-Mega-2560-JS-/222772682548?_trksid=p2349526.m4383.l4275.c10#viTabs_0

https://github.com/prenticedavid/MCUFRIEND_kbv
https://forum.arduino.cc/index.php?topic=366304.0
 
The following users thanked this post: bitseeker

Offline maurosmartinsTopic starter

  • Regular Contributor
  • *
  • Posts: 62
  • Country: pt
    • Electronics and Embedded systems
Re: ebay 3,5" TFT With Touch
« Reply #6 on: August 24, 2018, 06:38:13 pm »
Hello all

thank you very much for your quick replies,

Yesterday I've unglued the display from the PCB reviling the touch panel pads, with a multi-meter on continuity I've searched the corresponding pins, they were just like the ebay comment that msliva has pointed.

Quote
YP = A2, XM = A1, YM = 7, XP = 6
these are arduino uno pins.

these correspond to the resistor matrix that MasterT was talking about.


this way these panels don't possess a touch controller IC, only the bare resistive touch panel.

Regarding the libraries, I'm using STM32 microcontroller and not Arduino, I'll have to search or create my owns.

Again, thank you very much for the help.

Best regards, Mauro.
 
P.S. hope the next display doesn't arrive broken....  ;D
 
The following users thanked this post: bitseeker

Offline sairfan1

  • Frequent Contributor
  • **
  • Posts: 348
  • Country: ca
Re: ebay 3,5" TFT With Touch
« Reply #7 on: August 31, 2018, 05:03:41 pm »
If it was damaged while shipping you can open dispute and get new TFT (at least on aliexpress i never had any issue regarding disputes)

Mostly Chinese TFTs come with XPT2046 touch driver if it does not exist on PCB you can buy one and drive touch panel through this, you can find lots of sample code for this driver.
 

Offline senso

  • Frequent Contributor
  • **
  • Posts: 951
  • Country: pt
    • My AVR tutorials
Re: ebay 3,5" TFT With Touch
« Reply #8 on: September 01, 2018, 12:31:28 am »
Its a resistive touch, use 4 pins that have adc capabilities, and you can read it with a simple scanning routine, then, calibrate the touch values using at least 4 corners and the rest is interpolated.
 

Offline picandmix

  • Frequent Contributor
  • **
  • Posts: 395
  • Country: gb
Re: ebay 3,5" TFT With Touch
« Reply #9 on: September 01, 2018, 09:15:04 am »
Hi,

Have only used the smaller 2.4 and 2.8" versions of those screens.

You will find working code in the AdaFruit and RinkyDink sites.


eg

// UTouch_QuickDraw
// Copyright (C)2015 Rinky-Dink Electronics, Henning Karlsen. All right reserved
// web: http://www.RinkyDinkElectronics.com/
//
// This program is a quick demo of how to use the library.
//
// This program requires the UTFT library.
//
// It is assumed that the display module is connected to an
// appropriate shield or that you know how to change the pin
// numbers in the setup.
//

#include <UTFT.h>
#include <UTouch.h>


https://learn.adafruit.com/category/graphic-tfts

#include "Adafruit_GFX.h"     
#include "Adafruit_ILI9341.h"
#include "UTouch.h"         
     

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf