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

Ras pi supercap ups

akuker/SuperUPS7

This is a fork of the original Supercapacitor UPS board for a Raspberry Pi by Scott Baker, http://www.smbaker.com/

Size
65 × 56 mm
Copper layers
2
Thickness
1.6 mm
Parts
88
Nets
72
Pads
247
Tracks, vias
470, 73
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
19 May 2022
Updated
11 Apr 2023

Overview

Ras pi supercap ups is an open-source printed circuit board by akuker, from the akuker/SuperUPS repository on GitHub. It is a 2-layer board of 65 × 56 mm with 88 parts on 72 nets, routed with 470 tracks and 73 vias.

It is built around the STM8S003F3P6, TPS54331DR-JSM and KA431SMFTF, with the AMS1117-3.3, PTVSHC3D15VUH and B340A among its other parts. Its parts include 28 resistors, 22 capacitors, 9 diodes, 8 ICs and 8 connectors. It belongs with the power boards and the STM8 boards of this library.

Main components

6

README

README.md

Supercapacitor UPS board for Raspberry Pi

This is a fork of the original Supercapacitor UPS board for a Raspberry Pi by Scott Baker, http://www.smbaker.com/

This fork is intended to improve producability, documentation and provide tighter integration with the RaSCSI project. This project does NOT require a RaSCSI to function.

See SETUP.md for setup instructions

Very early 3D renderings

Why not other Supercapacitor designs?

Most of the existing Raspberry Pi UPS designs rely on GPIO pins to alert the Raspberry Pi of a power loss. The RaSCSI design makes heavy usage of the GPIO pins, so there are not sufficient spare to allow this. This design will utilize a microcontroller to manage the power and allow the Rapsberry Pi to read the status through I2C.

Purpose

These boards are supercapacitor-based uninterruptable power supplies. The supercapacitor charges when power is applied, then when the power supply is terminated, the supercapacitor will operate the device long enough for it to shut down safely.

Design - 12V board (5v output)

The 12V board uses five 2.7V supercapacitors in series, with 2.7V shunt regulators to ensure that no single capacitor is charged to more than 2.5 volts. A 3W resistor is used to limit the current that charges the capacitors. A jumper is provided to allow the capacitors to be rapid discharged. A mosfet is added to allow the load to be turned on/off.

Note: Scott Baker's original design also included a version of the UPS board that took a 5v input. This fork is focusing on the 12v version and will not include the 5v input version.

Microcontroller manager

An ATTiny85 is used as the controller for the UPS. Now a STM8 due to the parts shortages. The microcontroller monitors the battery voltage and the incoming voltage, and switches the load on and off. The microcontroller supports I2C and can be interfaced directly to a raspberry pi.

The microcontroller is also responsible for noticing when power has been restored, and turning the load back on.

Design Overview

Linux Daemon

A Linux daemon, running on the raspberry pi, monitors the voltage by making i2c queries to the ups board's microcontroller. If the daemon sees the incoming voltage drop, then it will initiate shutdown, by running the shutdown command. The shutdown command will terminate processes, unmount the filesystem, etc.

~~As a final step during shutdown, Linux systemd will execute a script that will tell the microcontroller to turn off the load. At this point, the root filesystem has been remounted readonly, so the board can safely be powered off. ~~

smb-pi-lib

Scott Baker has a second repository that has common code for a number of my projects, including the ups. It's located at https://github.com/sbelectronics/smb-pi-lib

Acknowledgements

  • Scott Baker for doing a fantastic supercapcitor based UPS design.
  • David Gesswein's MFM Emulator was the inspiration for the supercapacitor charing circuit.

Parts

88
QtyValueFootprintReferences
71kResistor_SMD:R_0805_2012MetricR7, R14, R15, R16, R18, R19, R27
510FCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC1, C2, C3, C4, C5
51kResistor_SMD:R_1206_3216MetricR2, R3, R4, R5, R6
5KA431SMFTFPackage_TO_SOT_SMD:SOT-23U1, U2, U3, U4, U5
410kResistor_SMD:R_0805_2012MetricR8, R9, R12, R20
410uCapacitor_SMD:C_0805_2012MetricC7, C8, C10, C13
4GreenLED_SMD:LED_0805_2012MetricD3, D5, D6, D9
4MountingHoleMountingHole:MountingHole_2.7mm_M2.5H1, H2, H3, H4
3100nCapacitor_SMD:C_0805_2012MetricC9, C14, C18
32.2kResistor_SMD:R_0805_2012MetricR10, R11, R13
210 3Wraspberrypi_supercap_ups_lib:SMT_Resistor_4122R1, R28
21uCapacitor_SMD:C_0805_2012MetricC11, C12
233uCapacitor_SMD:C_0805_2012MetricC21, C23
24.7nCapacitor_SMD:C_0805_2012MetricC17, C20
24.7uCapacitor_SMD:C_0805_2012MetricC15, C16
2B340LA-13-FDiode_SMD:D_SMAD2, D4
2Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1, J3
2Fuse_SmallFuse:Fuse_1206_3216MetricF1, F2
2PTVSHC3D15VUHDiode_SMD:D_SOD-323D1, D7
10Resistor_SMD:R_0805_2012MetricR24
11.5kResistor_SMD:R_0805_2012MetricR26
110.2kResistor_SMD:R_0805_2012MetricR25
110nCapacitor_SMD:C_0805_2012MetricC19
1171826-4raspberrypi_supercap_ups_lib:TE_171826-4J5
1200Resistor_SMD:R_0805_2012MetricR33
1332kResistor_SMD:R_0805_2012MetricR21
139pCapacitor_SMD:C_0805_2012MetricC22
149.9kResistor_SMD:R_0805_2012MetricR23
16.8uHraspberrypi_supercap_ups_lib:Sunltech_SLO0530HL1
168.1kResistor_SMD:R_0805_2012MetricR22
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U6
1B340ADiode_SMD:D_SMAD8
1Barrel_JackConnector_BarrelJack:BarrelJack_Wuerth_6941xx301002J10
1Charge EnbJumper:SolderJumper-2_P1.3mm_Bridged_RoundedPad1.0x1.5mmJP1
1Conn_01x05Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ2
1LEDs and ButtonsConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ6
1Logo_Open_Hardware_SmallSymbol:OSHW-Logo_7.5x8mm_SilkScreenZ4
1Logo_Open_Hardware_SmallSymbol:KiCad-Logo_5mm_CopperZ3
1Logo_Open_Hardware_SmallSymbol:CE-Logo_8.5x6mm_SilkScreenZ2
1Raspberry_Pi_2_3Connector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_VerticalJ8
1Resetraspberrypi_supercap_ups_lib:SW_TS-1187A-B-A-BSW1
1STLinkV2 ConnectorConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ7
1STM8S003F3PPackage_SO:TSSOP-20_4.4x6.5mm_P0.65mmU7
1SYM_Hot_Smallraspberrypi_supercap_ups_lib:hot_warning_4Z1
1TPS54331DRraspberrypi_supercap_ups_lib:SOIC127P599X175-8NU8

More from akuker/SuperUPS

1
  • 2 layers65 × 63 mmRas pi supercap ups, the printed circuit board in 3D

    Ras pi supercap ups

    akuker/SuperUPS

    This is a fork of the original Supercapacitor UPS board for a Raspberry Pi by Scott Baker, http://www.smbaker.com/

    18 parts7

Similar boards

  • 4 layers120 × 108 mmDk2 06, the printed circuit board in 3D

    Dk2 06

    mattybrad/drumkid2

    189 parts12GPL-3.0
  • 2 layers67 × 45 mmUVDAR Board, the printed circuit board in 3D

    UVDAR Board

    ctu-mrs/mrs_hw_uvdar

    Hardware for UVDAR.

    63 parts1MIT
  • 4 layers90 × 120 mmBody, the printed circuit board in 3D

    Body

    mattybrad/bjarkardottir2

    A synthesizer/guitar hybrid. Somewhere between a MIDI guitar and a synthesizer. Not commercially viable. A time sink. A rabbit hole. An obsession. A mistake. An exercise in blind faith. A reason to tidy the shed.

    294 parts1
  • 4 layers234.1 × 105.6 mmGameconsole, the printed circuit board in 3D

    Gameconsole

    Nikhil-Krishnamurthy/Retro-Gaming-Handheld

    This project was creating a gaming handheld from scratch, including cadding the case and designing the pcb. This handheld will run retro games up to the SNES.

    118 parts1
  • 4 layers54 × 104 mmStomp 01, the printed circuit board in 3D

    Stomp 01

    mattybrad/omnistomp

    93 partsGPL-3.0
  • 4 layers82 × 61 mmBeetletriple, the printed circuit board in 3D

    Beetletriple

    goktugh/robotbits

    Some bits for robots or other control applications

    76 parts
  • 2 layers32.1 × 41.2 mmIr signalgen lite, the printed circuit board in 3D

    Ir signalgen lite

    dilshan/ir-clone

    Open-source infrared remote control signal analysis and generating tool

    40 parts58MIT

Questions

How big is the Ras pi supercap ups PCB?

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

What parts does the Ras pi supercap ups use?

88 parts, built around the STM8S003F3P6, TPS54331DR-JSM, KA431SMFTF and AMS1117-3.3. 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 Ras pi supercap ups KiCad files?

From the akuker/SuperUPS repository on GitHub, at the commit this page was made from: the board is hw/v1p0/ras_pi_supercap_ups.kicad_pcb and its schematic hw/pogo_holder/ras_pi_supercap_ups.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

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

Its repository states no licence, so its author keeps all rights: ask akuker before reusing the design.