This 3.5 inch TFT LCD touchscreen module connects directly to the Raspberry PI. The resolution is 320x480. This display has been tested with the latest version of Raspbian. The installation instructions are below.
Specifications
LCD Type |
TFT |
LCD Interface |
SPI |
Touch Screen Type |
Resistive |
Touch Screen Controller |
XPT2046 |
Colors |
65536 |
Backlight |
LED |
Resolution |
320*480 (Pixel) |
Aspect Ratio |
2:03 |
Power Consumption |
TBD |
Backlight Current |
TBD |
Operating Temp. (℃) |
TBD |
Interface
PIN NO. |
SYMBOL |
DESCRIPTION |
1, 17 |
3.3V |
Power positive (3.3V power input) |
2, 4 |
5V |
Power positive (5V power input) |
3, 5, 7, 8, 10, 12, 13, 15, 16 |
NC |
NC |
6, 9, 14, 20, 25 |
GND |
Ground |
11 |
TP_IRQ |
Touch Panel interrupt, low level while the Touch Panel detects touching |
18 |
LCD_RS |
Instruction/Data Register selection |
19 |
LCD_SI / TP_SI |
SPI data input of LCD/Touch Panel |
21 |
TP_SO |
SPI data output of Touch Panel |
22 |
RST |
Reset |
23 |
LCD_SCK / TP_SCK |
SPI clock of LCD/Touch Panel |
24 |
LCD_CS |
LCD chip selection, low active |
26 |
TP_CS |
Touch Panel chip selection, low active |
The reference instructions were on the right track, however not complete.
Reference instructions: [https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=178443]
The following instructions worked for a Raspberry PI 3 with Raspbian installed.
Assumptions: basic cli navigation knowledge, ssh enabled, have networking enabled, are connected to the internet and have latest version of Raspbian as of May 2017.
sudo raspi-config
Navigate to 5 Interfacing options
and enable SPI (P4 SPI
)sudo reboot
sudo apt-get update
sudo apt-get upgrade
sudo reboot
sudo nano /boot/config.txt
Add this line to the bottom of the file:dtoverlay=piscreen,speed=16000000,rotate=270
Save and exit
sudo apt-get install fbi
sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
ChangeOption "fbdev" "/dev/fb0"
toOption "fbdev" "/dev/fb1"
Save and exit
sudo nano .config/lxsession/LXDE-pi/touchscreen.sh
Add the following lines to the touchscreen.sh file
DISPLAY=:0 xinput --set-prop 'ADS7846 Touchscreen' 'Evdev Axes Swap' 0
DISPLAY=:0 xinput --set-prop 'ADS7846 Touchscreen' 'Evdev Axis Inversion' 0 1
Save and exit
Change the file permissionssudo chmod a+x .config/lxsession/LXDE-pi/touchscreen.sh
Run the script at startupsudo nano .config/lxsession/LXDE-pi/autostart
Insert the following after @pcmanfm --desktop --profile LXDE-pi
but before @xscreensaver -no-splash
:@lxterminal -e .config/lxsession/LXDE-pi/touchscreen.sh
Save and exit
sudo apt-get install xinput
sudo reboot
The following instructions worked for a Raspberry PI 4 with Raspbian installed.
Assumptions: basic cli navigation knowledge, ssh enabled, have networking enabled, are connected to the internet and have latest version of Raspbian. Tested on November 202.
sudo raspi-config
Navigate to 5 Interfacing options
and enable SPI (P4 SPI
)sudo reboot
sudo apt-get update
sudo apt-get upgrade
sudo reboot
Get the Configuration Script
sudo rm -rf LCD-show git clone https://github.com/goodtft/LCD-show.git chmod -R 755 LCD-show cd LCD-show/ sudo ./LCD35-show
sudo reboot