
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/

This is a fork of the original Supercapacitor UPS board for a Raspberry Pi by Scott Baker, http://www.smbaker.com/
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.
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
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.
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.
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.
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.
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. ~~
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
| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | 1k | Resistor_SMD:R_0805_2012Metric | R7, R14, R15, R16, R18, R19, R27 |
| 5 | 10F | Capacitor_THT:CP_Radial_D10.0mm_P5.00mm | C1, C2, C3, C4, C5 |
| 5 | 1k | Resistor_SMD:R_1206_3216Metric | R2, R3, R4, R5, R6 |
| 5 | KA431SMFTF | Package_TO_SOT_SMD:SOT-23 | U1, U2, U3, U4, U5 |
| 4 | 10k | Resistor_SMD:R_0805_2012Metric | R8, R9, R12, R20 |
| 4 | 10u | Capacitor_SMD:C_0805_2012Metric | C7, C8, C10, C13 |
| 4 | Green | LED_SMD:LED_0805_2012Metric | D3, D5, D6, D9 |
| 4 | MountingHole | MountingHole:MountingHole_2.7mm_M2.5 | H1, H2, H3, H4 |
| 3 | 100n | Capacitor_SMD:C_0805_2012Metric | C9, C14, C18 |
| 3 | 2.2k | Resistor_SMD:R_0805_2012Metric | R10, R11, R13 |
| 2 | 10 3W | raspberrypi_supercap_ups_lib:SMT_Resistor_4122 | R1, R28 |
| 2 | 1u | Capacitor_SMD:C_0805_2012Metric | C11, C12 |
| 2 | 33u | Capacitor_SMD:C_0805_2012Metric | C21, C23 |
| 2 | 4.7n | Capacitor_SMD:C_0805_2012Metric | C17, C20 |
| 2 | 4.7u | Capacitor_SMD:C_0805_2012Metric | C15, C16 |
| 2 | B340LA-13-F | Diode_SMD:D_SMA | D2, D4 |
| 2 | Conn_01x03 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J1, J3 |
| 2 | Fuse_Small | Fuse:Fuse_1206_3216Metric | F1, F2 |
| 2 | PTVSHC3D15VUH | Diode_SMD:D_SOD-323 | D1, D7 |
| 1 | 0 | Resistor_SMD:R_0805_2012Metric | R24 |
| 1 | 1.5k | Resistor_SMD:R_0805_2012Metric | R26 |
| 1 | 10.2k | Resistor_SMD:R_0805_2012Metric | R25 |
| 1 | 10n | Capacitor_SMD:C_0805_2012Metric | C19 |
| 1 | 171826-4 | raspberrypi_supercap_ups_lib:TE_171826-4 | J5 |
| 1 | 200 | Resistor_SMD:R_0805_2012Metric | R33 |
| 1 | 332k | Resistor_SMD:R_0805_2012Metric | R21 |
| 1 | 39p | Capacitor_SMD:C_0805_2012Metric | C22 |
| 1 | 49.9k | Resistor_SMD:R_0805_2012Metric | R23 |
| 1 | 6.8uH | raspberrypi_supercap_ups_lib:Sunltech_SLO0530H | L1 |
| 1 | 68.1k | Resistor_SMD:R_0805_2012Metric | R22 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U6 |
| 1 | B340A | Diode_SMD:D_SMA | D8 |
| 1 | Barrel_Jack | Connector_BarrelJack:BarrelJack_Wuerth_6941xx301002 | J10 |
| 1 | Charge Enb | Jumper:SolderJumper-2_P1.3mm_Bridged_RoundedPad1.0x1.5mm | JP1 |
| 1 | Conn_01x05 | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J2 |
| 1 | LEDs and Buttons | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J6 |
| 1 | Logo_Open_Hardware_Small | Symbol:OSHW-Logo_7.5x8mm_SilkScreen | Z4 |
| 1 | Logo_Open_Hardware_Small | Symbol:KiCad-Logo_5mm_Copper | Z3 |
| 1 | Logo_Open_Hardware_Small | Symbol:CE-Logo_8.5x6mm_SilkScreen | Z2 |
| 1 | Raspberry_Pi_2_3 | Connector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_Vertical | J8 |
| 1 | Reset | raspberrypi_supercap_ups_lib:SW_TS-1187A-B-A-B | SW1 |
| 1 | STLinkV2 Connector | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J7 |
| 1 | STM8S003F3P | Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm | U7 |
| 1 | SYM_Hot_Small | raspberrypi_supercap_ups_lib:hot_warning_4 | Z1 |
| 1 | TPS54331DR | raspberrypi_supercap_ups_lib:SOIC127P599X175-8N | U8 |

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




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.

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.



dilshan/ir-clone
Open-source infrared remote control signal analysis and generating tool
It measures 65 × 56 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask akuker before reusing the design.