Skip to content

Modifying the Geekworm UPS 1.1 HAT

jbaumann edited this page Oct 19, 2020 · 8 revisions

The Board

The following information and the pictures have been provided by Harald Sattler. Thank you, Harald.

The Geekworm UPS 1.1 hat can be recognized fairly easily because the text “Raspi UPS HAT V1.1” is printed on it. If you have one of these the modification (if we can call it that) is very simple and consists of two steps, soldering two cables to the UPS.

Adding the Power Cable

You need to solder one (red) cable to the anode of one of the diodes (the 2 black SMDs near the Micro USB connector and adjacent to the battery connector). The anode is the side without the ring i.e., the pin pointing toward the Micro USB connector. An alternative, as shown in the picture is to solder the cable directly to the battery connector. Another alternative would be to splice the cable into the battery cable itself.

Adding the Switch Cable

You need to solder one (orange) cable to the switch as shown in the picture.

Full View

The following picture gives an overview of the fully modified Geekworm v1.1:

Reset Configuration for the Geekworm UPS v1.1

For the modified Geekworm UPS v1.1 we need to „press“ the switch for 4 seconds, once to turn the UPS off, and a second time to turn it on again. Depending on whether you used the jumper on the ATTiny Daemon PCB to connect the ATTiny to the RPi’s 5V power you additionally let the system check the voltage (this is highly recommended). The config file entries for this are:

Option Name Default Comment
ups configuration 1|3 This value configures how the ATTiny daemon tries to reset the system:
Bit 0 = 1: Reset by „pressing“ a switch twice (pulling the line down for the reset pulse lenght turns the switch once)
Bit 1 = 0: Do not check external voltage (external voltage is not connected to RPi Vcc)
Bit 1 = 1: Check external voltage: (external voltage is connected to RPi Vcc)
Recommended for Geekworm UPS1v1.1 is the value 3 (including connecting the EXT_V pin to the RPi Vcc via the jumper)
pulse length 4000 This is the length of the pulse used to execute the reset (4000ms Since the switch has to be pressed)
switch recovery delay 1000 This is the time in ms to wait before „pressing“ the switch again (needed since we are in switch mode)