epg
Posts: 7
Joined: Wed Mar 19, 2014 6:57 pm

5" LCD touchscreen problems..

Fri Sep 23, 2016 5:48 pm

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

epg
Posts: 7
Joined: Wed Mar 19, 2014 6:57 pm

Re: 5" LCD touchscreen problems..

Sat Sep 24, 2016 2:22 pm

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.

velkrosmaak
Posts: 4
Joined: Sat Feb 23, 2013 3:15 pm

Re: 5" LCD touchscreen problems..

Tue May 21, 2019 11:31 pm

yes! this solved the non working touchscreen issue for me too! good spot!

Return to “General discussion”