You are on page 1of 74

PiXtend V1.

3
Data sheet: Technical Data and connection hints

PiXtend V1.3 Data sheet

Technical Data and connection hints

Stand 15.06.2016, V1.05

Qube Solutions UG (limited liability)


Arbachtalstr. 6, 72800 Eningen, Germany
http://www.qube-solutions.de
http://www.pixtend.de

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 1 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Copyright 2016 © Qube Solutions UG (limited liability)

Liability exclusion

The content of this publication was tested in accordance with the described hard- and
software. Nevertheless deviations can't be excluded, so that we can't take warranty for full
accordance. The statements in this publication are getting checked regularly, necessary
corrections will be included in the following edition. Improvement suggestions are always
welcome. Technical changes reserved.

Trademark

„Raspberry Pi“ and the related logo are registered trademarks of the Raspberry Pi
Foundation - www.raspberrypi.org
„CODESYS“ and the related logo are registered trademarks of the company 3S-Smart
Software GmbH - www.codesys.com
„PiXtend“ and the related logo are registered trademarks of the company Qube Solutions
UG – www.qube-solutions.de
„Profibus“ and the related logo are registered trademarks of the PROFIBUS
Nutzerorganisation e.V – www.profibus.com
„AVR“, "ATmega" and the related logo are registered trademarks of the Atmel Cooperation
– www.atmel.com
„Debian“ und „Raspbian“ are registered trademarks of the company Debian Project –
www.debian.org

The rights of all companies and company names mentioned here as well as of products
and product names fit to the respective companies.

You can reach us directly at:

Qube Solutions UG (limited liability)


Arbachtalstr. 6
72800 Eningen
Germany

Tel.: +49 (0)7121 8806920


info@pixtend.de – info@qube-solutions.de
www.pixtend.de – www.qube-solutions.de

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 2 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

This product was developed and produced in accordance with the European directives on
the subject and therefore carries the CE sign. The authorized use of the product is
described in this data sheet and the belonging assembly- and operating manuals.

Warning:
Changes or modifications of the product, as well as the non-compliance of the statements
from the mentioned data sheets and operating manuals leads to loss of the approval for
the European economic area.

The symbol with the crossed out waste bin means, that the product should be recycled
separated to the domestic waste as electronic waste. Where you find the next free
acceptance place, will tell you your local administration.

Another possibility is that you send your device back to us and we take care about the
correct disposal for you.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 3 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Table of contents
1. Safety instructions..............................................................................................................6
2. Information to the overall system.......................................................................................7
2.1 Power supply...............................................................................................................8
2.2 The connection to the Raspberry Pi..........................................................................13
2.2.1 Raspberry Pi pin header.....................................................................................13
2.2.2 I²C at 5V-level.....................................................................................................16
2.3 Mechanics..................................................................................................................18
3. PiXtend- Microcontroller...................................................................................................20
4. Digital in- and outputs......................................................................................................25
4.1 Digital inputs..............................................................................................................25
4.2 Digital outputs............................................................................................................30
4.3 Relay outputs.............................................................................................................33
4.4 GPIOs as digital in- and outputs................................................................................38
5. Analogue in- and outputs.................................................................................................43
5.1 Analogue inputs.........................................................................................................44
5.1.1 Voltage inputs.....................................................................................................45
5.1.2 Current inputs.....................................................................................................50
5.2 Analogue outputs.......................................................................................................53
6. Special in- and outputs....................................................................................................56
6.1 PWM/Servo-outputs...................................................................................................56
6.2 DHT11/22, AM2302 Sensors.....................................................................................60
6.3 Connector socket for the 433 MHz-Transmitter........................................................61
7. Serial interfaces...............................................................................................................63
7.1 RS232........................................................................................................................64
7.2 RS485........................................................................................................................67
7.3 CAN...........................................................................................................................71
8. Real-Time-Clock...............................................................................................................74

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 4 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Table of figures
Figure 1: Connector block – power supply........................................................................................................ 8
Figure 2: Principle-circuit diagram: Connection of the main supply................................................................10
Figure 3: Main connection between PiXtend and Raspberry Pi......................................................................13
Figure 4: Principle-circuit diagram: Connection between Raspberry Pi and PiXtend......................................14
Figure 5: Pin header - I²C at 5 V-level............................................................................................................. 16
Figure 6: Pin header - I²C at 5V-level.............................................................................................................. 17
Figure 7: PiXtend microcontroller.................................................................................................................... 20
Figure 8: Jumper: SPI_EN.............................................................................................................................. 21
Figure 9: Plug connector - in-system-programming (ISP)...............................................................................21
Figure 10: Principle-circuit diagram: Reset-Circuit..........................................................................................22
Figure 11: Principle-circuit diagram: SPI- Enable............................................................................................23
Figure 12: Principle-circuit diagram: Connection of a programming adapter..................................................24
Figure 13: Connector block - digital inputs...................................................................................................... 25
Figure 14: Principle-circuit diagram: Connection of the analog voltage inputs................................................28
Figure 15: Principle-circuit diagram: Connection of the sensor-supply...........................................................28
Figure 16: Principle-circuit diagram: GND- connection...................................................................................29
Figure 17: Connection block - digital outputs.................................................................................................. 30
Figure 18: Principle-circuit diagram: Connection of the digital outputs...........................................................32
Figure 19: Connector block - relay.................................................................................................................. 33
Figure 20: Principle-circuit diagram: Connection of the relays (DC)...............................................................36
Figure 21: Principle-circuit diagram: Connection of the relays (AC)................................................................37
Figure 22: Connection block - GPIOs............................................................................................................. 38
Figure 23: Principle-circuit diagram: Connection of the PiXtend- GPIOs (as inputs)......................................40
Figure 24: Principle-circuit diagram: Connection of the GPIOs (as outputs)...................................................42
Figure 25: Connector blocks - analog in- and outputs....................................................................................43
Figure 26: Connector block- analog inputs..................................................................................................... 44
Figure 27: Principle-circuit diagram: Connection of the analog voltage inputs................................................48
Figure 28: Principle-circuit diagram: Connection of the sensor supply...........................................................48
Figure 29: Principle-circuit diagram: GND- connection...................................................................................49
Figure 30: Principle-circuit diagram: Connection of the analogue current inputs............................................52
Figure 31: connection block - analog outputs................................................................................................. 53
Figure 32: Principle-circuit diagram: Connection of the analogue voltage outputs..........................................55
Figure 33: PWM/Servo-outputs....................................................................................................................... 56
Figure 34: Principle-circuit diagram: Connection of the PWM- / Servo outputs...............................................57
Figure 35: Temperature- and humidity sensor DHT11....................................................................................60
Figure 36: Two-rowed female connector for 433 MHz-Transmitter.................................................................61
Figure 37: Typical "low-cost" 433 Mhz-Funk transmitter.................................................................................61
Figure 38: Principle-circuit diagram: Connection of 433MHz-transmitters......................................................62
Figure 39: connection block – serial interfaces............................................................................................... 63
Figure 40: Principle-circuit diagram: Connection of the RS232-interface........................................................66
Figure 41: Principle-circuit diagram: Connection of the RS485-connector......................................................69
Figure 42: Principle-circuit diagram: Connection of the CAN-interface...........................................................73

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 5 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

1. Safety instructions

Read the complete data sheet and the safety- and connection instructions before you start
with the assembly or the connection of the PiXtend. Keep the data sheets, even after
putting all components into operation.

Warning
For damage of any kind, which is caused by non-observance
of the data sheets and operating manuals, the company Qube
Solutions UG (limited liability) will assume no liability.
The guarantee- respectively warranty claims expire.

• PiXtend is not thoroughly recommended for the operation in industrial or producing


environment. Machines and processes, which can cause property- or personal damage,
may only be controlled or influenced under own responsibility.
• PiXtend may only be operated with the prescribed voltage (7 - 24 V DC) and a power
supply unit with the VDE- and CE certification mark (for Europe). The power supply unit
must correspond to the legal regulations of the country in which the PiXtend is used.
• The device is designed only for the usage in dry and clean areas and not for the usage
outside or in wet areas!
• The allowable operating temperature is between 0 °C and 40 °C.
• PiXtend, the Raspberry Pi as well as all cables, connectors and power supplies are to keep
away from fluid.
• The PiXtend modules may not be used near flammable fluids, gases or dusts.
• For repair works are only original or recommended spare parts allowed.
• After operation should the PiXtend be disconnected from the power supply.
• Except the connectors for the relays it is not allowed at any point of PiXtend to put on 230
V, 115 V AC voltage or another dangerous voltage higher then 50 V. Working on dangerous
voltage is allowed only for qualified personnel with a legal authorization of the respective
country. Attention: danger to life!
• Neither PiXtend nor the accessories belong to children hands (under 14 years).
• In schools, hobby workshops and educational institutions the operation is to be supervised
by skilled personnel.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 6 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

2. Information to the overall system

The PiXtend- board was developed as extension for the Raspberry Pi Model 2 B / 3 B.
We recommend the operation with this version, because the manuals, software and data
sheets are designed for it. Its also possible to use the Raspberry Pi Model B+ and B.
For the usage of the Model B (without 2/3 or +) you need a different connection cable
which you can find in our Online-Shop.

Technical Data – PiXtend- Module:

Characteristic Value Comment

Product group Assembly kit LP, Basic, Full or ARTC


ePLC RAW, CASE
Ambient temperature 0..40 °C in operation
-20..70 °C at transport and storage
Relative humidity 0..85 % (non-condensing) in operation or at transport
and storage
dimensions 231.5 x 107.5 x 32 mm without case
235 x 120 x 50 mm with rail case and Raspberry
Pi Model 2 B
weight ca. 350 g with full-placement
(without Raspberry Pi) ca. 300 g with basic-placement
Current consumption Max. 1.2 A, at 12 V DC
max. 0.60 A, at 24 V DC
Protection class none without case
IP20 with stainless steel case and
rail case
pollution Pollution degree 1 without case
(according to EN 61010-1) Pollution degree 2 with stainless steel case and
rail case

In operation the PiXtend must be mounted in a suitable case, that direct or accidental
touching of the electrical components and conducting paths can be avoided. We offer you
appropriate cases for the PiXtend. In this data sheet and in the assembly- and operating
manuals you will get all important information to operate your PiXtend reliable and save.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 7 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

2.1 Power supply

Figure 1: Connector block – power supply

The central power supply is able to supply the PiXtend and the Raspberry with one
connector.

An external power supply unit supplies the PiXtend with a voltage from 12 to 24 V DC and
with a maximal current of 1.2 A. The power supply on the PiXtend board generates out of
this a stable and short-circuit proof 5 V DC voltage. All components on the PiXtend are
supplied with 5 V.

Over the 26-pole flat ribbon cable connection it is possible to supply the Raspberry Pi too,
so it doesn't need a separate power supply unit.

If necessary it is no problem to supply the Raspberry with a separate power supply unit.
For this selection is the jumper named "+5V_PI".

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 8 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Technical Data – PiXtend- power supply (internal):

Characteristic Value Comment

Typ Switching regulator Step-down / buck converter


Switching frequency 52 kHz Fixed frequency, internal oscillator
Input voltage 12-24 V DC Rated input voltage
30 V DC Maximal input voltage
Output voltage 5 V DC +/- 5 % of the rated voltage
Output current max. 2 A
Output ripple typ. < 10 mV
Energy reserves min. 10 ms at 24 V supply and 2 A output
current
Short circuit- and overload yes thermal at 3 A,
protection self-resetting
cooling yes passive cooling element
Reverse polarity protection yes Up to -30 V
Potential separation no
Status indication LED (green) Labeling: "+5V"
Maximum cable length <3m

Warning!
Operate the PiXtend only with the defined voltage- and load ranges. A
constant overload can cause lasting damages to the electrical
components.

Danger of burns!
According to load and ambient temperature, the voltage regulator,
cooling element and diodes of the power supply can have temperatures
up to 75 °C
Direct touching should be avoided!

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 9 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection Instructions

Figure 2: Principle-circuit diagram: Connection of the main supply

The power supply of the PiXtend is realized with a regulated and short-circuit proof power
supply unit with an output voltage between 12 and 24 V DC. The power supply unit must
correspond to the legal regulations of the country in which the PiXtend is used. If you are
buying another power supply unit take care of the appropriate certification marks.
Usable power supply units you also find in our Online-Shop.

The internal power supply of the PiXtend has an energy reserve on the 12-24 V side. This
takes care of an interruption-free power supply in case of voltage drops at the voltage
input for minimum 10 ms. The energy reserve is so designed that the named hold-up time
will last over the complete lifetime of the device.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 10 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

PiXtend and Raspberry Pi Model 2 B / 3 B combined, can be supplied in two different


ways.

1. „+5V_PI“ Jumper at position „ON“

Operation with one power supply unit.


Here are only the connectors „12-24V VCC“ and adjacent GND connected with an
external power supply unit. The Raspberry Pi is supplied by the PiXtend- internal 5V
supply.
In this case it is not allowed to connect an external power supply unit with the
Raspberry Pi.

2. „+5V_PI“ Jumper at position „OFF“ or no Jumper

Operation with two power supply units.


PiXtends connectors, „12-24V VCC“ and adjacent GND, get connected with an
external power supply unit.
The Raspberry Pi gets connected as usual over the micro USB-connector and a
second power supply unit (with 5 V, min. 750 mA).

Warning!
If the Jumper „5V_PI“ is at Position „ON“, then it is not allowed to
connect another power supply unit to the Raspberry Pi
Because of possible compensation currents between the power
supply units, there could be malfunctions, overheating of
components or their defect the result!

Internal circuit-diagram of the PiXtend- power supply units:


The in Figure 2 with "+5V" labeled voltage supplies the whole PiXtend- circuit. Additionally
it can be used to supply the Raspberry Pi (Jumper "+5V_PI" in "ON" position).
The voltage „VCCINT“, behind the polarity protection diode, leads to the pre-amplifier of
the analogue current inputs and the output amplifier of the analogue outputs.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 11 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

USB-devices at the Raspberry Pi:


Are the Raspberry Pi and the PiXtend supplied with one power supply unit together, so the
maximum power load of the USB-ports of the Raspberry Pi is at 1A (2x 500 mA).

The Raspberry Pi delivers in standard configuration maximum 600 mA to his USB-ports.


To raise the maximum current to 1,2A, the „config.txt“ must be changed (is located in the
boot-directory/drive). Following text must me added:
max_usb_current=1
This setting can get important when USB-devices with a higher power consumption will be
connected (USB-drives, some WIFI- Sticks...).

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 12 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

2.2 The connection to the Raspberry Pi

The Raspberry Pi computer and PiXtend are connected over a 26-pole flat ribbon cable
(26-pole on PiXtend side, 40-pole on Raspberry Pi side). The complete cable with pre
assembled connectors is in every scope of delivery of the PiXtend assembly kit.

2.2.1 Raspberry Pi pin header

Figure 3: Main connection between PiXtend and Raspberry Pi

Over the flat ribbon cable-connector a variety of voltages and signals is getting conducted
to the Raspberry Pi. At the second pin header the signals are made available again and
can be used for things like measuring.

Following connectors of the Raspberry Pi 2 B / 3 B are not used on the PiXtend and
therefore are available for other functions:
– GPIO25
→ is connected to the PiXtend over the flat ribbon cable but not used
– GPIO05, GPIO06, GPIO12, GPIO13, GPIO16, GPIO20, GPIO21 and GPIO26
→ are not connected to the PiXtend
Raspberry-Pi-extensions of other manufacturers must be accurately checked for
compatibility before using!

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 13 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions

Figure 4: Principle-circuit diagram: Connection between Raspberry Pi and PiXtend

The pin headers, which are labeled with "RasPi Connector" on the PiXtend, have the same
pinning of voltages and signals as the Raspberry Pi. In this data sheet will be used always
the "BCM Names" of the GPIOs.
In normal operation will be used only the plug connector ( Fig. 4 down) to connect the
Raspberry Pi via flat ribbon cable.
The second pin header (Fig. 4 up) is for the connection of other devices (for example per
I²C) or for measuring.

All voltages and signals on the 26-pole pin header are unprotected and have a direct
connection to the Raspberry Pi respectively the PiXtend- board. The signals are not
protected against short circuits, overload or interfering sources and should be handled
carefully.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 14 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Warning!

The flat ribbon connector between the Raspberry Pi and PiXtend


should never be plugged in- or out while the device is in operation.

How the Raspberry Pi and the PiXtend are interlinked correctly, is described in the
assembly- and operation manuals.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 15 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

2.2.2 I²C at 5V-level

Figure 5: Pin header - I²C at 5 V-level

PiXtend is using only address 0x68 (hex) on the I²C-Bus of the Raspberry Pi because of
the integrated Real-Time-Clock (RTC).

Because of that it is possible to connect additional devices to the bus-system. Optionally


on the 3,3V side of the Raspberry Pi (on the 26-pole pin header) or the 5V side of the
PiXtend (pin header Figure 5).

Example of use
– EEPROM, Flash (memory)
– Sensors (Ultrasound, temperature, air pressure etc.)
– data connection to integrated circuits like microcontroller, FPGAs, ASICs etc.
– Touch-Screen controller
– Analogue/Digital- or Digital/Analogue- Converter

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 16 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions

Figure 6: Pin header - I²C at 5V-level

The I²C-bus is designed for data transmission on the circuit board. If external devices
should be connected, then the cable length should be as short as possible (max. 3m).

SCL: I²C – cycle-wire (Clock)


SDA: I²C – data-wire (Data)

The GND- cable which is also on the 3-pole pin header, must be connected to external
devices on the I²C-bus.

Warning!

The I²C-wires are unprotected and can't withstand short circuits or


overload. Branches, stubs and too long wires can lead to
malfunction on the whole I²C-bus.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 17 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

2.3 Mechanics

PiXtend has over 14 drill holes for M3-screws (diameter 3.2 mm). Four of them are for the
assembly of the Raspberry Pi model 2 B / 3 B / B+. Also are for the „older“ Model B two
fitting drill holes available. The fitting screws and spacers are in every scope of delivery of
the PiXtend assembly kit.

Additional screws and spacers in the assembly kit are for the mounting of the PiXtend-
stainless steel cover or for the mounting on a mounting plate. The outside dimensions of
the circuit board are designed for the insertion in a top-hat rail housing. The top-hat rail
housing can alternatively screwed on a wall or on a mounting plate.

If PiXtend is used without the above-mentioned housings, then the spacers ensure a save
stand and prevent bending of the circuit board at the insertion and loosing of wires. In
operation the PiXtend must be inserted in a housing (either in the original accessories or
another fitting housing)

How the Raspberry Pi and the PiXtend are screwed together correctly, is described in the
assembly- and operation manuals.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 18 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Technical Data – PiXtend board:

Characteristic Value Comment

Thickness 1.55 mm
Construction Two copper layers Top- and bottom layer
Outside dimensions 231.50 x 107.50 mm
Electrical tested yes Raw circuit board
Labeling yes white, top side
Lead-free(RoHS- compliant) yes
Drill holes: X-direction Y-direction
for Raspberry Pi Model B 68 mm 44 mm
122 mm 69 mm

for Raspberry Pi Model B+ /2 B 40 mm 29 mm


40 mm 78 mm
98 mm 29 mm
98 mm 78 mm

for the mounting 7 mm 7.5 mm


91 mm 7.5 mm
152 mm 7.5 mm
224 mm 7.5 mm
224 mm 100 mm
178 mm 100 mm
7 mm 100 mm
7 mm 55 mm

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 19 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

3. PiXtend- Microcontroller

Figure 7: PiXtend microcontroller

The PiXtend- Controller is an 8 bit- RISC- Processor, the ATmega32A from the Atmel
Corporation. The Atmega- series is very popular and widespread. Similar controller you
can find for example on the Arduino-boards or on our LED-Qube 5.

The microcontroller takes over multiple tasks


– Control the digital outputs and relays
– Generates servo- and PWM- signals
– Reading of analogue and digital inputs
– Operation of the 4 GPIOs (as input, output or temperature- and humidity sensors
(DHT11/22 / AM2302))
– Signal- and data processing
– Watchdog-functionality and voltage monitoring (drown out- detection), data security
layer with 16 bit CRC- checksum

Raspberry Pi and PiXtend are connected over the SPI- bus (serial peripheral interface).
The Raspberry Pi is the bus-master, the PiXtend- controller is the slave.

Our open source firmware is written in the programming language „C“ and compiled with
the free of charge program AVC-GCC- Compiler. If needed the controller can be
reprogrammed as wanted. But please consider that only with the original firmware the
function and the CE- conformity can be guaranteed.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 20 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Figure 8: Jumper: SPI_EN

With the Jumper "SPI_EN" the SPI- data connection between the Raspberry Pi and the
PiXtend can be disconnected. This for example can be useful when the microcontroller is
getting programmed over the 10-pole ISP-plug connector.

Figure 9: Plug connector - in-system-programming


(ISP)

For the programming of the PiXtend- microcontroller is prepared a 10-pole plug connector.
As alternative the microcontroller can get a new firmware directly from the Raspberry Pi
(see Applikation-Note APP-PX-540). But for normal operation this is not necessary. The
microcontroller are always programmed state of the art at delivery of the PiXtend assembly
kits / ePLC.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 21 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions
The following circuit diagrams illustrate the usage of circuit parts, which can influence the
PiXtend- microcontroller. The circuit part "INT" is part of the PiXtend- board, "EXT" is an
example for a possible external circuit.

Figure 10: Principle-circuit diagram: Reset-Circuit

The common reset-circuit allows the resetting of the PiXtend- microcontroller and of the
CAN-controller. The reset-circuit can be operated as follows:
1. If the Raspberry Pi GPIO23 (Pin 16) is configured as input, then the microcontroller
and the CAN-controller are in standard operation mode.
2. Is the GPIO23 configured as output, so the condition of the controllers is depending
on the output level of the GPIOs. At LOW-level (0V) the controllers are in standard
operation mode. At HIGH-level (3,3V) the controllers are getting reset and stay in
the reset level until the HIGH-level will be taken back.
3. Optionally an external switch or push button can be connected to the GPIO23 (Pin
16). (please note following information)

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 22 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Warning!
When connecting an external switch or push button the greatest caution
is necessary!
It only should be connected and pressed a switching element at the
GPIO23 (Pin 16), if the GPIO is configured as input. Otherwise the
Raspberry Pi can be damaged.

Furthermore, as usual at the Raspberry Pi, it is not allowed to apply higher voltages as
3.3V to the GPIO23.

Figure 11: Principle-circuit diagram: SPI- Enable

The Jumper "SPI_EN" should be plugged always in normal operation. Or the data
connection between Raspberry Pi and PiXtend is not possible.
But only the plugging of the jumper doesn't activate the data connection automatically.
Additionally it is necessary to configure the GPIO24 (Pin 18) as output and set it to HIGH-
level (3.3V)
In the PiXtend- test programs under Linux or with CODESYS the GPIO24 is set
automatically to activate the data transfer between the controllers.
If the complete software is getting written by oneself (for advanced users) so the handling
of the SPI- Enable should not be forgotten!

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 23 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Figure 12: Principle-circuit diagram: Connection of a


programming adapter

Over the 10-pole plug connector the PiXtend- microcontroller can be programmed. The
pinning equals to a standard ISP-connector corresponding to the Application Note
"AVR042: AVR Hardware Design Considerations" from Atmel.
For more information to the programming and the usage of the ATmega32A on the PiXtend
we recommend our pursuing App-Notes and these of the company Atmel.

For normal operation of the PiXtend the ISP-connector is not necessary and shouldn't be
connected. The ISP-connector is a service-connector where it is only allowed to connect
wires shorter as 3 meter.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 24 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

4. Digital in- and outputs

PiXtend has a huge number of digital in- and outputs. In this chapter you will find all
relevant technical data, as well as connection- and safety instructions. Read always the
relevant sections before you start with the wiring and the work at the in- or output.

4.1 Digital inputs

Figure 13: Connector block - digital inputs

The eight digital inputs (DI0-DI7) are realized in 1-wire-connection technology and have
reference to the common ground (GND).

Example of use
– Switch, push button, end switch
– Sensors with switch output (proximity switch, light barrier)
– Outputs of other control devices
– Outputs of integrated circuits (TTL-level, CMOS-level)
It is possible to choose between two different voltage ranges (one jumper per input).
In the 24 V area the inputs are according to legal requirements of the PLC-norm IEC
61131-2. Also signals with 12 V-level (for example in automotive) are detected reliably.
Overload and polarity reversal up to +/- 30 V can't destroy the inputs. The 5V area is
designed for 5 V TTL- and 3.3V CMOS-level.

Analog filtering levels increase the resistance to interference and provide a save signal-
processing by the PiXtend- microcontroller. LEDs signalize the status of the inputs.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 25 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Technical Data - Jumper-position "24V":

Characteristic Value Comment

Type of inputs Digital input, ohmic For DC voltage


Type 1 & 3 according to IEC
61131-2
positive switching
1-wire connection technology with GND- reference
Rated voltage 24 V
Voltage for high-level min. 7 V logic "1", HIGH-level
Voltage for low-level max. 5 V logic "0", LOW-level
Hysteresis min. 1 V
Input current at rated voltage 7.6 mA
Maximal voltage 30 V Input current: 9.7 mA
Polarity reversal protection yes Up to -30 V
Potential separation no
Status monitoring LED (green)
Maximum cable length < 30 m

Warning!
Voltages higher 30V DC can lead to overheating and the defect of of
components.
The inputs are designed exclusively for DC voltages. It is not allowed to
connect AC voltages.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 26 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Technical Data - Jumper-position "5V":

Characteristic Value Comment

Type of inputs Digital input, ohmic For DC voltage


positive switching
1-wire connection with GND- reference
technology
Rated voltage 5V
Voltage for high-level min. 3 V logic "1"
Voltage for low-level max. 1 V logic "0"
Input current at rated voltage 6.6 mA
Maximal voltage 10 V Input current: 9.7 mA
Polarity reversal protection yes Up to -10 V
Potential separation no
Status monitoring LED (green)
Maximum cable length < 30 m

Warning!
Voltages higher 10V DC can lead to overheating and the defect of of
components.
The inputs are designed exclusively for DC voltages. It is not allowed to
connect AC voltages.

The LEDs can shine already at voltages which are still not detected as high-level.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 27 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions

The following circuit diagram explains the connection of different signal sources to a digital
input. On the left side (INT) is the internal circuit of an input, on the right side (EXT) the
possible connection of an external circuit.

Figure 14: Principle-circuit diagram: Connection of the analog voltage inputs

On the left side of the connector block of the digital inputs is a 2-pole supply connector.
Here the switches, sensors etc. can be connected and supplied. The power consumption
of the connected signal sources should not exceed 100 mA.
A self-resetting fuse prevents damages at overload or short circuit.

Figure 15: Principle-circuit diagram: Connection of the sensor-supply

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 28 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Figure 16: Principle-circuit diagram: GND- connection

If an external power supply unit is used (for sensors, switches etc.), the GND of PiXtend
must be connected with the GNDs of this power supply units. We recommend the
connection of all GNDs at one central point (bridged terminal strips), to prevent ground
loops.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 29 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

4.2 Digital outputs

Figure 17: Connection block - digital outputs

Six digital outputs (DO0 – DO5) allow the switching of DC-consumers with voltages up to
30 V and currents up to 3 A.

Example of use
– Switching of external power relays or contactors
– Operation of DC-motors, model making servo motors
– Connection with the inputs of other control units
– Heating- and Peltier elements
– Fans and blowers
– Lamps for direct current and power-LEDs

All six digital outputs are short circuit- and overload protected. Self-resetting fuses
(Polyfuse / PTC) save the MOSFET power switch. The outputs are in accordance with
„protected and short circuit- resistant outputs“ like it is specified in the PLC-norm
(IEC 61131-2) . Due to the open-drain- technique it is possible to switch up to 30 V DC.

LEDs signalize the status of the outputs.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 30 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Technical Data:

Characteristic Value Comment

Type of outputs digital output, semiconductor For DC voltage


Each one open contact SPST
negative switching N-channel power-mosfet
Rated current 3A
Short circuit current max. 6 A
Maximum voltage 30 V
Maximum switching capacity 15 W at 5 V DC
36 W at 12 V DC
72 W at 24 V DC
"ON"-resistor about 100 mΩ At logic "1"
Short circuit protection yes Self-resetting fuse
(Polyfuse), thermal
overload protection yes
Potential separation no
Status monitoring LED (green)
Maximum cable length < 30 m

Warning!
Voltages higher 30 V DC can lead to overheating and the defect of of
components.
The outputs are designed exclusively for DC voltages. It is not allowed
to connect AC voltages.

Danger of burns!
According to load and ambient temperature, the power transistors and
fuses can have temperatures up to 75 °C.
Direct touching should be avoided! Output currents higher then 3 A are
not allowed in standard operation.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 31 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions

The following circuit diagram explains the connection of different loads and the digital
outputs. On the left side (INT) is the internal circuit of the outputs and on the right side
(EXT) is shown the possible external circuit.

Figure 18: Principle-circuit diagram: Connection of the digital outputs

At inductive loads it needs a protection in the external circuit, to ensure that the voltage at
the output never rises higher then 40 V. This can be realised for example with a free-wheel
diode (1N4004), as it is shown in Figure 18.

Inductive loads are DC-motors, relays, contactors, solenoids etc.

Should the outputs get connected with inputs (at positive switching) of another controlling
device, it will be needed an external pull-up resistor for the input voltage of the controlling
device.

The ground connections (GND) of external power supply units are to connect directly with
the GND- connections of the connector block of the digital outputs.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 32 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

4.3 Relay outputs

Figure 19: Connector block - relay

The four power relays (RELAY0 – RELAY3) allow the potential free switching from DC
voltage and AC voltage consumers. Every relay has 3 connectors (changeover contact).
Example of use
– Turn on / off 115 V / 230 V AC devices
– Switch AC voltages of different voltages and frequencies
– rotational speed of fans with two velocities
– direct operation of DC- or AC- drives
– fans, blowers and lighting
– high loads with low switching cycles

With the universal-relay it is possible to switch everything what needs maximum 230 V
and 6 A. All switching contacts are potential free and have no leading contact to the rest of
the PiXtend circuit.

LEDs signalize the status of the relays.

Implicitly pay attention to the following safety instructions if you work with dangerous
voltages (higher 50 V)!

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 33 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Technical Data:

Characteristic Value Comment

Type of outputs Relay for DC and AC voltage


electromechanical
Each one changeover SPDT
contact
Rated current 6A
Maximum starting current 16 A
Maximum voltage (DC) 60 V Pay attention to the safety
instructions!
Maximum voltage (AC) 250 V Pay attention to the safety
instructions!
Maximum switching capacity 30 W at 5 V DC
72 W at 12 V DC
144 W at 24 V DC
690 W at 115 V AC (Net USA)
1380 W at 230 V AC (Net Europa)
Load types ohmic, inductive, lamp for inductive loads a external
loads free-wheel diode is necessary
Contact-resistor about 100 mΩ
Reaction time about 15 ms Exclusive bounce time
Fall time about 5 ms Exclusive bounce time
Power consumption 0.4 W per active relay
Mechanic lifetime > 20 x 106 switching cycles The real count depends on the
(theoretical) kind of load or the switching
capacity
Short circuit- and no It has to be planned an
overload protection external 6A fuse
Potential separation yes All contacts are isolated to
GND and other signals
Status monitoring LED (green)
Maximum cable length < 30 m

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 34 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Warning!
In no case it is allowed to connect voltages higher 250 V AC or 60 V
DC!

Spacings between conducting paths and components are layed out for
maximum 250 V.

Caution high voltage!


Works on 230 V mains voltage can only be done from authorized
personnel. Never work on under components under voltage. Don't split
or connect wires under voltage.
In case of breach it threats injuries or death through electrical shock.

If the relays should be powered with mains voltage (115 V USA / 230 V EUROPE), so it is
needed a isolating plastic housing and / or a metallic housing with protective earthing. The
housing must prevent a direct touching of components,wires or metallic parts under
voltage.

We offer suitable housings for hat-rails or wall mounting in our shop. The PiXtend stainless
steel cover is connected to the protective conductor ( PE -green/yellow conductor) at
minimum one point. You will find more information in the manual for the stainless steel
housing.

Alternatively the PiXtend assembly kit can be mounted in another protective isolated
plastic housing or grounded metallic housing, which must be closed while operation. Pay
attention to the legal regulations in relation to the electrical safety of the country, in which
the assembly kit is used.

Danger of burns!

According to supply voltage, load and ambient temperature, the relay


temperature can have temperatures up to 60 °C.
Direct touching should be avoided.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 35 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions
The following circuit diagram shows the connection of ohmic and inductive DC-loads with
the relay outputs. On the left side (INT) is the internal circuit of a relay, on the right side
(EXT) is shown a possible external circuit.

Figure 20: Principle-circuit diagram: Connection of the relays (DC)

The four relay-outputs have no integrated fuse or other overload protection. Because of
that it is necessary to include an external protection which trips at 6A.
Inductive loads must have an external free-wheel diode or it must be installed a fitting
snubber- network. Otherwise it can cause sparking while switching of the load. This can
interfere other devices and damage the contacts.

Inductive loads are motors, relays, contactors, solenoids, power supply units with
transformers etc.

The ground connectors (GND) of external power supply units, which are used together
with relays, must not be connected to the common PiXtend-GND. The relay contacts have
a potential separation and because of that no conducting connection to other components
or potentials of the PiXtend or the Raspberry Pi.

The following circuit diagram shows the connection of ohmic and inductive AC-loads with
the relay-outputs. On the left side (INT) is the internal circuit of a relay, on the right side
(EXT) is shown a possible external circuit.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 36 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Figure 21: Principle-circuit diagram: Connection of the relays (AC)

Before 115 V / 230 V or other dangerous voltages are getting connected to the
relays, please read all safety- and connection instructions.

When working with 115 V / 230 V mains supply, it always must be used a ground
fault circuit interrupter (fault-current circuit breaker – personal protection)!

For inductive loads so-called snubber-networks (RC-element) must be inserted in the


external circuit, which absorbs voltage peaks at the switch-off.

Inductive loads are motors, relays, contactors, solenoids, power supply units with
transformers etc.

AC voltages can exclusively be used at the 4 Relay contacts. All other connectors are not
for AC voltages and under no circumstances laid out for mains voltage.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 37 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

4.4 GPIOs as digital in- and outputs

Figure 22: Connection block - GPIOs

The four GPIOs (GPIO0 -GPIO3) on the PiXtend- board can, depending on the
requirement, be configured for different functions. Generally the PiXtend- GPIOs are made
for a range between 0 V to 5 V.

Example of use
– Connection of sensors, push buttons and end switches (as input)
– Direct connection of small electrical loads like LEDs (as output)
– Connection to digital in- and outputs of other controlling devices or microprocessors
– Connection of temperature- and humidity sensors (DHT11 / DHT22 / AM2302)

In opposite to other in- and outputs on the PiXtend, the GPIOs have only low protection
and no input filter. Because of that it are only short wires (shorter 3 m) allowed and if
necessary it should be used a external signal processing. But as outputs the GPIOs have
a short circuit protection (to GND).

The here described GPIOs are connected to the PiXtend- microcontroller and have
nothing to do with the GPIOs of the Raspberry Pi.

The configuration of the GPIOs must be done per software (PiXtend-Linux- tools or
CODESYS).

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 38 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Technical Data - GPIO as input:

Characteristic Value Comment

Type of inputs digital input For DC voltage


positive switching CMOS-input
Rated voltage 5V h
Voltage for High-level min. 3 V logic "1"
Voltage for low-level max. 1 V logic "0"
Input current max. 1 uA In range of 0 to 5 V DC
Maximum input voltage 5.5 V Minimal -0.5 V
Polarity reversal protection nein
Potential separation nein
Status monitoring nein
Maximum cable length <3m

Warning!
The connection of voltages higher 5.5 V or smaller -0.5 V DC can lead
to defect of the GPIOs or the whole microcontroller.

AC voltages at the GPIO- inputs are not allowed.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 39 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions

The following circuit diagram shows the connection of the signal generator to the GPIOs
in operation as inputs. On the left side (INT) is the internal circuit of a GPIO, on the right
side (EXT) is shown the possible external circuit.

Figure 23: Principle-circuit diagram: Connection of the PiXtend- GPIOs (as inputs)

For the supply of sensors, switches and other signal generators can be used the +5 V
connector, which is on the same connector block like the GPIOs. It must be looked for that
the consumer doesn't use more then 100 mA from the power supply.
In case of doubt a self-resetting fuse (Polyfuse) saves the supply connector before
overload or short circuit.

Should a temperature- or humidity sensor (DHT11 / DHT22 / AM2302) getting connected,


so it should be attached a pull-up resistor to the data cable (SDA), like it's shown in figure
23. At cable lengths longer then 2 m we recommend pull-ups in range of 1 kΩ – 3,3 kΩ.
Because of certain fluctuations of the sensors (different manufacturers / batches /
variants), it is not possible to quote an exact value.
Four of the named sensors can be connected to the power supply without problems. Every
sensor takes maximum 1,5 mA. At cable lengths longer then 2 m we recommend to attach
a capacitor with minimum 100 nF directly at the sensor between VCC and GND.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 40 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Technical Data - GPIO as output:

Characteristic Value Comment

Type of outputs digital output, For DC voltage


semiconductor
positive switching CMOS-output
Output voltage 5 V DC
Rated current 10 mA
Nominal load ≤ 1 kΩ
Load types ohmic
Short circuit current 16.5 mA
Rated switching capacity 50 mW
Short circuit protection yes Short circuit to GND
Potential separation no
Status monitoring no
Maximum cable length <3m

Warning!
Under no circumstances can inductive consumers be connected,
because the occurring voltages at the switching of of the loads can
damage the microcontroller.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 41 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions

The following circuit diagram shows the connection of low consumers to the PiXtend-
GPIOs. On the left side (INT) is the internal circuit of the GPIOs, on the right side (EXT) is
shown the possible external circuit.

Figure 24: Principle-circuit diagram: Connection of the GPIOs (as outputs)

Standard LEDs can be connected directly to the GPIOs. But it has to be calculated before,
if the current strength is suitable for the LED:

Example of calculation:
green standard-LED: Forward voltage 2.1 V
(output voltage – forward voltage) / internal series resistor = current strength
(5 V – 2.1 V) / 270 Ω = 10.74 mA
Standard LEDS glow normally at about 2 mA and tolerate minimum 20 mA. So it is
possible to connect a green LED directly between a GPIO output and GND.

When the outputs are getting connected with TTL-inputs of other devices, so it is to look
for, that the imputs resistor is not smaller as 1 kΩ. Otherwise it can be that the voltage at
HIGH-level is not enough to be detected from the other device (voltage divider between
internal 270 Ω and the resistor of the remote station).
The external shown GND- connections are to connect with the PiXtend- GND at minimum
one point, to close the electrical circuit.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 42 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

5. Analogue in- and outputs

Figure 25: Connector blocks - analog in- and outputs

PiXtend has following in- and outputs:

– two voltage inputs (AI0 – AI1)


– two current inputs (AI2 - AI3)
– two voltage outputs (AO0 - AO1)

Further information and details to the named analogue I/Os you will find on the following
sites.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 43 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

5.1 Analogue inputs

Figure 26: Connector block- analog


inputs

PiXtend has four analogue inputs. Two for voltage measuring (AI0 – AI1) in the ranges
0..5 V / 0..10 V and two more for current measuring (AI2 – AI3) in the range 0..20 mA.

Example of use
– Analysis of sensors with analogue outputs
– capturing of potentiometer positions (rotary control)
– Current- and voltage measuring in laboratory and at test setups
– Voltage monitoring for accumulators (for example in robots)
– Current measuring with an external shunt ( voltage at resistor)
– Analysis of PT100/1000 sensors (with pre-amplifier)
– Connection with the analogue outputs of other controlling devices

The inputs are robust designed and withstand surges up to 30 V DC. Per jumper the
voltage areas can be easily changed and adapted to the circumstances.
All four channels are according to the standards of programmable logic controllers (IEC
61131-2) and are therefore usable for a variety of professional sensors and measurement
equipment.

Analogue filtering levels ensure low-noise measurements with the 10 bit- analog/digital
converter (integrated in the microcontroller).

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 44 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

5.1.1 Voltage inputs

Before usage it is to check, and if necessary, to adapt the jumper position. Sure you can
stay in 10V- area always and enjoy the highest flexibility and robustness of the inputs. But
in 5V-area you have the same resolution for a smaller measuring area. For a better
accuracy this can be very helpful.

Technical Data - Jumper-position "10V":

Characteristic Value Comment

Type of inputs analogue inputs for DC voltage


by IEC 61131-2
single-ended with GND- reference
Operating mode voltage input (AI-U)
Measuring area 0..10 V DC
Input resistance 20 kΩ
Analog filtering limit frequency 275 Hz low-pass 2. order
HF-damping: 52 dB at 10 kHz
95 dB at 100 kHz
151 dB at 1 MHz
Conversion method successive approximation a converter with multiplexer
Conversion time 100 µs at standard- config
Digital resolution 10 bit
Smallest digital step (LSB) 9.77 mV
Maximum measuring failure +/- 1 % (+/- 0.1V) of the value range at
at 25°C standard- config
Temperature coefficient +/- 0.025 % pro °C at area 0 – 40 °C ambient
temperature
Data format 16 bit Integer raw value (right-justified)
32 bit Float calculated voltage value in V
Maximum input voltage 30 V
Polarity reversal protection yes up to -30 V

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 45 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Potential separation no
Status monitoring no
Maximum cable length <3m unshielded cable
< 30 m shielded cable

Technical Data - Jumper-position "5V":

Characteristic Value Comment

Type of inputs analogue inputs for DC voltage


single-ended with GND- reference
Operating mode voltage input (AI-U)
Measuring area 0..5 V DC
Input resistance 10 kΩ
Analog filtering limit frequency 500 Hz low-pass 1. order
HF-damping: 26 dB at 10 kHz
49 dB at 100 kHz
85 dB at 1 MHz
sukzessive approximation a converter with multiplexer
Conversion method
Conversion time 100 µs at standard- config
Digital resolution 10 bit
Smallest digital step (LSB) 4.88 mV
Maximum measuring failure +/- 1 % (+/- 0.1V) of the value range at
at 25°C standard- config
Temperature coefficient +/- 0.025 % pro °C at area 0 – 40 °C ambient
temperature
Data format 16 bit Integer raw value (right-justified)
32 bit Float calculated value in V
Maximum input voltage 30 V
Polarity reversal protection yes up to -30 V
Potential separation no

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 46 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Status monitoring no
Maximum cable length <3m unshielded cable
< 30 m shielded cable

The result of the A/D- conversion can be influenced strongly by the setting of the ADC-
speed (frequency) and the counts of the conversion per measuring result (averaging).
Little frequencies and long averaging makes a higher accuracy.

The analogue voltage inputs are able to measure DC- and AC voltage. If AC voltage
should be used, it should be looked for the input filters. It are only allowed measuring in
positive area. Negative voltages can be connected, but not analysed.

PiXtend can not automatically evaluate the jumper setting of analog voltage inputs. If you
reposition the jumper, so must react accordingly in software (conversion factor to adjust).
In CODESYS, the jumper setting can be changed comfortable about "Auxiliary" --> "AI
jumper". The PiXtend Linux tools dominate the switch between 5 V and 10 V measurement
range.

Warning!
Voltages higher +/- 30 V DC can lead to overheating and to the defect
of components.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 47 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions

The following circuit diagram shows the connection of an analogue voltage generator to
the analogue inputs of the PiXtend. On the left side (INT) is the internal circuit of an
analogue voltage inputs, on the right side (EXT) is shown a possible external circuit.

Figure 27: Principle-circuit diagram: Connection of the analog voltage inputs

The voltage inputs can be used in different ways, which necessitate the measuring of a
voltage. In figure 27 is shown an example of an easy circuit with a light-sensitive resistor
(LDR) and the analysis of a rotary potentiometer.

When it should be worked in 5 V-area, it may be advisable to use one of the both +5 V
supplies of the PiXtend-board to supply the sensors and voltage dividers.
Currents higher then 100 mA should not be taken permanently. However, in case of a short
circuit or a permanent overload the supply connector is saved by a self-resetting fuse.

Figure 28: Principle-circuit diagram: Connection of the sensor supply

The earth connections (GND) of external power supply units are to connect directly with
the GND connectors, of the connector block, from the analogue inputs.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 48 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Figure 29: Principle-circuit diagram: GND- connection

At analogue signals we basically advice to use shielded connection cables. This will be
important especially, when the cables are layed near pulsed currents (for example
electrical drives) or other interfering sources.
If PiXtend is used in a metal housing or a switch box, then it's useful to connect the shield
to a grounded or blank metallic surface (ground terminal and screw fittings are to buy in
DIY store or specialist shop). There must be or must be made an electrical conductive
connection between GND and the housing / switch box (mostly (PE-protective earth).
Otherwise the shield should be disconnected near the connector blocks, twisted and then
connected with the GND of PiXtend.
At cables shorter then 3 m it too is possible to use unshielded cables.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 49 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

5.1.2 Current inputs


Technical Data:

Characteristic Value Comment

Type of inputs Analogue inputs For DC voltage


after IEC 61131-2 in range of 0..20 mA
single-ended with GND- reference
Operating mode Current input (AI-I)
Measuring area 0..25 mA DC Also usable for 4..20 mA
sensor outputs
Input resistance < 25 Ω
Analogue filtering Limit frequency 500 Hz low-pass 1. order
HF-Interference- Damping: 26 dB at 10 kHz
49 dB at 100 kHz
85 dB at 1 MHz
Conversion method successive approximation a converter with multiplexer
Conversion time 100 µs at standard- config
Digital resolution 10 bit
Smallest digital step (LSB) 24.4 uA
Maximum measuring failure +/- 1 % (+/- 0.5 mA) of the value range at
at 25°C standard- config
Temperature coefficient +/- 0.025 % pro °C at area 0 – 40 °C ambient
temperature
Data format 16 bit Integer raw value (right-justified)
32 bit Float calculated value in mA
Maximum input current 100 mA In case of failure – shouldn't
happen in normal operation
Maximum input voltage 30 V In case of failure – shouldn't
happen in normal operation
Polarity reversal protection yes Up to -30 V
Overload protection yes thermal, self-resetting fuse

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 50 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

(Polyfuse)
Potential separation no
Status monitoring no
Maximum cable length <3m unshielded cable
< 30 m shielded cable

The analogue current inputs are able to measure DC- and AC voltage. At usage of AC
voltage should be looked for the inputs filters. It are only measuring in positive area
possible. Indeed it is possible to connect negative currents, but they can't be analysed.

Warning!
Voltages higher +/- 30 V DC can lead to defect of components.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 51 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions

The following circuit diagram shows the connection of analogue voltage generators to the
analogue inputs of PiXtend. On the left side (INT) is the internal circuit of an analogue
current input, on the right side (EXT) is shown a possible external circuit.

Figure 30: Principle-circuit diagram: Connection of the analogue current inputs

As the circuit diagram shows, the measuring current flows through a shunt-resistor with a
value of 20 Ω. So if a voltage regulator is getting connected to the output, the maximum
allowed current of 25 mA flows already at very low voltages:

Umax = 20 Ω * 25 mA = 0.5 V

If higher voltages are getting connected to the inputs, so the current flow is raising very
fast over the allowed area and will be limited at about 100 – 150 mA by a self-resetting
fuse.
Even when defects are getting avoided, it is not recommended to operate the current
inputs permanently over 25 mA. Currents higher then 25 mA can not be analysed by the
software.

The ground connections (GND) of external power supply units are directly to connect with
the GND connections of the connection block from the analogue inputs.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 52 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

5.2 Analogue outputs

Figure 31: connection block - analog outputs

The full placement of PiXtend (assembly kit full / ARTC / ePLC) has two analogue voltage
outputs. It is possible to output voltages in two channels, independent from each other, in
areas from 0 to 10 V in 10 mV-steps.

Example of use
– Supply and controlling of small loads: Mini-DC-motor, LED(s)
– Function generator (Output of sinus, rectangle and triangle voltage, etc.)
– Connection with analogue inputs of other controlling devices and power amplifiers
– Controlling analogue monitoring device

Both outputs are short circuit protected and are able to run a current of 10 mA in normal
operation. The analogue outputs are supplied over the central voltage supply of the
PiXtend.

The fine trimming of the output voltage area is made by the two potentiometers T0 and T1
on the PiXtend.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 53 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Technical Data:

Characteristic Value Comment

Type of outputs Analogue output DC voltage in positive area


after IEC 61131-2
Operating mode Voltage output (AO-U)
Conversion method String DAC One converter per channel
Rated voltage range 0..10 V DC Can be trimmed to the range
0..5 V DC per potentiometer
Load impedance range >= 1 kΩ
Rated output current 10 mA at 1 kΩ load, 10 V
min. 13.5 V VCC
Digital resolution 10 bit
Smallest digital step (LSB) 9.77 mV Depending to the
potentiometer setting
Maximum measuring failure +/- 2 % (+/- 0.2V) of the value range,
at 25°C depending to the
potentiometer setting
Temperature coefficient +/- 0.025 % pro °C at area 0 – 40 °C ambient
temperature
Data format 16 bit Integer raw value (right-justified)
32 bit Float output value in V
Short circuit protection yes Short circuit to GND
Maximum cable length <3m unshielded cable
< 30 m shielded cable

Information!
Because the analogue outputs are supplied from the central PiXtend-
power supply (12-24 V), following is to mind: The rated output current of
10 mA per channel can only be taken, if the PiXtend is supplied with
min. 13.5 V.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 54 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions

The following circuit diagram shows the connection of consumers and devices to the
analogue outputs of PiXtend. On the left side (INT) is the internal circuit of an analogue
voltage output, on the right side (EXT) is shown a possible external circuit.

Figure 32: Principle-circuit diagram: Connection of the analogue voltage outputs

If the outputs are getting connected to analogue inputs of other controlling devices, power
amplifiers (too frequency converter)or something, then the groundings (GNDs) are to
connect with the groundings of the PiXtend. Two GND-connectors are directly on the
connector block of the analogue outputs.

Same as at for the analogue inputs, it should be used shielded cables for the analogue
outputs.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 55 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

6. Special in- and outputs

Some in- and outputs of PiXtend are having special functions.


The functions and the possibilities that they open up are described in the following.

6.1 PWM/Servo-outputs

Figure 33: PWM/Servo-outputs

On the 10-pole connection block of the digital outputs are too two connectors named
PWM0 and PWM1. At this special outputs it is possible to output pulse width modulated
(PWM) signals with adjustable frequency and duty cycle or to directly connect a model
making servo.
With help of the jumper „Dox- PWMx“ the PWM- signal directly layed at the digital outputs
DO4 and DO5, so that it is possible to run loads up to 3 A.

Example of use
– control position of up to two model making servos
– rotation speed control of fans and other DC-motors
– dimming of DC-lamps and LEDs (high-power-LEDs too)
– controlling of heating element temperature
– fine adjustable clock source for a variety of electronical applications

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 56 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions

The following circuit diagram shows how to connect consumers and devices to the PWM
or digital-outputs of PiXtend. On the left side (INT) is the internal circuit of the outputs, on
the right side (EXT) is shown a possible external circuit.

Figure 34: Principle-circuit diagram: Connection of the PWM- / Servo outputs

The PWM outputs PWM0 and PWM1 can be operated in 2 ways. The Jumper „Dox-
PWMx“ is for the selection of the operation mode:
1. Jumper left (Pin 1 and 2 connected) → DO-mode

DO and PWM work independent from each other. At the PWM outputs can the
PWM- signal be taken as 5 V-TTL-level. It is only allowed to charge the load with a
resistor higher then 1 kΩ, connected with the high omic inputs of a servo motor or
other another digital input.

2. Jumper right (Pin 2 and 3 connected) → PWM- mode

The PWM- signal is getting redirected to the power switch of the belonging output
and is able to switch /tact the connected load of this DO because of that.
The „normal“ DO-function is deactivated in this mode. The changing of the values
from DO4 and DO5 in the software is not affecting the state of the respective power
driver.

In the software (PiXtend-Linux- Tools and CODESYS- Demoprojekt) can be chosen


between Servo- and PWM- mode:

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 57 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

– Servo-Mode (standard-setting): Frequency 50 Hz (20 ms), 1-2 ms „ON“-time


1ms: zero- position
2ms: full deflection
– In PWM- Mode it is possible to configure Frequency and duty-cycle completely free.

It is only allowed to connect cables shorter then 3 meter to the connectors PWM0 and
PWM1.

All further information to the controlling of the PWM- outputs by software are to look up in
the according manuals / App-Notes. On the PiXtend- homepage (www.pixtend.de) are all
documents ready to download for free.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 58 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection of the model making- servos:


Model making- servos normally have 3 connectors.
1. Supply – Plus pole
2. Supply – Minus pole
3. PWM / Impulse
The PWM- or impulse input of the servo is getting connected with PWM0 or PWM1 on the
PiXtend. The supply (plus- and minus pole) of the servo can be completely external (no
connection to the PiXtend) or it is getting connected to a digital output of PiXtend to switch
the servo basically on- and off.
The configuration and colour coding of the cables depends on the manufacturer and can't
be generally validated. It is to look for the data sheets and connection instructions of the
servo manufacturers.
Information
For the operation of the model making servos it is needed an external
power supply unit or an accumulator (normally 4-7 V DC). The „+5V“ of
the PiXtend / Raspberry Pi may not be used, because the servos take
very high currents (some ampere) at the start up which leads to a break
down of the power supply from PiXtend and Raspberry Pi.

A break down of the voltage supply can lead to unforeseeable behaviour of the overall
system and in that case too for the I/Os and interfaces. The Raspbery Pi can break down
and has to start up again.

The ground cables of externals accus, accupacks and power supply units, which are used
for the power supply of the servos has to be connected with PiXtend. On the connection
block of the digital outputs and PWM- connectors are GND- pins for that reason.

Because the motors of the servos are inductive loads it possibly (always depending to the
used servo) must be included a Diode, how it is shown in Figure 34. Otherwise it could
result high voltages while switching off, what can lead to damage at the power switch of
the digital output.

When choosing the model making servos, please look that the legal requirements for the
country which it is used in are fulfilled.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 59 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

6.2 DHT11/22, AM2302 Sensors

Figure 35: Temperature- and


humidity sensor DHT11

Also it is possible to connect up to 4 temperature- and humidity sensors. Therefore the


four PiXtend- GPIOs are used.
The sensors named „DHT11“, „DHT22“ or „AM2302“ are common and popular „low cost“
sensors, which can be bought in electronic shops or directly on sales platforms like Ebay
or Amazon. The prices are lying between 3-15 € per sensor.
The sensors are made for usage indoors only.
The measure- and electrotechnical details are to find in the according data sheets of the
sensors.

The connection instructions for the sensors are described in chapter 4.4 GPIOs as digital
in- and outputs.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 60 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

6.3 Connector socket for the 433 MHz-Transmitter

Figure 36: Two-rowed female connector for 433 MHz-


Transmitter

The two-rowed female connector named "433MHz Trans." allows the connection of
different common 433 MHz- transmitters to PiXtend.
With the transmitters it is possible to switch customary funk sockets from the DIY- shop.
Cables of 230 V consumers don't extra have to be connected to the relays of PiXtend.

Figure 37: Typical "low-cost" 433 Mhz-Funk


transmitter

The pin assignment of the connector are prepared the most common transmitters, which
can be put in directly. The transmitters are sold for example with the labeling "FS1000A"
and cost about 3 to 15 €.
The data wire goes directly to a GPIO of the Raspberry Pi, the power supply (5 V) is done
by the PiXtend.

There is another pin available, where an antenna can be connected.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 61 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions

The following circuit diagram helps with the connection of different 433 Mhz- transmitters
to the according female connector of PiXtend.

Figure 38: Principle-circuit diagram: Connection of 433MHz-transmitters

Following connector labeling is on the PiXtend- board:

– „ANT“ Antenna connection


– „DAT“ Data wire, connected with Raspberry Pi (GPIO17)
– „VCC“ Power supply, plus pole (5 V DC)
– „GND“ Ground connection, minus pole

Information
The connectors are not saved. Wrong connected, short circuit or
overload can lead to the defects on the PiXtend- or Raspberry Pi board!
On the connector shouldn't be connected cables longer then 3 meter.

Before connecting the transmitter the pinning has to be checked and compared to the
pinning of the female connector of PiXtend.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 62 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

7. Serial interfaces

Figure 39: connection block – serial


interfaces

PiXtend has the following serial interfaces:

– RS232 classic serial computer interface – point to point connection


– RS485 differential serial interface – bus-system (field bus)
known as profibus, modbus and DMX
– CAN differential serial interface – bus-system (field bus)
used in cars and CANopen (in automation area)

RS232 and RS485 share the UART interface of the Raspberry Pi. Between the interfaces
can be switched by a GPIO.

Further information and details to the single interfaces are found in the following.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 63 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

7.1 RS232

Die RS232-interface allows a easy data transfer between two devices (point to point).
PiXtend converts the UART-signals of the Raspberry Pi to the robust RS/EIA232-
standards.

Example of use
– Connection with a computer (Data transfer or Linux-terminal)
– Data exchange with other controlling devices, measuring equipment and
microcontroller
– Service-access to phone systems
– Connection to analogue modems and other electronical classics
– RS232 can be converted to USB without problems (external adapter)

The on PiXtend installed transceiver is a million time proven, short circuit protected and
can handle overloads up to +/- 30 V at its inputs.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 64 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Technical Data:

Characteristic Value Comment

Type of interface serial interface, asymetric Cable bound


(single-ended) with GND- reference
Kind of connection Point to point Between the devices
Norm / Standard RS232 / EIA232
Maximum data transfer rate 120 kBaud Depending to quality and
length of the used cables
and software
Rated voltage level +/- 9 V
Maximum voltages +/- 30 V at RX and TX against GND
Short circuit current +/- 18 mA
Short circuit protection yes Short circuit against GND
Potential separation no
Input resistance about 5 kΩ from RX against GND
Status monitoring no
Maximum cable length <3m Unshielded cables
< 30 m Shielded cables

Warning!
When exceeding the specified maximum values it can cause data
transfer failures, functional disruption and component defects.

The switching between RS232- and RS485- transceiver can be done by the RasPi
GPIO18. Is the GPIO18 configured as input or outputs a low-signal as output so the
RS232 is active. If the output is a high-signal so the RS485 is active.

RS232 is the standard setting the PiXtend- system is starting with.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 65 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions

Figure 40: Principle-circuit diagram: Connection of the RS232-interface

RS232 is a point to point connection between two devices and no bus system.
The TX of PiXtend is getting wired to the RX cable of the other device. Just the same is
the RX of PiXtend getting wired to the TX cable of the external device (crossing / X-ing).

At cable lengths longer then three meter should be taken shielded cables. Information and
tipps for the connection or the apply of shields you will find under 5.1.1 Voltage inputs in
this document.

At standard setting for the UART-interface under Raspbian, the RS232-interface serves as
console. With a terminal program it is possible to connect to the Linux-console directly by
PC. For the correct transfer are to to do following settings in the PC program:

Baud rate: 115.200 Baud


Data-Bits: 8
Parity-Bit: no / none
Flow Control: no / none

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 66 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

7.2 RS485

The RS485-interface allows the data transfer between several devices in a bus system.
PiXtend converts the UART-signals of the Raspberry Pi to the differential level of the
interfere resistant RS/EIA485-standards.

Example of use

– Participation at a RS485 based bus system (Profibus, DMX, Modbus...)


– Construction of a bus system with other controlling devices, microcontroller,
measuring equipment, frequency converter and much more

The RS485-Transceiver on PiXtend is short circuit protected and robust against


interferences. With a jumper directly next to the connector block it is possible to connect /
disconnect a 120 Ω- termination resistor.
An integrated bias-network is holding the bus-levels stable and improve the interference
resistance.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 67 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Characteristic Value Comment

Type of interface serial interface, symetric cable-bound


(differential) half-duplex
Kind of connection Data-bus / Field bus Several participants possible
Norm / Standard RS485 / EIA485
Maximum transfer rate 2.5 MBaud depending on:
(theoretical) - the quality, environment
and length of the used cable
Maximum count of 32
- the used software
participants in the bus
- the switching technology of
(theoretical)
other participants in the bus
Differential output voltage Min. 1.5 V With maximum load (27 Ω)
max. 5 V without load
minimum differential input 0.2 V Input threshold
voltage
Maximum voltage -8 V .. +12 V at A or B against GND
Short circuit protection Yes Short circuit against GND
Short circuit current max. 250 mA
Overload protection yes thermal
Potential separation no
Status monitoring no
Bias-Network yes with 680 Ω resistors
Termination resistor yes 120 Ω, per jumper
Maximum cable length <3m Unshielded cables
< 30 m Shielded cables

Warning!
When raising the specified maximum values it can lead to transfer
failures, function interference and component defects.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 68 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

The switching between RS232- and RS485- transceiver can be done by the RasPi
GPIO18. Is the GPIO18 configured as input or outputs a low-signal as output so the
RS232 is active. If the output is a high-signal so the RS485 is active.
RS232 is the standard setting the PiXtend- system is starting with.

Connection instructions

Figure 41: Principle-circuit diagram: Connection of the RS485-connector

In the RS485-bus it has to be connected a 120 Ω resistor at the end of the line structure
(first and last bus-participant). If the PiXtend is one of this bus endings, so the jumper has
to be switched to „ON“. The 1 nF-capacitor prevents unnecessary current flow (power loss)
in idle level.

The „bias-network“ stabilizes the level in the bus, if it is floating. Without a network like this
it could be received so called „phantom characters“ of the other bus participants, which
would be caused by interference / oscillations on the bus cables (unwanted changes of the
logic level).

Because of the ohmic load of the bus / bus-driver by the bias-network, it should be
maximum two device with such a bias-network in a bus-system. In case of doubt it is
possible to unsolder the both 680 Ω- resistors, to lower the bus load.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 69 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

The RS485-driver of PiXtend works with half-duplex. That means it can be sent or
received. Both together, send and receive, is not possible.
Because of that the transceiver must be switched between send- and receive mode. This
happens over the connections RE / DE. The cables are connected to the GPIO22 of the
Raspberry Pi and can be controlled by it.
PiXtend by default is starting with a LOW-level at RE / and DE and so is standing in
receive mode (listening in the bus).

The ground connection of PiXtend, which is lying directly next to the data cable on the
connection block has to be looped to the other bus participants.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 70 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

7.3 CAN

The CAN-interface allows the data transfer between several devices in a bus system. The
Raspberry Pi controls the standard-CAN-Controller over the SPI- interface and additional
RasPi- GPIOs. The differential signal makes the CAN-bus more tolerant against
electromagnetic interferences.

Example of use

– Participation in a CAN basic bus-system (CANopen, DeviceNet...)


– Construction of a bus system with other controlling devices, microcontroller,
measuring equipment and much more
– Data connection to controlling devices / microcontroller in automotive area

The CAN-transceiver of PiXtend is short circuit resistant and robust against interference. It
supports the "extended frame format" with 29 bit-identifier (CAN 2.0B).

With a jumper directly next to the connector block it is possible to connect / disconnect a
120 Ω- termination resistor.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 71 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Characteristic Value Comment

Type of interface serial interface, Cable-bound


symetric(differential)
Kind of connection Data-bus / field bus Several participants possible
Norm / Standard CAN 2.0B 29 bit-Identifier
Maximum transfer rate 1 MBaud Depends on:
(theoretic) - the quality, environment
and length of the used cable
Maximum count of 112
- the used software
participants in the Bus
- the switching technology of
(theoretic)
the other participants in the
bus
Differential output voltage Min. 1.5 V at 50 Ω load
max. 3 V without load
minimum differential input 1V Input threshold
voltage
Maximum voltage +/- 42 V at CANH or CANL against
GND
Short circuit current max. +/- 200 mA against maximum +/- 42 V
Short circuit protection yes Short circuit against GND
Overload protection yes thermal
Potential separation no
Status monitoring no
Termination resistor yes 120 Ω, per jumper
Maximum cable length <3m Unshielded cables
< 30 m Shielded cables

Warning!
When raising the specified maximum values it can lead to transfer
failures, function interference and component defects.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 72 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

Connection instructions

Figure 42: Principle-circuit diagram: Connection of the CAN-interface

In the RS485-bus it has to be connected a 120 Ω resistor at the end of the line structure
(first and last bus-participant). If the PiXtend is one of this bus endings, so the jumper has
to be switched to „ON“.
The in Figure 42 shown CAN-Transmitter is controlled by a CAN-Controller. The CAN-
Controller is connected with the Raspberry by SPI. Because the digital-analogue-
converter of the analogue outputs and the CAN-Controller have the same chip-select
(CS1), it first must be switched to the CAN-Controller. Therefore the RasPi GPIO21/27 has
to be configured as output and switched to HIGH-level.

For the usage of the CAN-Controller another GPIO of the Raspberry Pi is important too. At
GPIO4 is the interrupt-cable connected. When the GPIO is configured as input, then it can
be read with the software. The interrupt-cable is „active low“.

The ground connection of PiXtend, which is lying directly next to the data cable on the
connection block has to be looped to the other bus participants.

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 73 / 74


PiXtend V1.3
Data sheet: Technical Data and connection hints

8. Real-Time-Clock

The Real-Time-Clock (RTC) is always provides the actual time and date to the Raspberry
Pi. A Lithium-battery cares, that the clock still runs even when the PiXtend / Raspberry Pi
are not supplied.

The Raspberry Pi (with Raspbian Linux as operating system) normally takes the actual
time from a server in the internet, if it is connected to a network with internet access. But if
there is no internet access (isolated operation), the Raspberry Pi and in this case the
operating system too will loose the time after every shutdown.

Because of that the Real-Time-Clock is not necessary in every application or project and is
missing in the basic assembly kit because of that reason.

The data exchange between Raspberry Pi and RTC runs with I²C-Bus.

Characteristic Value Comment

Kind of Real-Time-Clock Time and date Seconds, minutes, hours, days


of month, month, day of week,
year and leap years;
12 and 24 hours format
Data connection I²C-Bus max. 100 kHz clock frequency
address 0x68 (104 decimal)
Buffering time min. 10 years From the day of initial operation
of the PiXtend- Boards

www.pixtend.de Copyright by Qube Solutions UG (limited liability) 74 / 74

You might also like