PiSerialPower Documentation
PiSerialPower Documentation
http://www.techno-innov.fr
Contents
1 Introduction 3
2 Licenses 3
2.1 Documentation license . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 Hardware license . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.3 Software license . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 Hardware 4
3.1 Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.2 Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.2.1 P1 Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.2.2 P3 Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.2.3 P4 Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.2.4 P5 Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4 Electronics 8
4.1 USB to UART bridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.2 I2C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.2.1 I2C Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.2.2 RTC Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2.3 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2.4 EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.3 Reset Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.4 FAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.5 User RGB Led . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5 Software 13
7 Annexes 14
7.1 Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
7.2 BOM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
7.3 Document revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.4 Disclaimer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
http://www.techno-innov.fr
1 Introduction
You are reading the System Reference Manual for the PiSerialPower RPi Hat.
The PiSerialPower RPi Hat is an electronics development and prototyping adapter board for Raspberry PI
SBC’s 1 .
The PiSerialPower RPi Hat has a 5-28V DC to 5V@A3 power stage with a common barel Jack connector, a Small
but powerfull FAN, an USB-UART interface to provide easy access to the Linux console, and also provides a RTC
with Super-Capa power backup, a temperature sensor, a RGB led, and a reset button.
The Board uses the form factor specified by the RPI designers, leaving access to both camera connectors to the
whole expansion connector (though some signals are used to interface with the board’s components) and to the four
mounting screw-holes.
It also includes a factory programmed (but user accessible) Eeprom for automatic board detection and configuration
by the Linux system.
The PiSerialPower RPi Hat is designed for users interested in embedded ARM development using free, libre and
open source softwares only.
Every information about the design is available and all components documentations are freely accessible. You can
download the source files for the PiSerialPower RPi Hat and modify them using KiCad 2 EDA (GPL) according to
the license terms found in the license section.
You can create and produce your own PiSerialPower RPi Hat or a modified version (but not sell them).
In this document the PiSerialPower RPi Hat will also be referred to as the HAT.
2 Licenses
The PiSerialPower RPi Hat hardware and schematics are under Creative Commons CC BY-SA-NC 4.0 4 License.
You can produce your own original or modified version of the PiSerialPower RPi Hat, and use it however you like,
but not sell them, even without profit.
All the software examples created for the PiSerialPower RPi Hat are under GPLv3 License.
1. https://www.raspberrypi.org/
2. http://www.kicad-pcb.org/display/KICAD/
3. https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
4. https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
http://www.techno-innov.fr
3 Hardware
3.1 Dimensions
Fig 3 – FAN
Figures 1, 2 and 3 give the different dimensions and the positions of the main elements (FAN, connectors, reset
button and user led) of the PiSerialPower RPi Hat.
http://www.techno-innov.fr
3.2 Connectors
The HAT has one USB connector numbered P1, a DC barel Jack connector numbered P3, and two 2.54mm
pitch headers numbered P4 and P5. Refer to figure 4 for connectors position and to table 1 for a short description.
Detailed description of the signals found on each connector pin follow.
Name Description
P1 USB microB female connector.
P3 DC barrel jack. +Vin and ground input.
P4 4 pins, 2.54mm pitch header. Provides Debug UART and Reset.
P5 40 pins, 2.54mm pitch header. Provides access to RPI expansion header.
3.2.1 P1 Connector
5. http://fr.wikipedia.org/wiki/Universal_Serial_Bus
http://www.techno-innov.fr
3.2.2 P3 Connector
Fig 5 – P3 Connector
3.2.3 P4 Connector
P4 connector is a standard 2.54mm (0.1 inch) pitch header, with 1 row of 4 pins.
P4 connector provides access to Debug UART and Reset.
Note : P4 connector allows direct access to the debug UART and to the power enable pin without
powering the USB-to-UART bridge. This option has been added to allow external access and control of
clusters of Raspberry Pi boards through a single UART concentrator with aditionnal GPIO to control
the DC/DC enable pin.
http://www.techno-innov.fr
3.2.4 P5 Connector
P5 connector is a standard 2.54mm (0.1 inch) pitch header, with 2 row of 20 pins.
P5 connector provides access to the Raspberry PI expansion header.
http://www.techno-innov.fr
4 Electronics
The PiSerialPower RPi Hat has been created using KiCad 6 EDA software suite for the creation of the schematics
and printed circuit boards.
See page 16 in the annexes for the full schematics. The sources for the schematics are available for download from
the Pi Serial Power HAT directory 7 on techdata.techno-innov.fr.
Name Description
U1 TI TPS54302 DC-DC step-down converter.
U2 FTDI FT230XS USB to UART bridge.
U5 NXP PCF85363 RTC Clock
U6 TI TMP101 I2C temperature sensor.
U7 ST M24C64 8KB EEPROM
U8 WS2812B user RGB led.
D1 Input power Presence.
D2 Green led : FTDI Rx activity.
D3 Orange led : FTDI Tx activity.
D4 USB FTDI Power OK.
D5 +3.3V Power from RPi.
D6 +5V to RPi.
D7 +5V from RPi.
SW1 Reset button.
J1 EEPROM write protection jumper (remove for write protection)
6. http://www.kicad-pcb.org/display/KICAD/
7. https://techdata.techno-innov.fr/Adapters/PiSerialPower/
http://www.techno-innov.fr
In order to ease the development process on Raspberry Pi the HAT provides an USB to UART bridge.
This bridge is made by a FTDI FT230XS chip, which is well supported on most operating systems so there is usually
no configuration required to use it as a serial line on the host development system. It provides a 3.3V regulated
voltage for the UART interface but does not power the HAT or the Raspberry Pi.
The FTDI chip controls two "activity" leds for Rx (D2, the green one) and Tx (D3, orange one) data over the
serial link.
The USB to UART bridge is connected to UART0 (pins 8 and 10) on the RPi connector. On most variants of
the RPi boards this interface must be activated manually in the device tree or in the bootloader configuration on
the first partition of the SD card. Refer to the Raspberry Pi User Manual and online documentation and other
ressources for more information on how to activate this interface.
4.2 I2C
The PiSerialPower RPi Hat uses both I2C busses from the RPi connector.
Bus 0 holds the required EEPROM for HAT identification and configuration, at address 0x50.
Bus 1 holds the TMP101 temperature sensor at address 0x4A and the PCF85363 RTC clock at address 0x51.
http://www.techno-innov.fr
Table 6 shows all the possible I2C Addresses for the components used on the HAT.
The PiSerialPower RPi Hat includes a PCF85363 RTC with super-capacitor power backup.
The use of a Super-capacitor for power backup lowers the environmental footprint and remove the need to replace
(and dispose of) the battery at the expense of a shorter time retention, which is between one and two months, but
should be enough for most applications.
The Linux kernel has support for the PCF85363 RTC in the rtc-pcf85363 module.
After loading the rtc-pcf85363 module in the kernel, you must add the RTC to the list of devices on the I2C bus 1 :
echo pcf85363 0x51 > /sys/bus/i2c/devices/i2c-1/new_device
This is not necessary if the device tree is loaded from the EEPROM.
You can the access the RTC from /dev/rtc0 or with the hwclock command (from the util-linux package
on Debian based GNU/Linux distributions.
The HAT has a TMP101 temperature sensor (from Texas Instrument) on the I2C bus 1 (address 0x94 / 0x95).
This temperature sensor has an "alert" function available through a dedicated pin. This pin is routed to pin 11
of the RPI connector (GPIO0_17) which allows the temperature sensor to send an event to the Raspberry Pi.
http://www.techno-innov.fr
Refer to the Raspberry Pi User Manual for more information on how to use this signal, and to the TMP101
documentation for more information on the temperature alert signal.
The Linux kernel has support for the TMP101 temperature sensor in the lm75 module.
Once the lm75 module is loaded in the kernel, you must add the TMP101 sensor to the list of devices on the I2C
bus 1 :
echo tmp101 0x4a > /sys/bus/i2c/devices/i2c-1/new_device
This is not necessary if the device tree is loaded from the EEPROM.
You can then read the temperature using the "sensors" command, which is provided by the lm-sensors package
on Debian based GNU/Linux distributions.
4.2.4 EEPROM
Fig 12 – EEPROM
In order to respect the Pi HAT design requirements the PiSerialPower RPi Hat has a 24C64 (8Kbyte) EEPROM
http://www.techno-innov.fr
The module has a reset button, connected directly to the enable pin of the step down regulator.
Pressing the button removes power from this power source, which will immediately shut down the Raspberry Pi if
it has no other power source, or do nothing if the RPi is also powered from its type C USB connector or any other
way.
4.4 FAN
The module has a 25mm cooling FAN controlled by pin 33 of the RPI connector (GPIO_13 - PWM1).
This pin is PWM capable, which allows you to control the FAN speed, though the fan used has an internal controller
which prevents direct control using PWM, so we added a simple charge pump to modulate the fan voltage, which
has the effect of modifying the FAN speed.
http://www.techno-innov.fr
Refer to the Raspberry Pi User Manual and online documentation and other resources for more information on
how to control the PWM output.
The module has one WS2812B RGB Led connected to pin 12 of the RPI connector (GPIO_18 - PWM0). This
Led is available for the user.
Refer to the Raspberry Pi User Manual and online documentation and other resources for more information on how
to control this WS2812B RGB Led.
5 Software
We noticed that software information evolves way too quickly to be included in such a documentation.
You will find all relevant information on our public wiki : http://wiki.techno-innov.fr/index.php/Products/PiSerialPower 8
6.1 v0.1
6.2 v0.2
8. http://wiki.techno-innov.fr/index.php/Products/PiSerialPower
http://www.techno-innov.fr
7 Annexes
7.1 Schematics
The board schematics and PCB layout have been created using KiCad 9 EDA software suite. You can download
the sources on the Wiki HAT page 10 on Techno-Innov.fr.
9. http://www.kicad-pcb.org/display/KICAD/
10. http://wiki.techno-innov.fr/index.php/Products/PiSerialPower
http://www.techno-innov.fr
Vin
100nF +5C Q1
G
10uH
D1
L1
1
Barrel Jack 5 2
A 5V_en EN SW MosP A
D6
D7
R14
R16
1
1
DGND 5.5A 12.5mm BCV62 U3
0603
R15
100k
1 4 4 3 U7 ID
LED 0603
E_Tr2 E_Tr1
Blue
7V to 28V DC GND FB 100k 8
VCC
0603
0603
C8 C9 C10
3.9k
3.9k
LED 0603
LED 0603
2
0603R3
Blue
Blue
SOT23-6 U1
2
2
7
SOIC_8
+VCC DGND WP
0603 C7 22uF 22uF 22uF 1 2
0805
0805
0805
BC_Tr2 C_Tr1
2
82pF 1 6
A0 SCL ID_SCL
SOT143 2
A1
J1
5
2mm
SDA
10k
C2 C1 R4 à 13.3k pour 5V DGND 3
A2
ID_SDA
3.9k
3.9k
R1 0603
5.23k pour 12V Tester à 13.3k
10k
47k
13.7k
4
R10 0603
R13 0603
R4 0603
22k pour 3.3V GND
R11 0603
R12 0603
10uF 10uF
0805
0805
EEPROM
DGND
Pour 5V - L1 = 10uH - C7 = 75pF DGND
DGND DGND DGND Pour 12V - L1 = 15uH - C7 = 100pF DGND DGND DGND DGND
2
C3 C4 SW1 H1
R17
R18
+5C 5V_en HOLE_RPi
P5
3
+3,3V
D4
D5
0603
0603
12
10
1
1
Reset
3.9k
3.9k
B 10uF 100nF U2 SSOP16 H2 B
RPi
Blue
Blue
0603
0603
0603
DGND
1 1 2 HOLE_RPi
LED 0603
LED 0603
TxD RxD_RPi P4
Ferrite Bead
VCC
4 3 4 4
2
2
H3
FB1
DGND RxD TxD_RPi I2C_SDA 5V_en
VCCIO
3V3Out
2 5 6 3
1
P1 9 RTS I2C_SCL RxD_RPi HOLE_RPi
USBDM 6 7 8 2
USB_5V 8 CTS RTC_GPIO TxD_RPi TxD_RPi H4
Debug
+V
1 USBDP 9 10 1
2 USB_DM 16 RxD_RPi HOLE_RPi
0603
0603
D- Sleep Green 11 12
2k
2k
15 2 1 T_ALRT Fancy DGND 2.54mm
D+
3 USB_DP 11 TxDEN 270 13 14
R8
R9
Reset 14 D2 0603 R6
ID
4 3V_USBIO RxLED LED 0603 15 16
5 7
GND TxLED Orange 0603 R7 17 18
GND
GND
C5 2 1
270 19 20
D3
5
DGND DGND
13
MUSB DGND FT230XS LED 0603 21 22
100nF
Rx and Tx leds Fan +5C
0603
microUSB type AB 23 24
Choose two different colors 25 26
female DGND
DGND 27 28
ID_SDA ID_SCL
29 30 FAN_PWM
31 32
10k
0603
R19
33 34 U9
RTC with battery backup FAN_PWM
Temperature sensor 35 36 +5C
G1
+3,3V
37 38 5 6
C S1 D1 C
+3,3V +Vbatt 39 40
U6 SOT23-6
PCF85363ATT 1
SCL SDA
6
2.54mm - 2x20
2
S2 D2
4 CMD_FAN
8 1 I2C_SCL I2C_SDA
VDD OSCI 2 5
GND AD0
G2
7 2 3 4
RTC_GPIO CLK/INTA OSCO T_ALRT ALERT V+ RPi connector
DGND
3
6 3 Y1 DGND DMG6602
SCL VBAT
1
0603
C11 C12 C13
0603
R20
5 4
I2C_SDA SDA GND
DGND
TSSOP8 U5 15pF 15pF 100nF 2.54mm
+3,3V RGB Status led
0603
0603
DGND 1 CMD_FAN_Filt
Unusefull thus absolutely necessary 2
Fan
DGND DGND
C15
C14
WS2812B P2 DGND
1 4
+5C +Vbatt VCC SI Fancy H5 22uF
0805
LP2985AIM5-3.0 Ch1 D8
Ch2 100nF 2 3 HOLE_2.75mm
0603
7.2 BOM
http://www.techno-innov.fr
http://www.techno-innov.fr
Note : Components used on Board may change for functionnally equivalent references without prior
notice
7.4 Disclaimer
The PiSerialPower RPi Hat is provided "as is" without warranty of any kind, either expressed or implied, including,
but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as
to the quality and performance of the PiSerialPower RPi Hat is with you. Should the PiSerialPower RPi Hat prove
defective, you assume the cost of all necessary servicing, repair or correction.
http://www.techno-innov.fr