-
Notifications
You must be signed in to change notification settings - Fork 41
Waveshare 800x480 HDMI+Touchscreen display not working (includes FULL setup instructions!) #44
Comments
Since you are using the HDMI output you can use the standard settings in Raspbian, and thus you can comment out lines 97 - 103 in OctoPiPanel.py. You make a comment of an entire line by adding a # in the beginning of the line. I just tested this and it seems to be working fine. |
These are lines 97 through 103:
I don't think that's what you meant, so I commented this instead:
I ran the program again. This time, a tiny window showed up on the LCD screen for a couple seconds. Then, the program crashed with this output:
I have this in OctoPiPanel.cfg:
OctoPrint is running, connected to the printer, able to cause the heaters to turn on and the machine to home and move around, so all that seems to be okay. In summary, the window is very tiny even though the window_width|height are set, and it crashes after a couple of seconds. Any help you can give would be greatly appreciated. I'm eventually going to roll all this into a tutorial for getting OctoPrint + OctoPiPanel set up on a Raspberry Pi 3 with this particular screen, and I will credit you for your help. |
You must use the devel-branch of OctoPiPanel. Clone the devel-branch and then follow my previous instructions. |
It works perfectly on the devel branch. Thank you very much! :) |
After a lot of research into making the touch input work, I discovered that it's not necessary to use the Waveshare drivers at all. The kernel they give you doesn't have any drivers that don't already come with Raspbian! This is particularly good news if you have a Pi Zero or 3, for which no drivers have yet been released. The touchscreen I linked above is either a Waveshare 5" (B) LCD touchscreen, or a knockoff that uses an identical silkscreen on the board. This thread has info on what configuration values to use, and where to put them. Below is a simplified version of that, without any stuff you don't need on a Pi 3. This may also work on a Pi Zero, but I don't have one to test it on. Hopefully, this info will be useful to others who might be searching for a solution. It took hours to find across that thread, which had all the information in one place, including the elusive In /boot/config.txt:
If you want to test without editing /boot/config.txt and rebooting, you can do this instead:
However, using the modprobe solution means you have to download and build the RPi Linux kernel, which takes hours to run, and then build ( According to the fb-tft tools wiki entry for the ADS7846, you can examine pressure events like this: To read position events: The following is adapted from CircuitBasics' Raspberry Pi Touchscreen Calibration and Screen Rotation tutorial. To calibrate the screen:
Now you should see the calibration screen, which is mostly black with some text and a crosshair in the top right corner. It will ask you to tap in four corners, then the center. For accuracy, use the stylus or the rounded point of a pen cap. The calibration program will then dump a bunch of numbers to the console, and write them to You can then test the calibration by running Reboot the Pi, then do this:
If that works, you're all ready to go. You can run octopi_panel, press buttons, watch the machine home and see the heaters turn on, etc. |
Thank you for this! I have the same screen my self for other uses but have not come around to making the touch work as it should. This will be very helpfull! |
Hi Came across this thread and am hoping the tutorial is coming along well. Im sure many like myself will be helped by a good tutorial |
@PhilMaddox |
@626Pilot |
Thank you for your detailed description. There is one little thing I want to add: It is important that the audio-signal is not sent to the display via HDMI as this results (at least for my device) in some displacement and colored lines on the top and left of the display. According the waveshare documentation, one should add
to the That fixes the issue for my device. |
This is the display.
I have it set up on a Raspberry Pi 3 running Python 2.7. git pull states that OctoPiPanel is up-to-date. It displays the console correctly (right resolution, no weird bars on the side, etc.) OctoPrint and the webcam interface are both working fine, although it took some hours to set them all up. (The nightly build appears to just be a stock Raspbian Jessie image with OctoPrint, etc. copied in, but not actually set up, or any of the dependencies downloaded.)
On trying to start OctoPanel:
I tried setting SDL_FBDEV to /dev/fb0 (which does exist), but that didn't help.
This machine doesn't have X-windows installed. Is that an issue?
The text was updated successfully, but these errors were encountered: