Joy-it RB-TFT3.5 User manual

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

Published: 29.11.2018 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: 29.11.2018 Copyright by Joy-IT 4
3.2“ / 3.5“ Touch-Display
Install the FBTFT image on your SD card with the help of the „Win32 Disk Imager“ program, which can be
downloaded from the following links:
• 3,2“ LCD Image-Download
• 3,5“ LCD Image-Download
Alternave download links:
• 3,2“ LCD Image-AlternaveDownload
• 3,5“ LCD Image-AlternaveDownload
Are you already using another Raspbian Image and would like to use it with the 3.2"/3.5" touchscreen-
TFT, then you can install the FBTFT modules on your system aerwards. To do this, the "cong.txt" le
must rst be edited. Open a terminal window on your Raspberry Pi and follow the instrucons:
Depending on your display, add the following lines to the end of the opened le:
For the 3.2“ TFT:
For the 3.5“ TFT:
3. INSTALLING THE SOFTWARE
sudo nano /boot/config.txt
dtparam=spi=on
dtoverlay=joy-IT-Display-Driver32b-overlay:rotate=270,swapxy=1
dtparam=spi=on
dtoverlay=joy-IT-Display_Driver35a-overlay:rotate=270,swapxy=1

Published: 29.11.2018 Copyright by Joy-IT 5
3.2“ / 3.5“ Touch-Display
Now save the le with the key combinaon CTRL+O, conrm with Enter and exit the editor with the
combinaon CTRL+X. Now the le "cmdline.txt" must be edited:
The following command must be added to the end of the rst line:
Save the le, quit the editor and create the le "99-calibraon.conf":
The following lines must be added to the le:
This le can now also be saved and exited. Now edit the le "99-tubro.conf":
Change the following line,...
... so that you change "0" to "1" and the line looks like this:
Save and exit the le.
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" "1"
Option "TransformationMatrix" "1 0 0 0 -1 1 0 0 1"
EndSection
sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Option "fbdev" "/dev/fb0"
Option "fbdev" "/dev/fb1"

Published: 29.11.2018 Copyright by Joy-IT 6
3.2“ / 3.5“ Touch-Display
Now the required drivers have to be downloaded and installed. Please note that the following commands
dier for the dierent displays:
Commands for the 3.2" LCD:
Commands for the 3.5" LCD:
Now restart your Raspberry Pi:
On the edge of the 3.2" display there are three addional buons.
These can be controlled and used via the GPIO.
When a buon is pressed, 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. USING THE BUTTONS
TFT Raspberry Pi
Taste 1 GPIO12
Taste 2 GPIO16
Taste 3 GPIO18
sudo reboot

Published: 29.11.2018 Copyright by Joy-IT 7
3.2“ / 3.5“ Touch-Display
If a calibraon of the touch screen is necessary, this can be done with the following
steps can be performed. First the calibraon tool must be downloaded.
Open a terminal window and enter the following command:
Now the calibraon can be started with the following command:
Now four points light up one aer the other, which must be pressed to calibrate the display. Then four
calibraon values are output in the terminal, which must be entered into the le "99-calibraon.conf".
Open the le:
Enter the values in the following line:
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 restarng, the new calibraon data are accepted.
5. TOUCHSCREEN CALIBRATION
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" "160 3723 3896 181"

Published: 29.11.2018 Copyright by Joy-IT 8
3.2“ / 3.5“ Touch-Display
In order to be able to output the picture signal simultaneously on the TFT display and on the HDMI
output, addional steps must be completed. In the rst step, the program "Framebuer-Copy" must be
compiled and installed using the following commands.
So that the program can start when the Raspberry Pi is started, it must be added to the le "/etc/rc.local".
Add a new line with the following content before the statement "exit 0":
Now the following text block must be added to the "/boot/cong.txt" - in this the resoluon, which is
output by HDMI and Display, can be set, by commenng out the respecve block of three from
"hmdi_group", "hdmi_mode" and "hdmi_cvt":
(In the following example the resoluon 800x600 is preset)
6. SIMULTANEOUS USE OF LCD AND 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 &

Published: 29.11.2018 Copyright by Joy-IT 9
3.2“ / 3.5“ Touch-Display
For 4:3 resoluons:
hdmi_ignore_edid=0xa5000080
hdmi_force_hotplug=1
###########################################################################
#### Aufloesungseinstellungen - betreffende Gruppe muss aukommentiert werden ####
##### 4:3 ######
## Einstellungen für 320x240 (native Aufloesung des 3.2"TFT-Displays) ##
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt=320 240 60 1 0 0 0
## Einstellungen für 640x480 ##
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt=640 480 60 1 0 0 0
## Einstellungen für 720x540 ##
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt=720 540 60 1 0 0 0
## Einstellungen für 800x600 ##
hdmi_group=2
hdmi_mode=87
hdmi_cvt=800 600 60 1 0 0 0
## Einstellungen für 1024x768 ##
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt=1024 768 60 1 0 0 0
################################

Published: 29.11.2018 Copyright by Joy-IT 10
3.2“ / 3.5“ Touch-Display
For 16:9 resoluons:
The last step is to edit the le "/usr/share/X11/xorg.conf.d/99-calibraon.conf" again. Open the le with
the following command:
And change the following line...
..., so that you change "1" to "0" again, as in the original state (this is mandatory in framebuer copy
mode):
hdmi_ignore_edid=0xa5000080
hdmi_force_hotplug=1
###########################################################################
#### Aufloesungseinstellungen - betreffende Gruppe muss aukommentiert werden ####
##### 16:9 #####
## Einstellungen für 1280x720 ##
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt=1280 720 60 3 0 0 0
## Einstellungen für 1600x900 ##
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt=1600 900 60 3 0 0 0
## Einstellungen für 1920x1080 ##
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt=1920 1080 60 3 0 0 0
###############################
sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Option "fbdev" "/dev/fb1"
Option "fbdev" "/dev/fb0"

Published: 29.11.2018 Copyright by Joy-IT 11
3.2“ / 3.5“ Touch-Display
Symbol on electrical and electronic equipment
This crossed-out dustbin means that electrical and electronic appliances do not belong in the household
waste. You must return the old appliances to a collecon point. Before handing over waste baeries and
accumulators that are not enclosed by waste equipment must be separated from it.
Return opons
As an end user, when you purchase a new device, you can return your old device (which essenally fulls
the same funcon as the new one purchased from us) free of charge for disposal. Small appliances with
no external dimensions greater than 25 cm can be disposed of in normal household quanes
independently of the purchase of a new appliance.
Possibility of return at our company locaon during opening hours
Simac GmbH, Pascalstr. 8, D-47506 Neukirchen-Vluyn
Possibility of return near you
We will send you a parcel stamp with which you can return the device to us free of charge. Please contact
us by e-mail at Service@joy-it.net or by telephone.
Informaon on packaging
If you do not have suitable packaging material or do not wish to use your own, please contact us and we
will send you suitable packaging.
7. INFORMATION- AND TAKE-BACK OBLIGATIONS

Published: 29.11.2018 Copyright by Joy-IT 12
3.2“ / 3.5“ Touch-Display
We are also there for you aer the purchase. If you sll have quesons or problems, we are also available
by e-mail, telephone and cket support system.
E-Mail: service@joy-it.net
Ticket-System: hp://support.joy-it.net
Phone: +49 (0)2845 98469 – 66 (9:30 - 17:00 o‘clock)
For further informaon please visit our website:
www.joy-it.net
8. SUPPORT
Other manuals for RB-TFT3.5
1
This manual suits for next models
1
Table of contents
Other Joy-it Touch Panel manuals