Having a touch issue with the TFT touch screen display

Subscribe to the forum to receive notifications about new posts.
Post Reply
Avishkar Panchal
Posts: 4
Joined: Mon Jun 17, 2024 1:10 pm

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]
User avatar
_ViR_
Posts: 14
Joined: Wed Jun 26, 2024 8:58 pm
Contact:

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
Avishkar Panchal
Posts: 4
Joined: Mon Jun 17, 2024 1:10 pm

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...
You do not have the required permissions to view the files attached to this post.
User avatar
_ViR_
Posts: 14
Joined: Wed Jun 26, 2024 8:58 pm
Contact:

@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!!!
Avishkar Panchal
Posts: 4
Joined: Mon Jun 17, 2024 1:10 pm

Okay, I will try this...
awesumtech
Posts: 2
Joined: Tue Jul 09, 2024 12:58 am

Just a thought. Check if X and Y coordinates have been interchanged.
Post Reply