Skip to the content
2 layers65 × 56 mmPi supercap ups, the printed circuit board in 3D

Pi supercap ups

mairas/pi-super-ups2

Power Monitor for Raspberry Pi and SignalK

Size
65 × 56 mm
Copper layers
2
Thickness
1.6 mm
Parts
92
Nets
60
Pads
326
Tracks, vias
885, 502
Pours
6
Routed
Yes
KiCad
KiCad 5 (file 20190605)
Created
14 Dec 2018
Updated
8 Jan 2020

Overview

Pi supercap ups is an open-source printed circuit board by mairas, from the mairas/pi-super-ups repository on GitHub, published under the BSD-3-Clause licence. It is a 2-layer board of 65 × 56 mm with 92 parts on 60 nets, routed with 885 tracks and 502 vias.

It is built around the ATTINY841-SSU, MP1584EN and MT9700, with the DS3231MZ/V+, TPS61022 and DS34W among its other parts. Its parts include 31 resistors, 23 capacitors, 8 ICs, 8 diodes and 5 connectors. It belongs with the power boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

9

README

README.md

Pi Super-UPS

Hardware

TODO: Explain design goals

TODO: Explain features

The KiCad design files are in the hardware subdirectory. They are still untested and no suitability for any purpose is claimed.

PCB revision C

Firmware

The hardware needs some ATTiny13a code to correctly control the wakeup pin (GPIO3) state. This is still to be written!

Service software

Introduction

pi-super-ups is a simple power monitor for Raspberry Pi. It monitors a defined GPIO pin on the Raspberry Pi. If the pin goes high for ten seconds, a shutdown is triggered. Using GPIO 3 is highly recommended because that allows for automatic restarting when power is restored (pulling GPIO 3 low powers on the device if it is powered off).

The main use case for the script is to have the board powered via a couple of super-capacitors. In the case power for the board is disconnected, the supercaps are able to supply sufficient power that the device is able to shut itself down in a controlled fashion.

A sample circuit fulfilling the purpose is presented in the circuit subdirectory.

Installation

The monitor script can be installed by issueing the following command in the src subdirectory:

text
sudo python3 setup.py install

At this point, you should already be able to run the script. However, since calling poweroff requires elevated privileges, it is done using sudo. Give your preferred user permissions to call poweroff without a password by running sudo visudo and adding the following line:

text
pi ALL = NOPASSWD: /sbin/poweroff

Finally, to run the script automatically as a service, copy sk_power_monitor.service to /etc/systemd/system.

Usage

To configure the monitor behavior, directly edit the script file.

Parts

92
QtyValueFootprintReferences
10100nFCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC2, C3, C4, C5, C9, C10, C11, C14, C18, C27
810kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR2, R7, R19, R21, R24, R25, R29, R30
547uF 10VCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC1, C6, C16, C17, C19
4RPi_Hat:RPi_Hat_Mounting_Hole, , ,
40Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR4, R5, R6, R8
410uF 10VCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC20, C21, C22, C23
3100kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR20, R22, R27
3RLEDLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD3, D5, D11
21.5kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR9, R10
2120RResistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolderR11, R31
24.53kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR18, R23
2DS34WDiode_SMD:D_SOD-123FD2, D12
2MCP25625T-E_MLcustom:QFN65P600X600X100-29M-DIC1, IC2
2MT9700Package_TO_SOT_SMD:SOT-23-5_HandSolderingU6, U7
2TermConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP1, JP2
1+12V_protTestPoint:TestPoint_Keystone_5000-5004_MiniatureTP1
1100nCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC8
110uF 50VCapacitor_SMD:C_1206_3216Metric_Pad1.42x1.75mm_HandSolderC13
1150pFCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC15
11AFuse:Fuse_1206_3216Metric_Pad1.42x1.75mm_HandSolderF1
11uHInductor_SMD:L_Abracon_ASPI-0630LRL2
12.2kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR3
1200kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR12
1220pCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC7
1330kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR16
14.7kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR1
14.7uH 3.5AInductor_SMD:L_Abracon_ASPI-0630LRL1
140.2kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR15
143kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR17
154.9kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR13
168kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR26
17.5kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR28
193kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR14
1ATtiny841-SSUPackage_SO:SOIC-14_3.9x8.7mm_P1.27mmU1
1BAT54CPackage_TO_SOT_SMD:SOT-23D4
1CR1220 3Vcustom:BatteryHolder_Linx_BAT-HLD-012-SMTBT1
1Conn_02x07_Counter_Clockwisecustom:PinHeader_2x07_P2.54mm_Vertical_CounterClockwiseJ3
1DS3231MZPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU4
1GLEDLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD7
1GNDTestPoint:TestPoint_Keystone_5000-5004_MiniatureTP2
1MP1584ENPackage_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.35x2.35mmU5
1OSCTestPoint:TestPoint_Keystone_5000-5004_MiniatureTP5
1Raspberry_Pi_2_3Connector_PinHeader_2.54mm:PinHeader_2x20_P2.54mm_VerticalJ2
1S3D8.000000B20F30TOscillator:Oscillator_SMD_Abracon_ASE-4Pin_3.2x2.5mmX1
1SMF16CADiode_SMD:D_SOD-123FD1
1SW_SPSTConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalSW1
1Screw_Terminal_01x02custom:TerminalBlock_WJ15EDGRC-3.81-2PJ4
1Screw_Terminal_01x03custom:TerminalBlock_WJ15EDGRC-3.81-3PJ5
1Screw_Terminal_01x04custom:TerminalBlock_WJ15EDGRC-3.81-4PJ1
1TPS61022custom:TPS61022RWURU2
1VbuckTestPoint:TestPoint_Keystone_5000-5004_MiniatureTP8
1VcapTestPoint:TestPoint_Keystone_5000-5004_MiniatureTP3

Similar boards

  • 4 layers79 × 79 mmMinuet, the printed circuit board in 3D

    Minuet

    brown-studios/minuet

    Minuet upgrades your MAXXAIR Maxxfan with a brushless DC motor, home automation features, and accessories.

    103 parts67MIT
  • 4 layers26.2 × 76.2 mmPower sink only, the printed circuit board in 3D

    Power sink only

    fulgidus/hardware

    Learning KiCad takes time, and pollutes with weird and incomplete projects. Here they are...

    179 parts
  • 2 layers140 × 60 mmBDUCU, the printed circuit board in 3D

    BDUCU

    HKUST-Red-Bird-Racing-EVRT/GEN6_ELEC

    ELEC Github Repo for Gen 6

    172 parts
  • 4 layers86 × 56 mmSH RPi, the printed circuit board in 3D

    SH RPi

    kitspace-test-repos/kicad6-file-collection

    156 partsMIT
  • 6 layers83.5 × 56 mmEspiff v3 1, the printed circuit board in 3D

    Espiff v3 1

    MDCservice/EsPiFF

    An ESP32 in the Raspberry Pi form factor

    172 parts223GPL-3.0
  • 2 layers100 × 100 mmFrank pga2, the printed circuit board in 3D

    Frank pga2

    rh1tech/frank-lab

    FRANK Board Laboratory (work-in-progress board prototopyes)

    212 parts4GPL-3.0
  • 4 layers70 × 69.8 mmKarabas mini, the printed circuit board in 3D

    Karabas mini

    andykarpov/karabas-mini-pcb

    Karabas Go Mini PCB

    222 parts2

Questions

How big is the Pi supercap ups PCB?

It measures 65 × 56 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Pi supercap ups use?

92 parts, built around the ATTINY841-SSU, MP1584EN, MT9700 and DS3231MZ/V+. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Pi supercap ups KiCad files?

From the mairas/pi-super-ups repository on GitHub, at the commit this page was made from: the board is hardware/pi-supercap-ups.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Pi supercap ups design in my own project?

Its repository publishes it under the BSD-3-Clause licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).