Page 1 of 1
Having a touch issue with the TFT touch screen display
Posted: Wed Jul 03, 2024 4:39 pm
by Avishkar Panchal
I tried to use a "2.8 inch SPI Touch Screen Display TFT" with an Arduino Uno, but getting touch problem while using it, even though I had calibrated the display and made all the necessary connections as the code instructed. However, the display outputs on a different point than the stylus point when I attempt to write on it with a pen. I tried it with numerous examples, but the issue persisted.
Any solution?
Video: [
https://drive.google.com/file/d/1QJ1glw ... drive_link]
Re: Having a touch issue with the TFT touch screen display
Posted: Wed Jul 03, 2024 8:09 pm
by _ViR_
Looks like you [b
]haven't collaborated touch screen in code[/b]
here is example how touch collaborated using serial moniter
Code: Select all
https://youtu.be/IcIY2pWursc?t=168
its for TFT LCD Touch Screen
ILI9325 but just look at example he change TS_MAXX abd TS_MAXY value by collaborating
same as you can use this method in you program
here is another video
Code: Select all
https://youtu.be/SIo_Gv7K7Fo?t=540
video description: code
Code: Select all
https://www.patreon.com/posts/20817428
"As example we can use tft paint sketch in which we only have to change pin for out touch screen and invert minimum and maximum value for x direction "
above 2nd video is informative if you are new to tft screen
Re: Having a touch issue with the TFT touch screen display
Posted: Thu Jul 04, 2024 3:06 pm
by Avishkar Panchal
Thank you for reply @_ViR_
Using the Arduino sketch found at [
http://www.lcdwiki.com/res/Program/Comm ... 7_V1.1.zip]
I have calibrated the display for servel time.
I made connetions as per mention in code and uploaded the code to the Arduino Uno board in accordance with the instructions in the "touch_screen_calibration" sketch. After the display successfully calibrated, I supplied the calibration parameters to the cali_para.h file in accordance with the code's instructions. But the problem persists...
Re: Having a touch issue with the TFT touch screen display
Posted: Thu Jul 04, 2024 4:18 pm
by _ViR_
@Avishkar Panchalm
xOffset - the x-offset in pixel (integer) to scroll left (negative) or right (positive).
yOffset - the y-offset in pixel (integer) to scroll up (negative) or down (positive).
XFAC, YFAC is for start rendering(start display drawing) starting from(not sure what this variable for bass tukka he )
aapne invert kiye variable?
invert karlo saare variable like
Option 1)
XFAC YFAC invert kiye
Code: Select all
xfac -700
xoffset -16
yfac -849
yofsset -3
Option 2)
Xoffset yoffset invert kiye
Code: Select all
xfac 700
xoffset -16
yfac 849
yofsset -3
Option 3)
saare opton invert kiye
Code: Select all
xfac -700
xoffset 16
yfac -849
yofsset 3
4th nahi likha wo bhi karlo
Collaborate ho jae kabhi bhi to code show karna or kese hua wo bhi!!!
Good Luck!!!
Re: Having a touch issue with the TFT touch screen display
Posted: Thu Jul 04, 2024 4:42 pm
by Avishkar Panchal
Okay, I will try this...
Re: Having a touch issue with the TFT touch screen display
Posted: Wed Jul 10, 2024 4:41 am
by awesumtech
Just a thought. Check if X and Y coordinates have been interchanged.