DarkoSan
Posts: 4
Joined: Fri Mar 03, 2017 1:25 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Mon Apr 03, 2017 12:45 pm

fq1888 I’ve tired the solution in https://github.com/goodtft/LCD-show

What makes it all running is the following step:
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb

I’ve tested in on my current setup:
Raspberry Pi 3 Model B
KeDei 3.5" HDMI 3.5”
Raspbian 2017-03-02

Currently and hitting another problem: Kodi 15.2 touch displacement:
Graphically it is represented here:
Image

I’ve tried configuring such file without success:
http://kodi.wiki/view/Advancedsettings.xml#touchscreen

Some ideas? Did someone have Kodi working with this touchscreen?

lukusis
Posts: 2
Joined: Thu Apr 06, 2017 4:46 am

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Thu Apr 06, 2017 4:49 am

Hi,

I followed the steps in the O.P. However there is no touch functionality (i have the Sainsmart 5" touch model with XPT2046 on a RPi3 running Kali).

Any ideas?

Much appreciated.


sugarcoded
Posts: 2
Joined: Thu May 11, 2017 2:54 am

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Thu May 11, 2017 3:06 am

if using the latest version of raspbian (after march 2017) with raspberry pi 3:
- hold shift at recovery screen
- press e on keyboard to access config
- tab to cmdline.txt
- change root=/dev/mmcblk0p2 to root=/dev/mmcblk0p7
- reboot

Roadie-z
Posts: 1
Joined: Thu May 11, 2017 4:32 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Thu May 11, 2017 5:11 pm

I've purchased a 3.5" 480x320 touch screen display (a waveshare clone). Installed using both the waveshare image and installing drivers on a clean Jessie (2017-04-10). In both cases, the display works perfectly, but the touch screen has the same problem.

The display senses the touch, but it is stuck to the edge of the screen. The cursor can sense and follow x-axis (horizontal) movement, but the y-axis is always on one side (bottom, if rotation = 0) of the screen.

Does it look like a hardware or software issue?

TOKN59
Posts: 3
Joined: Thu Nov 06, 2014 4:00 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Mon May 15, 2017 8:16 pm

Hello, I just installed everything according to the instructions. The display I am using is a Geekcrit 3.5 inch Touch screen. When I reboot the LCD stays white. The display type is :

3.5inch RPi Display
480 X 320 pixel
XPT2046 Touch Controller

No version is mentioned. When I run the Calibrator it is shown on my HDMI screen, not on the LCD.

Any hints ?

Thanks for your help !

Tony

marsArtis
Posts: 4
Joined: Sun May 21, 2017 2:18 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Mon May 22, 2017 5:36 am

I tried your tip over a simple OCTOPI 0.1.3 distibution, but it's not working.

Maybe because it's not a complete distro.
What do you think?

Raspy Pi3 + Kumantech 3.5 XPT2046 480x320 TFT touch display

strike07
Posts: 1
Joined: Mon Jun 26, 2017 4:15 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Mon Jun 26, 2017 4:24 pm

!Warning!
To calibrate screen you also need xserver-xorg-input-evdev, else, the calibration is not apply!
for me maybe xserver-xorg-input-evdev was not installed by default (release 2017-06-21-raspbian-jessie.img)
So if your calibration not work, try to install this package :

Code: Select all

sudo apt-get install -y  xserver-xorg-input-evdev
and retry calibration ;)

pichardo
Posts: 2
Joined: Sun Jul 09, 2017 6:44 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Sun Jul 09, 2017 9:25 pm

I have a raspberry pi 3 B with a 32 GB SD card, therefore I am using NOOBS to install Raspbian and I am trying to configure a XPT2046 display, but I have tried a lot of things with no success so far, I always get a white screen in the LCD. I tried new and old instructions, tried Lite and Desktop, I tried installing the driver from waveshare and the OS becomes corrupted. I tried to install the image from waveshare in a 8GB partition in SD card, but it doesn't even boot. Any clue?

pichardo
Posts: 2
Joined: Sun Jul 09, 2017 6:44 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Sat Jul 15, 2017 1:22 am

pichardo wrote:I have a raspberry pi 3 B with a 32 GB SD card, therefore I am using NOOBS to install Raspbian and I am trying to configure a XPT2046 display, but I have tried a lot of things with no success so far, I always get a white screen in the LCD. I tried new and old instructions, tried Lite and Desktop, I tried installing the driver from waveshare and the OS becomes corrupted. I tried to install the image from waveshare in a 8GB partition in SD card, but it doesn't even boot. Any clue?
I finally was able to make it to work. I had to install a raspbian image from the vendor, it was a little outdated but anyway, I prefer that to nothing. Anything else failed. One more thing, I could not make dd to work to install the image, so I used Etcher. And if I upgrade raspbian, the screen stops working. I hope this helps others.

fundix
Posts: 3
Joined: Tue Aug 22, 2017 12:46 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Tue Aug 22, 2017 12:48 pm

roguejedi_x wrote:
Sat Feb 04, 2017 3:52 am
I can guarantee 100% that this works with Pi Zero. I am using it and it is performing flawlessly.
Hi have you some wiring diagram? I have display connected by cables, and I can't find working solution for touchpanel - display works cool, but touch panel not working.

fundix
Posts: 3
Joined: Tue Aug 22, 2017 12:46 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Tue Aug 22, 2017 1:00 pm

pavul wrote:
Thu Feb 02, 2017 3:42 pm
somebody knows if this lcd screens works with RPI ZERO?
display working but touch screen I can't came to work.

Jacks800
Posts: 1
Joined: Thu Aug 24, 2017 12:21 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Tue Aug 29, 2017 1:53 pm

Okey gus I just about had it.

I bought a Raspberry Pi 3 B two weeks ago and bought with a 5 inch LCD HDMI Touch screen. I did the steps as indicated with the CD I got and afterwards nothing happend. The screen displays perfectly but there is no touch functionality.

I tried all the options here on the Forum and non of them worked. I moved on and found a few other websites like these below:

https://github.com/CytronTechnologies/x ... spberry-Pi
https://www.jeffgeerling.com/blog/2016/ ... controller
https://www.root42.de/blog/?p=6

https://www.hackster.io/dotMorten/windo ... uch-44af19 - Here I actually got a response from the screen but only the left bottom corner. One time I actually had full controll on the touchscreen but then it disappeared again.

I then decided to move on to the evtest and tb-lib ect. There was a change and I could for a brief moment use the touch screen.

I made sure I bought the authentic versions of the touchscreen and the raspberry pi.

Does anyone of you guys have a clue to what can be the problem?

lucasgsantos
Posts: 2
Joined: Fri Nov 17, 2017 10:00 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Fri Nov 17, 2017 10:07 pm

I tried everything and keep getting the white screen. Who have more details about this touch controller?Image

lucasgsantos
Posts: 2
Joined: Fri Nov 17, 2017 10:00 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Sat Nov 18, 2017 3:52 am

I fixed my problem.
Did everything this article said, but used
dtoverlay=piscreen,speed=16000000,rotate=90
in /boot/config.txt
and changed #Option “fbdev” “/dev/fb0” to #Option “fbdev” “/dev/fb1” in /usr/share/X11/xorg.conf.d/99-fbturbo.conf
And to invert the axes
Option "TransformationMatrix" "1 0 0 0 -1 1 0 0 1" in etc/X11/xorg.conf.d/99-calibration.conf

vincentlou
Posts: 1
Joined: Mon Jan 08, 2018 10:21 am

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Mon Jan 08, 2018 11:14 am

Hello,
Same config for me XPT2046 480x320 on Jessie
and display works :) Thanks lucasgsantos !

Still some little issues

- the left-right axe is inverted. (I have try lot of calibration config found in this thread)
- I don't know how can I have the xvkb at startup , I can't login graphically

My config :
/boot/config.txt

Code: Select all

dtoverlay=ads7846,penirq=25,speed=10000,penirq_pull=2,xohms=150
/etc/X11/xorg.conf.d/99-calibration.conf

Code: Select all

Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "ADS7846 Touchscreen"
        Option  "Calibration"   "3936 227 268 3880"
        Option  "SwapAxes"      "0"
EndSection

manmaha
Posts: 2
Joined: Tue Jan 09, 2018 6:03 am

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Tue Jan 09, 2018 6:18 am

Hi,
Thanks for the extremely clear post on the topic - i followed your instructions but only got a white screen.
This is my LCD screen http://spotpear.com/index.php/spotpear- ... 4-inch-lcd
Is there a way that I could check if the screen is connecting to the Pi?
Also, could it be a a NOOBS issue? I have installed Raspbian Stretch from NOOBS
Many thanks

Baldman
Posts: 1
Joined: Mon Jan 29, 2018 1:40 am

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Mon Jan 29, 2018 1:44 am

Hi all,
I had the same issue but this worked straight away for me, touch screen and all.

https://github.com/Elecrow-keen/Elecrow ... t-Keyboard

Hope this helps.

ishita
Posts: 1
Joined: Sun Apr 01, 2018 6:51 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Sun Apr 01, 2018 7:06 pm

Subsequent to experiencing a large number of various connections and applying different techniques to my darling LCD XPT2046 3.5", the Raspbian kicked the bucket. The underneath specified life friend in need interface helped me in this emergency. The best part is, we needn't bother with any outsider code to align the show.

Appreciate peeps!

https://github.com/CytronTechnologies/x ... spberry-Pi

User avatar
marciokoko
Posts: 257
Joined: Sat Aug 27, 2016 4:33 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Sun May 13, 2018 4:07 am

Would that work for this screen:

https://www.aliexpress.com/item/-/32629828030.html

Got it working but the same issue as the center being calibrated but not the edges. Which means I cant really access the main menu icon on the top left which is very useful. The commands I ran were the ones from the original post. I was somehow able to get to it and go to Preferences and Touch Calibration but even after calibration I got the same problem.

So I just ran to the end of the thread and found that I need to run:

sudo apt-get install -y xserver-xorg-input-evdev

and the results are...the same :-(

Any ideas?

User avatar
marciokoko
Posts: 257
Joined: Sat Aug 27, 2016 4:33 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Mon May 14, 2018 3:45 pm

I still have the messed up touch where calibration is off towards the top of the screen but not so much towards the center and bottom.

I contacted the seller of screen and they told me to install the CD drivers, but i keep thinking to this bit in the OP:

"0) In OS Jessie NO DRIVER REQUIRED! for XPT2046 or ADS7846 Touchscreen. Do not install original driver from Waveshare or any other driver announced as compatible. You will kill your Jessie for sure. At least Waveshare driver totally disables WiFi module functionality!!!"

Has anyone installed the drivers from the manufacturer despite this warning? If so, what were the results?

takio
Posts: 1
Joined: Thu May 24, 2018 3:57 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Thu May 24, 2018 4:03 pm

I have XPT2046 Touch Screen. Should I write

Code: Select all

dtoverlay=xpt2046 instead of  dtoverlay=ads7846?

cpunk
Posts: 80
Joined: Thu Jun 29, 2017 12:39 pm

Re: XPT2046 Touch Screen instructions for Raspbery Pi 3

Fri Jun 01, 2018 10:16 pm

Thank you, everyone who wrote tips before. :) They were helpful. I recently purchased one of the 10.1 inch 1024x600 pixel resistive touch screen displays from Waveshare.

My recipe for making it work was the following:

Code: Select all

-------------------- add to /boot/config.txt--------------------
# Enable XPT2046 touch screen from Waveshare
dtparam=i2c_arm=on
dtparam=spi=on
dtoverlay=ads7846,penirq=25,speed=10000,penirq_pull=2,xohms=150

# Force 1024 x 600 HDMI mode for Waveshare touch screen.
#hdmi_ignore_edid=0xa5000080
hdmi_cvt=1024 600 60 3 0 0 0
# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=87
----------------------------------------

cd /
mkdir ./etc/X11/xorg.conf.d
touch ./etc/X11/xorg.conf.d/99-calibration.conf

-------------------- add to 99-calibration.conf ---------------------
Section "InputClass"
	Identifier	"calibration"
	MatchProduct	"ADS7846 Touchscreen"
	Option	"Calibration"	"100 3982 3750 150"
	Option	"SwapAxes"	"1"
	Option  "InvertX"       "0"
        Option  "InvertY"       "0"
EndSection
-----------------------------------------

Then install these packages:
apt-get install xinput-calibrator xserver-xorg-input-evdev libts-bin

And finally:
cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
Now it works nicely. :)

Return to “Interfacing (DSI, CSI, I2C, etc.)”

Who is online

Users browsing this forum: arkader, steinerlein and 7 guests