OctoPrint: Waveshare LCD + Raspberry PI 4
Leave a commentAugust 11, 2020 by aubreykloppers
NOTE: DO NOT UPDATE RASPBERRY PI OS UNLESS YOU KNOW THE UPDATE TO WORK. AS OF TODAY (11/08/2020) THE UPDATING OF THE OS MAKES THE LCD USELESS
Getting OctoPrint on a Raspberry Pi 4b working is easy, getting a cheap chinx Touch Screen LCD (WaveShare 3.5″ touch LCD) working, is another story. Here follows my endeavors and recipe:
- Flash with OctoPi 0.17.0 image
- Burn to SD using Etcher
- Edit the “config.txt” file on the root of the SD Card with Notepad and add:
dtoverlay=piscreen,speed=16000000,rotate=90 # dtoverlay=ads7846,speed=500000,penirq=17,swapxy=1
- Assemble the LCD/RPi and boot.
- Open OctaPrint web-page and update.
- Install Plugin TouchUI
- Install LCD-show:
# git clone https://github.com/waveshare/LCD-show.git
# cd LCD-show/
# ./LCD35C-show
# git clone https://github.com/BillyBlaze/OctoPrint-TouchUI-autostart.git ~/TouchUI-autostart/
# sudo ~/TouchUI-autostart/helpers/install
# sudo vi /etc/default/touchui
DISABLE_SCREENSAVER=true
# sudo reboot
This should give a fully working Raspberry PI with a TouchScreen.
Links:
- https://www.balena.io/etcher/
- https://octoprint.org/download/
- https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(C)
- https://www.raspberrypi.org/products/raspberry-pi-4-model-b/
- https://community.octoprint.org/t/octoprint-raspberry-pi-4-3-5-touchscreen-configuration-raspbian-buster-goodtft-waveshare-xpt2046/13254
Final note: I have been able to run a Logitec Webcamera (a really old ball-type, not supported) with the following commands:
# sudo apt install fswebcam
# sudo usermod -a -G video pi
http://<IP>/webcam/?action=stream
I was also able to access the camera through OctoPrint…
Link: