Janz Tec emPC-A/RPI3 Mounting instructions

PROPRIETARY NOTICE
All rights reserved by Janz Tec AG.
No parts of this technical manual may be modified, copied or reproduced
in any form or by any means for commercial use without the prior written
permission of Janz Tec AG, Germany.
All instructions, information and specification contained in this manual
are for reference only and remain subject to change without
announcement.
emPC-A/RPI3
embedded PC
(Hardware and Software Manual)
Version 1.3
refers to product revision no.
1.1

Title:
emPC-A/RPI embedded PC
File:
j:\as\entwicklung\projekte\hw\empc\empc-arpi\doc\manual\manual_empc-arpi3.doc
Pattern:
\\ntserv5\janzgrp\as\entwicklung\formulare\entwicklung (ew)\ew_manual.dot
Created:
Stefan Althöfer, 06.03.2015
Last Update:
Stefan Althöfer, 21.09.2018
© Janz Tec AG 2015
Im Dörener Feld 8
D-33100 Paderborn, Germany
Tel.:
+49-5251-1550-0
FAX:
+49-5251-1550-190
email:
Internet:
www.janztec.com

emPC-A/RPI3 (Hardware and Software Manual) •Contents i
Rev. 1.3 © Janz Tec AG
Contents
1 Introduction 5
1.1 Features...............................................................................................................................5
1.2 Functional Overview ............................................................................................................6
2 Safety Instructions 7
2.1 Installation and Maintenance...............................................................................................7
2.2 Ambient and Environmental Conditions...............................................................................8
3 Installation 9
3.1 Mounting ..............................................................................................................................9
3.2 Connectors and Operators.................................................................................................10
3.2.1 POWER IN....................................................................................................................10
3.2.2 Graphics connector (HDMI)..........................................................................................10
3.2.3 Ethernet Interface .........................................................................................................11
3.2.4 USB host interfaces (USB1-USB4)...............................................................................11
3.2.5 Console (RS232) ..........................................................................................................12
3.2.6 Serial Port (RS232/RS485)...........................................................................................12
3.2.7 CAN ..............................................................................................................................12
3.2.8 Digital IO .......................................................................................................................13
3.2.9 Audio Video...................................................................................................................14
4 Maintenance 15
4.1 Micro SDcard Replacement...............................................................................................16
4.2 Battery Replacement .........................................................................................................16
5 Operating System and Drivers 18
5.1 Standard Raspbian Operating System ..............................................................................18
5.1.1 Installation.....................................................................................................................18
5.2 emPC-A/RPI3 Driver Installation Script .............................................................................18
5.2.1 Installation Instructions .................................................................................................19
5.2.2 CPU Frequency ............................................................................................................19
5.2.3 Bluetooth.......................................................................................................................19
5.2.4 Driver Details ................................................................................................................19
5.2.4.1 spi-bcm2835 : SPI driver (optimized for emPC-A/RPI3) .........................................20
5.2.4.2 mcp2515 : CAN driver (optimized for emPC-A/RPI3) .............................................20
5.2.4.3 sc16is7xx : RS232/RS485 driver (optimized for emPC-A/RPI3).............................20
5.2.4.4 rtc-ds1307 : RTC .....................................................................................................21
5.3 Janz Tec AG Linux Image for emPC-A/RPI3.....................................................................22
5.4 General Information ...........................................................................................................22
5.5 Optional Software...............................................................................................................22
5.5.1 CODESYS Control for Raspberry Pi SL Information....................................................22
5.5.1.1 Information...............................................................................................................23
5.5.1.2 License Information .................................................................................................23
6 Programming Information 24
6.1 User LEDs..........................................................................................................................24
6.2 I²C Bus...............................................................................................................................24
6.3 SPI Bus..............................................................................................................................24
6.4 CAN....................................................................................................................................25
6.5 Serial Port (RS232/RS485)................................................................................................25
6.6 Digital IO ............................................................................................................................25
6.7 Console RS232..................................................................................................................25
6.8 Overclocking ......................................................................................................................26

ii emPC-A/RPI3 (Hardware and Software Manual) •Contents
© Janz Tec AG Rev. 1.3
7 Appendices 27
7.1 Technical Data...................................................................................................................27
7.2 References.........................................................................................................................30
7.3 Dimensions ........................................................................................................................31
7.4 Raspberry GPIO Header....................................................................................................32
7.5 EMC Cable Installation ......................................................................................................33
7.6 Product History...................................................................................................................34
7.7 Manual History...................................................................................................................34

emPC-A/RPI3 (Hardware and Software Manual) •Contents iii
Rev. 1.3 © Janz Tec AG
List of Figures
figure 1: emPC-A/RPI3 block diagram .....................................................................................................6
figure 2: emPC-A/RPI3 mounting options: Desk-top, Wall and DIN Rail .................................................9
figure 3: Multi connector for IO (Power Supply Pins highlighted)...........................................................10
figure 4: RS485 signaling .......................................................................................................................12
figure 5: digital IO detailed schematic ....................................................................................................13
figure 6: emPC-A/RPI3 case bottom part removal................................................................................15
figure 7: emPC-A/RPI3 micro SDcard location......................................................................................15
figure 8: Removing and replacing coin cell battery ................................................................................16
figure 9: housing dimensions..................................................................................................................31
figure 10: EMC Shielding........................................................................................................................33
List of Tables
table 1: Power Supply connector pins....................................................................................................10
table 2: Ethernet connector ....................................................................................................................11
table 3: USB host connector...................................................................................................................11
table 4: Console (RS232) connector ......................................................................................................12
table 5: Serial Port connector pins .........................................................................................................12
table 6: CAN connector pins...................................................................................................................13
table 7: Digital IO connector pins ...........................................................................................................13
Table 8: Internal I²C devices ..................................................................................................................24

iv emPC-A/RPI3 (Hardware and Software Manual) •Contents
© Janz Tec AG Rev. 1.3
About this Manual
This is the hardware manual for the emPC-A/RPI3 embedded PC.
Conventions
If numbers are specified in this manual, they will be either decimal or hexadecimal. We use C-notation
to identify hexadecimal numbers (the 0x prefix).
If we refer to low active signal names, they will suffixed by a “#” character.
Some parts of the manual contains notices you have to observe to ensure your personal safety, or to
prevent damage to property. These are visually marked with the following alert symbols:
DANGER
Indicates that death or severe personal injury will result if proper precautions are not
taken.
WARNING
Indicates that death or severe personal injury may result if proper precautions are not
taken.
CAUTION
Indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
Indicates that damage to equipment can result if proper precautions are not taken.
Indicates information that we think you should have read to save your time by avoiding
common problems. Important suggestions that should be followed will also be marked
with this sign.
Acronyms and Abbreviations
EMC Electromagnetic capability.
ESD Electrostatic discharge.
GND System ground potential. Inside the product this is connected to the metal housing,
which might be connected to protective earth by the installation. There exist some
isolated reference grounds for communication interfaces or IO. These reference
signals are referred to as GND-x, where x indicates function.
SELV Safety extra low voltage.

emPC-A/RPI3 (Hardware and Software Manual) •Introduction 1 - 5
Rev. 1.3 © Janz Tec AG
1 Introduction
1.1 Features
•Raspberry PI 3 Model B powered
oBCM2837 processor, up to 1200MHz quad-core ARM 64bit ARMv8 CPU
o1GB LPDDR2 SDRAM
oHDMI graphics output
o10/100 Mbit/s Ethernet
o4 x USB 2.0
oMicro SDcard socket
oWLAN
oBluetooth
•CAN, ISO/DIN 11898-2 (isolated from logic), jumper switchable 120 Ohm termination resistor
•Console, 9 pin DSUB
•Serial port, RS232 (4 wire) or RS485 (jumper selectable), jumper switchable 120 Ohm
termination resistor for RS485
•RTC with battery backup
•4 x digital OUT (0.5 A max.), 10..32V externally powered (isolated from logic)
•4 x digital IN (isolated from logic)
•
•

1 - 6 emPC-A/RPI3 (Hardware and Software Manual) •Introduction
© Janz Tec AG Rev. 1.3
1.2 Functional Overview
The processing core of the emPC-A/RPI3 is an unmodified Raspberry PI 3 B board. A Janz Tec
specific add-on board implements the specific features. Refer to figure 1 for the block diagram.
10/100
BaseT
USB 2.0
User LEDs
USB 2.0
USB 2.0
IIC
EE-
PROM
Temp.-
Sensor
Battery Power
(RTC Only)
USB 2.0
HDMI
Raspberry PI
RTC
RS232
Converter
main
DC/DC
5V, 2A
2.5A
VIN:
9..32
VDC
Isolator
Trans-
ceiver
DC
DC
RS485/
RS232
Transceiver
Isolator
UART CAN
Isolator
SPI
Console
GPIO
GPIO
26pin IO header
VIO: 10..32VDC
3A
High side
switches
4 x 0.5A
Isolation barrier
Isolation barrier
GND-IO
4 4
micro
SD
eFuse
TPS2592AA
UVL:
9.1V ... 10.2 V rising
7.1 V ... 7.9V ... 8.8 V falling
(12% tolerance)
DO
DI
DC/DC
3.3V
GND
120 Ohm 120 Ohm
Mode
J400J300
J301
PE
1-
Wire
figure 1: emPC-A/RPI3 block diagram

emPC-A/RPI3 (Hardware and Software Manual) •Safety Instructions 2 - 7
Rev. 1.3 © Janz Tec AG
2 Safety Instructions
Refer to page iv for explanation of the warning notice system.
The product described in this documentation may be operated only by personnel qualified for the
specific task in accordance with the relevant documentation for the specific task, in particular its
warning notices and safety instructions. Qualified personnel are those who, based on their training and
experience, are capable of identifying risks and avoiding potential hazards when working with these
products.
2.1 Installation and Maintenance
DANGER: Electrical Shock
Danger to life.
This product operates with 9..32 V DC SELV power supply. Do not connect this product
to an improper power supply (No AC power, no more than 32 V DC/DC or no non-SELV
circuit)!
DANGER: Electrical Shock
Danger to life.
The IO interfaces (connectors) of the product are only suited to be connected to SELV
circuits. Use interfaces (connectors) for their intended use only.
CAUTION: Explosive Risk
The installed computer board is equipped with a Lithium battery.
Danger of explosion if battery is incorrectly replaced. Replace only with battery of the
same or equivalent type.
CAUTION: Fire Risk
The digital IO must be powered by a SELV power supply, that complies with the
requirements of a limited energy source (LPS) (By using an appropriate supply or an
external fuse).
WARNING: Burns Hazard
The product generates considerable amount of heat. The housing transports this heat to
the environment and therefore gets hot. Caution when touching the housing, burns
hazard!

2 - 8 emPC-A/RPI3 (Hardware and Software Manual) •Safety Instructions
© Janz Tec AG Rev. 1.3
2.2 Ambient and Environmental Conditions
CAUTION: Damage
Do not operate the product beyond the specified ambient conditions
DANGER: Explosive Risk
Do not operate the product in potentially explosive atmosphere.
NOTICE: EMI
This product is a class A device. This product may cause radio interference. In this case
the user must take adequate measures.
NOTICE: System overheating
The cooling concept of the emPC-A/RPI3 is not sufficient to allow full loading of the
Raspberry PI 3 Module processor without system overheating which leads to clock
reduction. Refer to the technical data for details.

emPC-A/RPI3 (Hardware and Software Manual) •Installation 3 - 9
Rev. 1.3 © Janz Tec AG
3 Installation
WARNING: Burns Hazard
The product generates considerable amount of heat. The housing transports this heat to
the environment and therefore gets hot. Caution when touching the housing, burns
hazard!
The product can be operated with DC power supply from 9 to 32 V.
3.1 Mounting
The emPC-A/RPI3 is intended for wall and 35mm DIN-rail mount, but can as well be used on the desk-
top. Refer to figure 2 for the recommended mounting orientation.
Do not block heat transfer at this side!
Top
35mm DIN Rail
Do not block heat transfer at this side!
Do not block heat transfer at this side!
Front Panel
Top
Top
figure 2: emPC-A/RPI3 mounting options: Desk-top, Wall and DIN Rail

3 - 10 emPC-A/RPI3 (Hardware and Software Manual) •Installation
© Janz Tec AG Rev. 1.3
3.2 Connectors and Operators
The 24 pin multi connector provides interface to many of the emPC-A/RPI3 interfaces that are
described later.
A suitable mating connector with lock-and-release levers is Phoenix Contact order number 1790580. A
Model witch screw locking is available with order number 1790399.
The plug uses spring-cage connection and accepts solid or flexible wires from 0.2 mm² to 1.5 mm².
Push in connection is possible, in case of flexible wires you have to use ferrules for this. If you use
ferrules with plastic sleeve, the maximum wire size reduces to 0.75 mm².
Stripping length for the wires is 10 mm.
If you use ferrules, obey that standard ferrules for 0.75 mm² have only 7 mm length.
3.2.1 POWER IN
The system power supply is located on the multi connector.
123
224
21
22
21
PE
22
PE
23
GND
24
VIN (9..32 VDC)
table 1: Power Supply connector pins
DANGER
The product may only be operated with power supplies which can be considered SELV
circuits.
Pins 21 and 22 should be connected to EMI protective earth (PE). These contacts are internally
connected to the DC power supply EMI filter and to the D-SUB shell of the console (RS-232). The
signal is doubled to prevent false connection, it only requires one connection. In locations where no
EMI noise is present, the PE connection is not required. The PE has no safety funcion.
3.2.2 Graphics connector (HDMI)
Provided by Raspberry PI board.
123
2screw
locking
24
lock-and-
release
locking
figure 3: Multi connector for IO (Power Supply Pins highlighted)

emPC-A/RPI3 (Hardware and Software Manual) •Installation 3 - 11
Rev. 1.3 © Janz Tec AG
3.2.3 Ethernet Interface
Ethernet interfaces of the Raspberry PI. The Ethernet physics is 10/100BaseT, available through the
shielded modular jack. Twisted pair cable can be used to connect to this port.
The two LEDs indicate Ethernet status as follows:
LED1
LED2
No activity
No Link
Activity
10/100 MBit Link
NOTICE
If your Ethernet cable is long (normative limit = 30 m) or leaves a building, then an
additional protection against surges is required.
Add an external surge protector is such cases. E.g. ground the Ethernet cable shield
where it enters the building or your cabinet.
If you just connect to a nearby switch, such countermeasures are not required.
3.2.4 USB host interfaces (USB1-USB4)
Two USB interfaces are available at the connector panel.
1
+5V, IMAX = 500 mA, 1000 mA for all ports
2
USB-
3
USB+
4
GND
table 3: USB host connector
NOTICE
Although each port can deliver supply current of 500 mA, the overall load on USB1 to
USB4 interfaces must be limited to 1000 mA to prevent power supply from overheating.
If you draw excessive power from USB ports or short circuit USB power supply outputs,
then the Raspberry PI board will temporarily shut off the USB power supply and retry
every 2 seconds.
1
RD+
5
n.c.
2
RD-
6
TD-
3
TD+
7
n.c.
4
n.c.
8
n.c.
1
table 2: Ethernet connector
1

3 - 12 emPC-A/RPI3 (Hardware and Software Manual) •Installation
© Janz Tec AG Rev. 1.3
3.2.5 Console (RS232)
The RS232 (Console) serial interface is provided by Raspberry PI board. The connector is a standard
9 pin D-SUB plug, but the interface is connected with two wires only, table 4 shows the pin out.
9pin male D-Sub
1
n.c.
6
n.c.
2
RxD
7
n.c.
3
TxD
8
n.c.
4
n.c.
9
n.c.
5
GND
table 4: Console (RS232) connector
3.2.6 Serial Port (RS232/RS485)
The Serial Port is implemented by SC16IS740 UART. A multiprotocol transceiver is utilized to support
both RS232 and RS485. The interface signals are located on the multi connector, refer to table 5.
1
2
15
16
15
TxD , D-
16
RTS , D+
17
RxD
18
CTS
19
GND
20
table 5: Serial Port connector pins
RS232 mode is selected by shorting jumper J301, else RS485 mode is selected. The case has to be
opened to access this jumper.
In RS232 mode, the signals TxD (out), RxD (in), RTS (out) and CTS (in) are provided.
In the RS485 mode the bidirectional differential signals D+ and D- are provided. When the transmitter
is enabled and no data is send (1=MARK), then D+ > D- (refer to figure 4).
Note that D+ corresponds to pin “A” of the transceiver chip. However this is signal B according to the
EIA-485 or Profibus standards.
The receiver has the fail safe input feature, which ensures that no data is received when D+ and D-
are floating or are shorted (e.g. by the termination resistor).
Refer to section 6 (Programming Information) for more information about RS485 control.
An internal 120 Ohm termination resistor can be enabled between D+ and D- by shorting jumper J300.
The case has to be opened to access this jumper.
3.2.7 CAN
The CAN interface is implemented with a MCP2515 controller chip. The interfaces is located on the
multi connector, refer to table 6. The CAN interface signals support ISO 11898-2 (high speed) and are
isolated from system logic.
D+
D- 1 = Mark 0 = Space 1 = Mark
Transmitter
idle
Startbit Databit 0Transmitter
tristate
"0V"
Voh
Vol
figure 4: RS485 signaling
1
6

emPC-A/RPI3 (Hardware and Software Manual) •Installation 3 - 13
Rev. 1.3 © Janz Tec AG
1
2
11
12
11
CAN-H
12
CAN-L
13
GND-CAN
14
n.c.
table 6: CAN connector pins
An internal 120 Ohm CAN termination resistor is enabled by shorted jumper J400. To disable the
termination, the case has to be opened to remove this jumper.
CAUTION
Factory setting: Jumper J400 is not set by default, and therefore the 120 Ohm
termination resistor is disabled!
3.2.8 Digital IO
Digital input (DI1-DI4) and output (DO1-DO4) ports are provided on the multi IO connector (refer to
table 7).
1
2
9
10
1
DO4
2
DO3
3
DO2
4
DO1
5
GND-IO
6
VIO (10..32 VDC)
7
DI4
8
DI3
9
DI2
10
DI1
table 7: Digital IO connector pins
CAUTION
The digital IO must be powered by a SELV power supply, that complies with the
requirements of a limited energy source (LPS) (By using an appropriate supply or an
external fuse).
The digital inputs and outputs are isolated from system power supply. Refer to figure 4 for detailed
schematic.
The digital input signals (DI1-DI4) refer to GND-IO and have an input impedance of about 5 kOhm.
Switching level for low is ≤4V and high ≥9V. The digital inputs do not require VIO to be present.
The output driver supports resistive and inductive loads.
NOTICE
When using inductive loads, the output driver has internal clamping to demagnetize the
VIO
VN330SP
Polarity
Reversal
Protection
DO
Output GPIO
GND-IO
DI
Input GPIO
Load
figure 5: digital IO detailed schematic

3 - 14 emPC-A/RPI3 (Hardware and Software Manual) •Installation
© Janz Tec AG Rev. 1.3
load. This clamps the output pin to about 55 V below VIN. When using this feature, very
carefully evaluate that the demagnetization energy does not overheat the output driver.
Parameters to check are the switching frequency, the load current, the load inductance
and VIO voltage. Refer to the VN330SP datasheet for more information. If in doubt, add
external clamping circuits.
3.2.9 Audio Video
The combined audio and analogue video connector is not accessible on the emPC-A/RPI3.

emPC-A/RPI3 (Hardware and Software Manual) •Maintenance 4 - 15
Rev. 1.3 © Janz Tec AG
4 Maintenance
NOTICE
Always follow common ESD practice when you service the product!
To open the housing, follow these steps (Refer to figure 6):
•Disconnect all connectors
•Remove both bolts on the front RS232 DSUB connector
•Remove all screws on the backside (DIN rain clip or mounting plate)
•Insert the tip of a small screwdriver in to the hole above the USB ports and unclip the two case
parts
•Pull the lower case part away from the upper case
Task
Remarks
Replace µSD-card
Remove DIN rail clip and/or wall
mount bracket
Change jumper settings
Remove case bottom part
Replace Battery
Complete disassembly
NOTICE
Remove the micro SDcard before you attempt to remove the Raspberry PI module from
the housing.
Remove these
2 bolts
Unsnap and remove bottom
half of the housing
figure 6: emPC-A/RPI3 case bottom
part removal
micro-
SDcard
Back Panel
figure 7: emPC-A/RPI3 micro SDcard
location

4 - 16 emPC-A/RPI3 (Hardware and Software Manual) •Maintenance
© Janz Tec AG Rev. 1.3
4.1 Micro SDcard Replacement
NOTICE
Power must be turned off before removing or inserting the micro SDcard
Refer to figure 6 to identify the location of the Micro SDcard. Remove the DIN rail clip and/or the wall
mount bracket if necessary.
4.2 Battery Replacement
CAUTION
The installed computer board is equipped with a Lithium battery.
Danger of explosion if battery is incorrectly replaced. Replace only with battery of the
same or equivalent type (3-volt lithium coin cell battery).
•Do not attempt to recharge the battery.
•Do not disassemble, crush, puncture, short external contacts, or dispose of
in fire or water.
Compatible battery type: CR2032 (3 Volt lithium coin cell battery)
The battery is used for backing up the system time when the power supply is removed.
1. Turn off the computer properly through the operating system, then turn off any
external devices.
2. Disconnect the power supply from the power inlet and disconnect any external
devices.
3. Disassemble the housing (refer chapter 4) and locate the battery on the Janztec
board.
4. Remove the battery from the holder (See figure 8)
5. Insert the new battery (See figure 8)
6. Re-assemble the housing
7. See chapter 5.2.4.4 for important software information
1 2
1. Removal: Insert screwdriver at right side and bend so that the battery
pops outs. Use only gentle force, otherwise the battery holder might be
damaged.
The use a plastic tool is preferred to avoid shorting the battery
2. Insertion: Align new battery to the left side of the holder (below the
hooks) and gently press down on the right side of the battery until the
battery snaps into the holder.
figure 8: Removing and replacing coin cell battery

emPC-A/RPI3 (Hardware and Software Manual) •Maintenance 4 - 17
Rev. 1.3 © Janz Tec AG

5 - 18 emPC-A/RPI3 (Hardware and Software Manual) •Operating System and Drivers
© Janz Tec AG Rev. 1.3
5 Operating System and Drivers
When you order the emPC-A/RPI3 with pre-installed software (Raspbian operating system), then our
default Janz Tec image is pre-installed on the µSD-card and the emPC-A/RPI3 driver package is
already installed and fully configured. For more information, refer to 5.2.
Of course, you can order the emPC-A/RPI3 without software, so you can choose a Raspberry PI 3 B
compatible operating system of your choice and install it manually on a µSD card. (Raspbian
recommended)
Refer to 5.1.1 on how to install an image from the official Raspberry Pi website.
5.1 Standard Raspbian Operating System
If the additional interfaces of the emPC-A/RPI3 (RTC, CAN and RS232/RS485) are not required, then
the latest official Raspbian operating system is recommend for emPC-A/RPI3 systems. (Digital IO and
LEDs are controllable by standard GPIO commands and console (RS232) is supported by Raspbian
by default). To use all of the emPC-A/RPI3 features, refer to chapter 5.2 and 5.3.
5.1.1 Installation
For more information on how to prepare a µSD-card to run the Raspbian operating system visit:
https://www.raspberrypi.org/documentation/installation/installing-images/README.md
Our Janz Tec image is based on the official RASPBIAN JESSIE image from 2018-06-27 with Kernel
4.14.
(SHA-256: 8636ab9fdd8f58a8ec7dde33b83747696d31711d17ef68267dbbcd6cfb968c24)
Download at: https://downloads.raspberrypi.org/raspbian/archive/2018-06-29-03:23/
Important! There is a known issue caused by a faulty /boot/bootcode.bin file, resulting in sporadic
µSD card detection problems, which may cause the system not to boot properly. File date of faulty
bootcode.bin is 2018-06-19. An update is available at:
https://github.com/raspberrypi/firmware/blob/83146e2ec7fec863fdd6dcaa1b5129c43a5b3699/boot/bo
otcode.bin
Default log in credentials:
Username: pi
Password: raspberry
(depending on your keyboard layout language, the last “y” might be “z” on your keyboard)
For more information visit the official Raspberry quick start guide:
https://www.raspberrypi.org/help/quick-start-guide/
5.2 emPC-A/RPI3 Driver Installation Script
Table of contents
Other Janz Tec Desktop manuals