Joy-it RB-TFT3.2 Manuale utente

3
3.2“ / 3.5“ Touch-Display
for Raspberry Pi

Published: 16.08.2019 Copyright by Joy-IT 3
3.2“ / 3.5“ Touch-Display
Dear customer,
Thank you very much for choosing our product.
In the following we will show you what has to be observed during commissioning and use. Should you
encounter any unexpected problems during use, please feel free to contact us.
Plug the 3.2"/3.5" TFT display onto the Raspberry Pi so that it is plugged onto the rst 26 pins of the GPIO
connector. Aer that the backlight of the display should already light up.
1. OVERVIEW
3.2“ Display 3.5“ Display
Controller XPT2046
Resoluon 320x240 480x320
Colors 65.536
2. CONNECTION

Published: 16.08.2019 Copyright by Joy-IT 4
3.2“ / 3.5“ Touch-Display
Install the FBTFT image on your SD card using the "Win32 Disk Imager" program, which you can download
from the following links:
For RB-TFT3,2 ": Downloads 3,2" display
For RB-TFT 3.5 ": Downloads 3.5" display
3. INSTALLING THE SOFTWARE

Published: 16.08.2019 Copyright by Joy-IT 5
3.2“ / 3.5“ Touch-Display
Manuelle Installation
Do you already use another Raspbian Jessie Image and want this with the 3.2 "/3.5"
Extend touchscreen TFT, then you can install the FBTFT modules later on your system. For this the le
"cong.txt" has to be edited rst.
Open a terminal window on your Raspberry Pi and follow the instrucons:
Depending on your display, add the following lines at the beginning of the opened le:
For the 3.2 "TFT:
For the 3.5 "TFT:
For the Raspberry Pi4 an extra adjustment has to be done. To do this, the command dtoverlay = vc4-ms-
v3d has to be commented out in the cong.txt under the point [pi4], this should look like this:
sudo nano /boot/config.txt
dtparam=spi=on
dtoverlay=joy-IT-Display-Driver32b-overlay:rotate=270,swapxy=1
dtparam=audio=on
max_usb_current=1
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_drive=1
hdmi_ignore_edid=0xa5000080
dtparam=spi=on
dtoverlay=joy-IT-Display_Driver35a-overlay:rotate=270,swapxy=1
dtparam=audio=on
max_usb_current=1
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_drive=1
hdmi_ignore_edid=0xa5000080
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
#
#dtoverlay=vc4-fkms-v3d <---- This setting must be commented out with a #
max_framebuffers=2

Published: 16.08.2019 Copyright by Joy-IT 6
3.2“ / 3.5“ Touch-Display
Now save the le with the key combinaon CTRL + O, conrm with Enter and leave the editor with the
combinaon CTRL + X. Now the le "cmdline.txt" has to be edited:
In this case, the following command must be added at the end of the already exisng rst line:
Save the le, exit the editor and create the le "99-calibraon.conf":
The following lines must be added to the le:
This le is also terminated and saved with "Ctrl + X" followed by "Y" and "Enter". Finally, the le "/usr/
share/X11/xorg.conf.d/99-turbo.conf" has to be edited. To do this, enter the following command:
And change the following line there ...
... so that you change "0" to "1" and the line looks like this:
This le is also terminated and saved with "Ctrl + X" followed by "Y" and "Enter".
sudo nano /boot/cmdline.txt
fbcon=map:10
sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "160 3723 3896 181"
Option "SwapAxes" "0"
EndSection
sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Option "fbdev" "/dev/fb0"
Option "fbdev" "/dev/fb1"

Published: 16.08.2019 Copyright by Joy-IT 7
3.2“ / 3.5“ Touch-Display
Now the required "drivers" are downloaded and installed. Here, the Raspberry Pi must be connected to
the Internet. Enter each of the following three commands in the console and conrm each with "Enter".
Commands for the 3.2 "LCD:
Commands for the 3.5 "LCD:
Now you have to install a package for the touch funcon and copy a le:
Restart your Raspberry Pi now:
At the edge of the 3.2 "display are also three buons.
These can be controlled and used via the GPIO.
When pressing a buon, the applied signal is pulled to ground (Acve_LOW).
The buons are connected as follows:
cd /tmp
wget anleitung.joy-it.net/upload/joy-IT-Display-Driver-32b-overlay.dtb
sudo cp joy-IT-Display-Driver-32b-overlay.dtb /boot/overlays/joy-IT-Display-Driver-
32b-overlay.dtbo
cd /tmp
wget anleitung.joy-it.net/upload/joy-IT-Display_Driver-35a-overlay.dtb
sudo cp joy-IT-Display_Driver-35a-overlay.dtb /boot/overlays/joy-IT-Display_Driver-
35a-overlay.dtbo
4. VERWENDUNG DER KNÖPFE
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
TFT Raspberry Pi
Key 1 GPIO12
Key 2 GPIO16
Key 3 GPIO18

Published: 16.08.2019 Copyright by Joy-IT 8
3.2“ / 3.5“ Touch-Display
Calibraon for the 3.2 "display:
If calibraon of the touchscreen is necessary, this can be done with the following
Steps are performed. First, the calibraon tool needs to be downloaded.
To do this, open a terminal window and enter the following command:
Now restart your Raspberry Pi so that the touch display is recognized correctly:
Now the calibraon can be started with the following command:
There are now four consecuve points lit, which must be pressed to calibrate the display. Subsequently,
four calibraon values are output in the terminal. To save the calibraon, the seng must be saved to a
le.
Create a new folder:
Now create the le in which the sengs must be saved:
The entry should look like the following example (the values aer "Calibraon" may dier from your
values):
5. TOUCHSCREEN KALIBRIERUNG
sudo apt-get install -y xinput-calibrator
DISPLAY=:0.0 xinput_calibrator
sudo reboot
sudo mkdir /etc/X11/xorg.conf.d
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "171 3720 3899 196"
Option "SwapAxes" "0"
EndSection

Published: 16.08.2019 Copyright by Joy-IT 9
3.2“ / 3.5“ Touch-Display
Calibraon for the 3.5 "display:
If calibraon of the touchscreen is necessary, this can be done with the following
Steps are performed. First, the calibraon tool needs to be downloaded.
To do this, open a terminal window and enter the following command:
Now restart your Raspberry Pi so that the touch display is recognized correctly:
Now the calibraon can be started with the following command:
There are now four consecuve points lit, which must be pressed to calibrate the display. Subsequently,
four calibraon values are output in the terminal, which are stored in the le
"99-calibraon.conf" must be entered.
Open the le:
Enter the values in the following line here:
"MinX" corresponds to the rst value, "MaxX" to the second value, "MinY" to the third value, and "MaxY"
to the fourth value. Aer saving the le and reboong, the new calibraon data will be applied.
5. TOUCHSCREEN KALIBRIERUNG
sudo apt-get install -y xinput-calibrator
DISPLAY=:0.0 xinput_calibrator
sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf
“Option "Calibration" "215 3947 3901 244"
sudo reboot

Published: 16.08.2019 Copyright by Joy-IT 10
3.2“ / 3.5“ Touch-Display
In order to be able to output the image signal simultaneously on the TFT display and on the HDMI output,
addional steps must be carried out. The rst step is to compile and install the Framebuer-Copy program
using the following commands.
For the program to start when boong up the Raspberry Pi, this must be in the le
"/Etc/rc.local" will be added.
Add here before statement "exit 0" a new line with the following content:
Now, in the "/boot/cong.txt" following text block under the previously added sengs, starng on the
following page, must be added.
In this, the resoluon, which is output from HDMI and Display, can be adjusted by commenng out the
respecve triple block of "hmdi_group", "hdmi_mode" and "hdmi_cvt":
(In the following example, the resoluon is 800x600 default)
6. GLEICHZEITIGE VERWENDUNG VON LCD UND HDMI
cd /tmp
sudo apt-get install -y cmake
git clone https://github.com/tasanakorn/rpi-fbcp
mkdir -p rpi-fbcp/build
cd rpi-fbcp/build
cmake ..
make
sudo install fbcp /usr/local/bin/fbcp
sudo nano /etc/rc.local
fbcp &
Altri manuali per RB-TFT3.2
1
Questo manuale è adatto per i seguenti modelli
1
Indice
Altri manuali Joy-it Monitor

Joy-it
Joy-it RB-LCD5 Manuale utente

Joy-it
Joy-it 84X48 LCD DISPLAY Manuale utente

Joy-it
Joy-it RB-LCD-16x2 Manuale utente

Joy-it
Joy-it RB-LCD10-2 Manuale utente

Joy-it
Joy-it LCD 128X64 Manuale utente

Joy-it
Joy-it RB-TFT1.8 Manuale utente

Joy-it
Joy-it RB-LCD-10B Manuale utente

Joy-it
Joy-it SBC-LCD01 Manuale utente

Joy-it
Joy-it VIEW 15 Manuale utente

Joy-it
Joy-it RB-LCD-16x2 Manuale utente























