4DPi-32
DATASHEET
3.2” Primary Display for the Raspberry Pi
Document Date: 9
th
September 2014
Document Revision: 1.2
Uncontrolled Copy when printed or downloaded.
Please refer to the 4D Systems website for the latest Revision of this document
Contents
1. Description ............................................................................................................................. 3
2. Features ................................................................................................................................. 3
3. Pin Configuration and Summary .............................................................................................. 4
4. Connecting the Display to the Pi .............................................................................................. 6
4.1. Hardware Connection ............................................................................................................................ 6
4.2. Software Download / Installation .......................................................................................................... 6
4.3. Calibrating the Touch Screen ................................................................................................................. 7
4.4. Change the Display Orientation ............................................................................................................. 8
4.5. Change the SPI Freq and Compression .................................................................................................. 8
4.6. Backlight Control .................................................................................................................................... 8
4.7. Parameters Listing .................................................................................................................................. 9
4DPi-32 Primary Display – Raspberry Pi
5. Notes ................................................................................................................................... 10
6. Scribble Box.......................................................................................................................... 10
7. Mechanical Details ............................................................................................................... 11
8. Schematic Diagram ............................................................................................................... 12
9. Specifications and Ratings ..................................................................................................... 13
10. Legal Notice ........................................................................................................................ 14
11. Contact Information............................................................................................................ 14
4D SYSTEMS
4DPi-32 Primary Display – Raspberry Pi Compatible
1. Description
The 4DPi-32 is a 3.2” Primary Display for the
Raspberry Pi*, which plugs directly on top and
displays the primary output like what is normally
sent to the HDMI or Composite output. It features
an integrated Resistive Touch panel, enabling the
4DPi-32 to function with the Raspberry Pi without
the need for a mouse.
Communication between the 4DPi-32 and the
Raspberry Pi is interfaced with a high speed 48Mhz
SPI connection, which utilises an on-board
processor for direct command interpretation and
SPI communication compression, and features a
customised DMA enabled kernel. This combination
allows this display to output 25FPS when
displaying a typical image/video, and can achieve
higher depending if the image can be compressed.
The 4DPi-32 is designed to work with the Raspbian
Operating System running on the Raspberry Pi, as
that is the official Raspberry Pi operating system.
The 4DPi-32 features a breakout header (P2),
which enables all of the Raspberry Pi GPIO pins to
be accessed while the 4DPi-32 is connected. These
can be access with jumper wires or with an IDC
ribbon cable.
2. Features
•
Universal 3.2” Primary Display for the Raspberry
Pi.
•
Compatible with Raspberry Pi A, B and B+.
•
320x240 QVGA Resolution, RGB 65K true to life
colours, TFT Screen with integrated 4-wire
Resistive Touch Panel.
•
Display full GUI output / primary output, just
like a monitor connected to the Raspberry Pi
•
High Speed 48MHz SPI connection to the
Raspberry Pi, featuring SPI compression
technology.
•
Typical frame rate of 25 Frames per second
(FPS), higher if image can be compressed
further by the kernel. Lower if no compression
is possible.
•
Powered directly off the Raspberry Pi, no
external power supply is required.
•
On/Off or PWM controlled backlight, selectable
by on board jumper.
•
Module dimensions: 57.2 x 92.2 x 21mm
(including corner plates). Weighing ~ 50g.
•
Display Viewing Area: 48.60 x 64.80mm
•
4x corner plates with 2.6mm holes for
mechanical mounting.
•
RoHS and CE Compliant.
4DPi-32 Primary Display – Raspberry Pi
Note*:
Raspberry Pi is a trademark of the
Raspberry Pi Foundation, and all references to the
words ‘Raspberry Pi‘ or the use of its logo/marks
are strictly in reference to the Raspberry Pi
product, and how
this
product is compatible with
but is not associated with the Raspberry Pi
Foundation in any way.
©
2014 4D SYSTEMS
Page 3 of 14
www.4dsystems.com.au
4D SYSTEMS
4DPi-32 Primary Display – Raspberry Pi Compatible
3. Pin Configuration and Summary
4DPi-32 Primary Display – Raspberry Pi
Pin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
P1 Pinout (Raspberry Pi Connector – FEMALE connector)
Symbol
I/O Description
GND
SPI-CS1
SCK
SPI-CS0
MISO
GPIO25
MOSI
GND
+3.3V
GPIO24
GPIO22
GPIO23
KEYIRQ
GND
PENIRQ
GPIO18
GND
GPIO15
GPIO4
GPIO14
GPIO1
GND
GPIO0
+5V
+3.3V
+5V
P
O
O
O
I
I/O
O
P
P
I/O
I/O
I/O
I
P
I
I/O
P
I/O
I/O
I/O
I/O
P
I/O
P
P
P
Ground Pin, connected to the main system Ground of the Raspberry Pi
Chip Select Pin for the SPI to the Resistive Touch Controller chip
Clock Pin for the SPI
Chip Select Pin for the on-board processor for the SPI communications
MISO Pin for the SPI
GPIO on the Raspberry Pi -
unused
MOSI Pin for the SPI
Ground Pin, connected to the main system Ground of the Raspberry Pi
+3.3V Supply Pin, connected to the main 3.3V supply of the Raspberry Pi
GPIO on the Raspberry Pi -
unused
GPIO on the Raspberry Pi -
unused
GPIO on the Raspberry Pi -
unused
Interrupt for the push buttons (Reserved for next revision)
Ground Pin, connected to the main system Ground of the Raspberry Pi
Interrupt for the touchscreen controller
GPIO on the Raspberry PI – Can be used for PWM Backlight, else
unused
Ground Pin, connected to the main system Ground of the Raspberry Pi
GPIO on the Raspberry Pi -
unused
GPIO on the Raspberry Pi -
unused
GPIO on the Raspberry Pi -
unused
GPIO on the Raspberry Pi -
unused
Ground Pin, connected to the main system Ground of the Raspberry Pi
GPIO on the Raspberry Pi -
unused
+5V Supply Pin, connected to the main 5V supply of the Raspberry Pi
+3.3V Supply Pin, connected to the main 3.3V supply of the Raspberry Pi
+5V Supply Pin, connected to the main 5V supply of the Raspberry Pi
Continued overleaf…
I = Input, O = Output, P = Power
©
2014 4D SYSTEMS
Page 4 of 14
www.4dsystems.com.au
4D SYSTEMS
4DPi-32 Primary Display – Raspberry Pi Compatible
Pin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Symbol
+5V
+3.3V
+5V
GPIO0
GND
GPIO1
GPIO14
GPIO4
GPIO15
GND
GPIO18
PENIRQ
GND
KEYIRQ
GPIO23
GPIO22
GPIO24
+3.3V
GND
MOSI
GPIO25
MISO
SPI-CS0
SCK
SPI-CS1
GND
P2 Pinout (Expansion Header – MALE connector)
I/O Description
P
P
P
I/O
P
I/O
I/O
I/O
I/O
P
I/O
I
P
I
I/O
I/O
I/O
P
P
O
I/O
I
O
O
O
P
+5V Supply Pin, connected to the main 5V supply of the Raspberry Pi
+3.3V Supply Pin, connected to the main 3.3V supply of the Raspberry Pi
+5V Supply Pin, connected to the main 5V supply of the Raspberry Pi
GPIO on the Raspberry Pi -
unused
Ground Pin, connected to the main system Ground of the Raspberry Pi
GPIO on the Raspberry Pi -
unused
GPIO on the Raspberry Pi -
unused
GPIO on the Raspberry Pi -
unused
GPIO on the Raspberry Pi -
unused
Ground Pin, connected to the main system Ground of the Raspberry Pi
GPIO on the Raspberry PI – Can be used for PWM Backlight, else
unused
Interrupt for the touchscreen controller
Ground Pin, connected to the main system Ground of the Raspberry Pi
Interrupt for the push buttons (Reserved for next revision)
GPIO on the Raspberry Pi -
unused
GPIO on the Raspberry Pi -
unused
GPIO on the Raspberry Pi -
unused
+3.3V Supply Pin, connected to the main 3.3V supply of the Raspberry Pi
Ground Pin, connected to the main system Ground of the Raspberry Pi
MOSI Pin for the SPI
GPIO on the Raspberry Pi -
unused
MISO Pin for the SPI
Chip Select Pin for the on-board processor for the SPI communications
Clock Pin for the SPI
Chip Select Pin for the SPI to the Resistive Touch Controller chip
Ground Pin, connected to the main system Ground of the Raspberry Pi
4DPi-32 Primary Display – Raspberry Pi
I = Input, O = Output, P = Power
Note:
The on board processor of the 4DPi-32, along with the Touch Screen Controller on the 4DPi, both utilise a
Chip Select (CS) each on the Raspberry Pi’s SPI Bus, SPI-CS0 and SPI-CS1. This leaves no CS available for the
user, so SPI is essentially unavailable for the User. It may be possible to use a GPIO as a CS pin, however the
current SPI driver that comes with Raspbian does not currently support this. Support for this may become
available in the future.
Note:
Header H1 and Switches S1 through S5 are not mounted and not available to be mounted on HW REV 1.1
and 1.2. Due to incompatibility with the Raspberry Pi B+ and the timing of its release, this feature has been put
on hold with the 4DPi-32 in HW REV 1.1 and 1.2, and a compatible hardware model will be released at a later
date, which will allow external push buttons to be interfaced via the on board processor of the 4DPi-32, and
will be compatible with Raspberry Pi A/B/B+ models.
©
2014 4D SYSTEMS
Page 5 of 14
www.4dsystems.com.au