Raspberry Pi 5-inch Waveshare HDMI touch screen setup
Вставка
- Опубліковано 27 сер 2024
- A short tutorial video showing how to setup and calibrate a Waveshare 5-inch HDMI touch screen on your Raspberry pi.
Website address for the drivers:
www.waveshare.c...
Data and pinouts etc:
www.wvshare.com...
I managed to work on with my raspberry Pi3. Touch screen works fine.
Once you install don't use sudo ./LCD-show command (otherwise you will get kernel panic), just go to /home/pi/Downloads/LCD-show or whatever your file location. Open that folder and edit "cmdline.txt" file... from "root=/dev/mmcblkop2" - "root=/dev/mmcblkop7" . Then you give commands like dpkg.... and Sudo ./LCD-show. it will reboot and touchscreen will work with raspberry pi 3 (jessie installed via noobs)
and me with this solution work at my pi 3 :D thanks mate :D :D
Thanks mate
I should read the comments as long I was watching the video, I am getting the "kernel panic".Now what ?
idk how you figured this shit out, but thanks
Hi, I have tried the same thing and am continuing to research to get this working, do you know if this doesn't work with Kali Linux? I currently have a Raspberry Pi 3B as well...if anyone could help, it would be amazing. I have been working on this for 2 days now and have bricked my SD card about 5 times now.
I just want to say how thankful I am for this tutorial. I bought the screen a while ago and could not for the life of me figure out how to set things up. I followed your tutorial and without skipping a beat--it's running. Thank you!
Wanted to say Thanks, got it up and running in no time.
+ETA PRIME Glad to have helped out!
Thanks so much for this walk through - I've had the screen for a while but never bothered to try and set it up until now. Worked perfectly.
I looked all over for information. Your UA-cam video was great! Instructions were clear and up-to-date. The LCD driver was different for the Raspberry Pi3, but you mentioned that it might be. It works and I now have no problems.
Thank you very much for your effort.
+Larry Lovell Glad to have helped!
after a year of sitting in a box, your video now has me up and running and config'd like a champ, I would add, if your using noobs, that you do have to change the config file from 2 to 6 to keep from having a kernel panic, but other than that. Thank you bro.
This tutorial is still applicable after 5 years - and works also for the Kuman 5 inch display 👍 When I tried to calibrate the screen as shown in 10:34 I ran into an error message "Failed to execute child process "xterm" (Raspbian 10 "Buster"). I solved it by copy & renaming the lxterminal as follows:
cd /usr/bin
sudo cp lxterminal xterm
Good job! I was getting frustrated because my screen only showed 4 out of the 5 inches I ordered, but after the first reboot (after adding the numbers) my screen works! Thank you so much!
Basically have to repeat what ETA Prime said, was up and running without any time at all, much appreciated.
Thanks for the video, just a tip. If you are the user pi you are already in /home/pi so you just have to type cd Downloads , and an other handy feature of BASH is when you type the first letter and then TAB you can cycle true the folder and filenames. So cd T [TAB KEY] would give you This_is_My_Long_Named_FolderName. When you have mutiple files you can type the first 2 or 3 letters and then the TAB key :)
Yes, the Tab key is very useful! It was painful watching you type in those complicated file names.
Rene Snijders my god, this was driving me insane. thank you for your comment.
Your welcome :)
This was very helpful! The best tutorial on here for this 5" LCD Screen Thankyou!
Thanks for your great tutorial. Just what I needed to get the Waveshare screen to work. Great!
Excellent video and worked for me with no flaws.
I really like this screen.
Difficult to get a case, but what matters is it works.
Thanks for the great information.
Many thanks - I bought the 1024x600 - so by just using that driver - all was well.
I truly appreciate the info
This was an awesome video! I just have to say thank you for taking the time to make this. It was spot on and I was able to configure it quick and easy. You took all the guess work out of configuring it! Thanks again!
Thank you very much! I've had this screen for ages and this is the best handy approachable guide i've found. Cheers!
thanks you, I tought that my screen it was broken... thanks a lot 😆
Thanks for the good video. You saved me a lot of time and effort trying to get this screen working correctly.
If you want audio but it's disabled, enter "dtparam=audio=on" into the config.txt without quotes. I was able to achieve audio output through the Raspberry Pi's (I have the 2B+ model) audio jack.
Much appreciated. This saves a lot of digging around.
Just a heads up...
For those of you who have moved your OS to an USB external drive, or USB flash drive, you'll need to edit the commandline.txt file that is in the LCD_Show folder and replace root=/dev/mmcblk0p2 to whatever your device is (mine is root=/dev/sda2)
If you don't do this BEFORE you run LCD5-show, you will NOT be able to boot, and you will need to pull the sd-card and fix it in another system.
Other than that, great video, and should work for people using SDcard for their OS
BTW, there is now a NEW driver for jessie
how do we know whats are device name? im running Kali on my raspberry pi 3 and im stuck on the kernel! please help
Should add that if a mistake is made while adding the changes to the config.txt file and can no longer boot up the os the boot into recover and you can correct the change there by selecting os and clicking the edit config.txt button at the top.
Dude...this saved my life...thanks..great tutorial..
best tutorial ever. nice job mate
THANKS A TONNN MATE !!!!!!!! THANK YOU SOOOO MUCH!!
Thank You!!!! Very good tutorial. It was working in no time! I applaud you!
for anyone having any issues just install lubuntu from ubuntu flavour maker and install it on pi2 or pi3 and get the latest drivers from the link given in the description. it will work flawlessly without any issues. also lubuntu is better than raspbian.
Great tutorial , did as per the vid and got everything up and running....cheers
Mine installed fine on RPI 2 with Jessie all commands worked great but after I go to calibrate and then touched the 4 calibrations points the calibration is still off to the bottom right every time even though I was very accurate. Any ideas please? Really appreciated as used for home automation server and need to keep an eye on things.
Thanks , I found the screen works well with the pen but not by the touch of a finger. Is it the same for others?
Great job! Only I suggest you should try using the "TAB" key for autocompletion of file names :)
Good tutorial! Couple of extra tips:
The /boot/ partition path is accessible on the SD card in Windows, so if you don't already have a display you can edit the config.txt file there (just be careful to maintain the correct line break characters - use Notepad++ if unsure). Also, in Terminal, if you start typing the first few characters of a path or filename and hit the TAB key, it will autocomplete it for you.
And quick question - are the GPIOs still accessible?
Some of the GPIO's are used for the touchscreen, but some are left unused.
I'll check out what pins are actually used by the screen and post an update.
+Darian Cabot
The GPIO socket on the screen uses the first 26 pins on the GPIO header. I'll have to dig further to see how many are actually used, but the socket on the screen is broken out to labelled solder pads (they look like they are arranged to suit a surface mount header) so it is possible to solder some jumper wires or a header onto these pads to use them if needed.
+TERRAOperative ok, that that's cool. The screen module's obviously getting it's power from the GPIO and I'm guessing touch input might be via the SPI or I2C communications.
+Darian Cabot
The power is definitely from the GPIO (and there is also a micro USP port for power on the LCD PCB for powering it if you aren't using the raspi).
The screen drivers activate the SPI bus setting in the config.txt, so that's how it's communicating.
Here's the info on the pinout, looks like most of the pins aren't used and are just passed through to the breakout pads.
www.wvshare.com/product/5inch-HDMI-LCD.htm
I recommend installing the drivers Before rebooting. I rebooted after changing the config.txt file and crashed the platform. All I got was a white screen. I'll give it another try keeping this in mind.
Great, works with Ubuntu Mate, couple of minor changes, path has username in it instead of "pi" and the touchscreen calibration menu item ends up in the control panel. Also the download location is slightly different and the link is on a different part of the page now.
I'm using a RPi 2 B and this isn't working for me. I installed everything, rebooted, etc, it's plugged in correctly, but when I run the calibration, I am not getting any touch. I am using the provided stylus, even. The screen works fine, but do you have any idea why the touch isn't working? Is this not designed for the Pi I have?
How bright is this display? Readable in direct sunlight?
Mine rebooted and now is stuck at the multi-color screen. You know how after the reboot, a full screen multi-color blob is stuck on the screen. My large monitor, that is. It still shows nothing on my 5 inch LCD display.
Please help me!
I got (from Xinput): min_x=117, max_x=3992 and min_y=3743, max_y=156
and still the touch function didnt' work, I'm using XPT2046 in RPi 4 Model B.
TIA
Mate you are a legend, thank you so much
Regards
Dave.
Hi, thanks for solving my problem, I got to work my screen prefectly!
soooo we put the code in for the Pi screen boot config.txt and now the screen is unreadable in terms of what is actually on it.. any ideas on how to fix this?
I want to use this touchscreen for my Volumio Projekt, i can use ist, and the touch work, but i cant calibrate it.
Thanks for this great tutorial! Worked like a charm on my Pi1 with jessie and the 5inch HDMI LCD V2 - XPT2046 Display! On the Pi one with my LCD i cant use the HDMI Adapter which was included. The Ports are not on the same height....
it worked like a charm...thank u sir!!
hi where did u got the file?
it is no longer in the wiki and i can't find it any where else
I also have a similar touchscreen( 7 inch ) is there a way to control its brightness?
why do i get the error saying unknown option after i type the last step? tried this for hours today
does the touch screen can work with only human finger?
after i installed the driver and restarted my raspberry pi would not load beyond the weird script sceen as the pi is loading
I have 7 inch hdmi resistive display of waveshare .but it's touch not working in gud manner , when I go from left to right ..cursor comes from top to bottom. I tried so many ways but it's not solved..plz help me...it's too frustrating ..thanks in advance
omg thank you so muuch i thought id spend money for nothing but thanks to you good sir it works :)
There's also a new official capacitive multi touch lcd shield on the way for the rpi. Just saw it on Engadget the other day. Wonder if the setup is similar. Krish.
Thanks for a very useful tutorial.
How is the display turned on/off? I am thinking about moving the raspberry into a 19" rack with a display for my house automation. However I wouldn't want that the display is on the whole time due to its power consumption.
Best would be if the display dims or goes into standby mode and goes on again at an touch event.
Is that possible with that display, did you try that?
+Joerg Zdarsky The OS on the raspberry pi can be set to turn the screen off just like any other screen.
There is also a switch on the side that you can use to manually turn it on and off IIRC.
after the installation of Ubuntu mate on the touch screen appeared a black stripe, and the touch screen is also not working,how to fix it,lside 5 inch screen how to fix????
thanks this video was really helpful
thanks this was exactly what i was looking for :)
Thanks, got the screen working but I has vertical lines going through it....any thoughts?
How would you rotate this screen 90 degrees?
im getting an error where it says no calibratable devices found
It worked thank you
great video mate, helped heaps
Thank You, was really struggling to follow other instruction, but this helped me out a lot :-)
+XspiritofmozartX Awesome, good to hear that others can understand my ramblings! :D
How do I undo this to fit my monitor 1920x1080?
It work with Raspberry Pi3!
I also had the problem with kernel panic
first I'tried to change the root partition to 6 but it doesn't work. -> here the doc: raspberrypi.stackexchange.com/questions/40854/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block179-6
I have installed NOOBS->Raspian jessie on a Pi 3
BUT my root partition is no. 7 !!!
i do that mate but at start the lcd show me half and then show me all the lcd wyh do this?? ty
You saved my night. thank you million times
it works with Kodi/XMBC too!
rovivocom
had to change mine to 7 also and it finally worked!!! thanks!!!
Perfect instructions. Thank you very much.
my raspi 3 model b is stuck at boot step random non blocking pool is initialized. plz help.
+piyushsohal94 same here, occurs after "sudo ./LCD5-show" when it reboots
Same for me with my Raspberry Pi 3
+piyushsohal94 Did you use the raspberry Pi 3 drivers?
We will be doing an updated guide for the Raspberry Pi 3 sometime soon, so stay tuned!
great tutorial. Thanks
I did the same as you in the config.txt and the recalbox started perfectly. But when I try to start a game, it starts with everything out of frame again. what should I do?
Nice one...thanks mate...working perfectly...great video.
When you download the driver is that how the touch sensor works. You said the screen will work before you download it.
The screen will display video with no drivers needed as it is just a HDMI display.
You need the drivers if you want to use the touch screen function.
Thanks, that's what I was wondering about.
when I do "sudo nano /boot/config.txt" it shows a blank screen without the "#overscan" things somebody please help!
it does work on raspbian. however when i install car pc software in raspbian on the RPI2 the software works bud the touchscreen didn't work anymore and couldn't get it to work anymore. any suggestions?
+lordfrank1 Have you tried doing all the things shown in this video after installing the car PC software?
Wie verbindet beide Display zusammen oder miteinander? Raspberry pi 4
Thanks for the video, my screen finally works fine :)
Do the drivers replace your kernel with a custom one? I need my kernel to be 4.x.x, and my chinese kedei screen drivers come with a custom 3.x.x kernel. Just wasted two days trying to compile a newer version with a diff file they provide, but with no success.
just noticed your LCD is a knockoff. The waveshare site shows your exact device as a knockoff of their screens.
The issue with the waveshare drivers is they don't release the source, so your display will eventually stop working, and you'll be stuck waiting for them to build the new kernel modules for raspbian, and if you're running something else, like OSMC, you won't be able to use the touch capabilities.
Hi,
can you still connect some LEDs or other stuff to GPIO connectors while using touch screen? Thanks!
+vedranart The screen doesn't use all the pins, but the connector covers them, but if you were to solder wires to the back of the PCB (making sure you don't use any associated with the touch screen) it should be fine.
Probably a really dumb question but can you use this screen with the Raspberry Pi3 Model B 1GB RAM Single Board PC Kit ?
It will physically fit, but you'll have to check the manufacturers website I linked to and use the Pi3 drivers instead of the drivers I used.
Everything works fine until I install the drivers with cd ./LCD5-show. Then it takes a while for my pi to reboot, and when it does it goes to a console-esque screen with just a blinking cursor in the top left corner. This is the second time it did it, I had to reformat the mini sd card the first time. Please help!
Thanks for the instructions. All worked well up (I had the issue with the kernel panic but sorted that out with help from the comments below) but now I have issues with calibrating the touch screen, which just wont work. Any ideas?
same problem
@@adosq me too! the first time i installed and touchscreen worked fine. but then y coudnt use any more, so i format the SD card and reintalled all OS. Now, i have the same problem like u guys. did u solved this problem??? if u know pls tell me. tks!
Exactly what I needed! Thanks!!
I follow the instructions exactly, and get an error: "end kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(179,2)
The file exists no more. Does anyone know wäre to find the LCD show file?
Does this work for the 5 inch HDMI LCD (B)?.
I tried doing this but the raspberry pi did not reboot as if the SD card was not connected, I would just get a red power light and had to format the SD card.
Awesome directions! thank you!
I just get a white screen when I try to boot up. (first boot) Both leds are on an don't blink. Any ideas?
+AllenInventions Maybe try it all over from the start, including re-imaging the SD card.
is this combatible with Rasberry PI 3 B+
Does this screen have any sound?
is it possible to run a "desktop" app like musescore,a sheet music editor? I'm asking if that program works well in that reduced display
Thank you. Ok my 5-inch touch screen .
I like the screen but i'm having difficulty installing the drivers. If I follow your instructions it ends up working but the pointer isn't accurate, even after screen calibration. If I install the raspberry image that comes with the drivers it works perfectly. But then the os is a little different and I've tried to install kodi and that didn't work. Using just a raspberry pi image without the touch screen drivers installed I can install kodi. It's all a bit weird. I may try following the waveshare steps and see how it goes. Thanks for posting all the same.
Thank you mate, it works like a charm
For everybody confronted with the "Kernel Panic"-Error on NOOBS: Due to some research I figured out that NOOBS itself is the cause of the problem. If you download the jessie-image and mount it via Win32 manually (faster anyway), everything works fine.
+Trevor Bevan Hi Trevor, you can download the latest jessie-image on the raspberrypi.com/downloads/ site. If you want to use your already used SD-Card, I suggest you download the tool "SDFormatter" and format the card (the tool should explain itself - be carful to format to FAT32). Afterwards download and start the "Win32 Image Writer". Select the downloaded jessie-image on your harddrive, click write - aand done, insert the card back in your pi.
Now do the usual update-stuff (expanding file-system, sudo apt-get update, ...).
Then you need to install the drivers like descriped in the video above. IMPORTANT: There is an additional driver for jessie on the driver website. You need to download that package and the normal package. Afterwards, extract both in the same directory (first the 150620 and afterwards the 151020 so that the old data gets replaced by the new). Installation is analog to the video above.
Unfortunately, I have no clue how the driver works with the pi 3. Could you give some feedback whether it works or not? Would be greatly appreciated :P
Will this tutorial work for the electrow 5" touch screen? They look to be exactly the same,
I'm just having some trouble. When I boot it the display is not formatted correctly and has coloured lines on one side (where the screen isn't being displayed)
I have no ides sorry... Are there any part numbers or similar you can google to track down if there are specific drivers to your screen?
I had this issue how I resolved it was to run power source to the pi and a power source to the screen. So you need to power cords.
Why am i not able to access the whole screen for display? I am not getting the whole 5 inch display. Please post a solution for this.
Thanks for a very helpful video though.
The link to WaveShare doesn't seem to be working! Any other place to get the drivers
My bad folks! Even after checking my typing I still discovered I had fat fingered the URL! It really is working!!
thanks for this video... able to resolve my issues for the touchscreen... thanks to JUSTIN WAGG also for sharing.... after changing the settings , able to function the touchscreen.... i'm using NOOBS... had edited "cmdline.txt" file... from "root=/dev/mmcblkop2" - "root=/dev/mmcblkop7" ...thats it...
I can’t find the lcd show download
Is this necessary if I just want to connect to windows 10 to use as another small monitor?
Nope, if you just want a monitor, all you have to do is supply 5v and then hook up the HDMI.
As for the touch function, I'm not sure how to get that working under windows sorry...
i know this has probably been asked but Can i use the screen as a pc monitor? as plug the hdmi in and I'm guessing the micro USB is power in?, i was to only use the screen in a pc case mod.
Certainly can. All you need to do is hook the HDMI up to your PC, then supply 5v through the micro USB connector. Maybe you can find a Molex to micro USB adapter to power it.
The touch screen function won't work though...
You could probably find a non-touchscreen version for a cheaper price though.