Zum Inhalt springen

WSAL15811 – 3.5inch RPi LCD (C)/en

Aus JW Tech Wiki

Documentation notice: This technical documentation was independently rewritten from an archived supplier source. Check technical details and commands against the product version and manufacturer documentation before use.

Summary

The Waveshare 3.5-inch resistive touch display (C) connects via the GPIO header of a Raspberry Pi and provides a 480×320 resolution with a 125 MHz SPI clock rate.

Related products at JW Tech

Technical overview

  • Resolution: 480 × 320 pixels
  • Connection: 26-pin plug onto the 40-pin GPIO header of the Raspberry Pi
  • Interface: High-speed SPI at 125 MHz clock frequency
  • Touch type: Resistive touch (ADS7846-based)
  • Compatibility: Plugs directly into any Raspberry Pi (Pi 3/4/5)
  • Same physical size as Raspberry Pi 3/4/5
  • Driver support for Raspberry Pi OS, Ubuntu, Kali and Retropie
  • FBCP software driver allows setting software resolution and dual-screen operation

Commands and examples – verify before use: 

sudo apt-get install unzip -y
sudo apt-get install cmake -y
wget https://files.waveshare.com/wiki/common/Waveshare35c.zip
unzip ./Waveshare35c.zip
sudo cp waveshare35c.dtbo /boot/overlays/
sudo nano /boot/firmware/config.txt
dtparam=spi=on
dtoverlay=waveshare35c
hdmi_force_hotplug=1
max_usb_current=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 480 320 60 6 0 0 0
hdmi_drive=2
display_rotate=0
sudo nano ~/.bash_profile
export FRAMEBUFFER=/dev/fb1
startx 2> /tmp/xorg_errors
sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.~
Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "true"
EndSection
sudo raspi-config nonint do_boot_behaviour B2
sudo raspi-config nonint do_wayland W1
sudo reboot
sudo apt-get install xserver-xorg-input-evdev
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
sudo apt-get install xinput-calibrator
sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3932 300 294 3801"
Option "SwapAxes" "1"
Option "EmulateThirdButton" "1"
Option "EmulateThirdButtonTimeout" "1000"
Option "EmulateThirdButtonMoveThreshold" "300"
EndSection
libcamera-hello --qt-preview

Notes and version constraints

  • The calibration values listed in the source (3932 300 294 3801) are device-specific and must be verified before use.
  • The auto-login process requires the username to be 'pi'; otherwise auto-login will not work.
  • After completing all configurations, system restarts take longer and SSH takes a moment to connect.
  • The driver file is downloaded from an external URL; ensure the file was downloaded intact.
  • Different Raspberry Pi OS versions (Trixie, Bookworm, Bullseye, Buster) require different configuration approaches; the correct procedure depends on the installed system version.

Source and revision record