Page 1 of 1

5" LCD touchscreen problems..

Posted: Fri Sep 23, 2016 5:48 pm
by epg
Hi,
I have some touchscreen problems with a 5" LCD display. The LCD is a no name, unbranded 5" 800x480 with hdmi port and a GPIO connector for power supply through the Raspberry pi 3; it connects also the touchscreen pins (SPI interface). The touchscreen controller is the XPT2046 that seems to be ADS7846 compatible. I'm using Raspbian Jessie (May 2016), original Raspberry 5V 2A PSU and my config.txt contains:
dtoverlay=ads7846,penirq=25
I'm dealing with two problems:
1) the touchscreen works one time on ten (or more); sometimes works after a long time (5 minutes or more).
2) when it works, I can select ie a menu item but cannot click (aka mouse left click) on it.
Any hint or something to help me investigating?

Thank you in advance.
Epg

Re: 5" LCD touchscreen problems..

Posted: Sat Sep 24, 2016 2:22 pm
by epg
SOLVED.
My LCD display hooks penirq at GPIO22 instead of 25.

Adding in config.txt:

Code: Select all

device_tree=bcm2710-rpi-3-b.dtb
dtoverlay=ads7846,penirq=22,speed=100000,xohms=150
solved the problem.
Now the touchscreen works as expected :D

Epg.

Re: 5" LCD touchscreen problems..

Posted: Tue May 21, 2019 11:31 pm
by velkrosmaak
yes! this solved the non working touchscreen issue for me too! good spot!