From 30303f8afb157a9a3cc1742df5a49888fcee5ca5 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sat, 25 Nov 2023 09:31:51 +0100 Subject: [PATCH] create new draft post (UPS Raspberry pi) --- .../ups-plus-on-the-raspberry-pi-3/index.md | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 content/posts/2023/ups-plus-on-the-raspberry-pi-3/index.md diff --git a/content/posts/2023/ups-plus-on-the-raspberry-pi-3/index.md b/content/posts/2023/ups-plus-on-the-raspberry-pi-3/index.md new file mode 100644 index 0000000..6ae0a26 --- /dev/null +++ b/content/posts/2023/ups-plus-on-the-raspberry-pi-3/index.md @@ -0,0 +1,62 @@ ++++ +title = 'UPS Plus on the Raspberry Pi 3' +summary = '''I recently bought a UPS head for my Raspberry Pi 3 that +makes use of my akkus of the type 18650.''' +date = '2023-11-25T06:46:12+01:00' +#lastmod = '' +categories = [ 'amateur-radio' ] +tags = [] + +# showBreadcrumbs = true +# showDate = false +# showReadingTime = false +# showWordCount = false +# showPagination = false + +# feed_exclude = true +# site_exclude = true + +draft = true + ++++ + +in home dir + +```console +$ python3 -m venv . +$ curl -LsO https://raw.githubusercontent.com/geeekpi/upsplus/main/install.sh +$ bash install.sh +``` + +if errors occur, install by hand + +edit crontab to use the python version in your bin folder + +```crontab +* * * * * /home/dr/bin/python3 /home/dr/bin/upsPlus.py > /tmp/upsPlus.log +* * * * * /home/dr/bin/python3 /home/dr/bin/upsPlus_iot.py > /tmp/upsPlus_iot.log +``` + +get information + +```console +$ python3 bin/upsPlus.py +------------------------------------------------------------ +------Current information of the detected Raspberry Pi------ +------------------------------------------------------------ +Raspberry Pi Supply Voltage: 5.028 V +Raspberry Pi Current Current Consumption: 571.068 mA +Raspberry Pi Current Power Consumption: 2570.227 mW +------------------------------------------------------------ +-------------------Batteries information------------------- +------------------------------------------------------------ +Voltage of Batteries: 4.208 V +Battery Current (Charging) Rate: 30.000 mA +Current Battery Power Supplement: 263.415 mW +Successfully set the protection voltage to: 3700 mV +------------------------------------------------------------ +Currently charging via Type C Port. +``` + +The raspi works when power cable get pulled out. +