geeekpi / upsplus

UPS Plus is a new generation of UPS power management module. It is an improved version of the original UPS prototype. It has been fixed the bug that UPS could not charge and automatically power off during work time. It can not only perform good battery power management, but also provide stable voltage output and RTC functions. At the same time,it support for FCP, AFC, SFCP fast charge protocol, support BC1.2 charging protocol, support battery terminal current/voltage monitoring and support two-way monitoring of charge and discharge. It can provide programmable PVD function. Power Voltage Detector (PVD) can be used to detect if batteries voltage is below or above configured voltage. Once this function has been enabled, it will monitoring your batteries voltage, and you can control whether or not shut down Raspberry Pi via simple bash script or python script. This function will protect your batteries from damage caused by excessive discharge. It can provide Adjustable data sampling Rate. This function allows you to adjust the data sampling rate so that you can get more detailed battery information and also it will consume some power. The data sampling information can communicate with the upper computer device through the I2C protocol. UPS Plus supports the OTA firmware upgrade function. Once there is a new firmware update, it is very convenient for you to upgrade firmware for UPS Plus. The firmware upgrade can be completed only by connecting to the Internet,and execute a python script. Support battery temperature monitoring and power-down memory function. UPS Plus can be set to automatically start the Raspberry Pi after the external power comes on. The programmable shutdown and forced restart function will provide you with a remote power-off restart management method. That means you don’t need to go Unplug the power cable or press the power button to cut off the power again. You can set the program to disconnect the power supply after a few seconds after the Raspberry Pi is shut down properly. And you can also reconnect the power supply after a forced power failure to achieve a remote power-off and restart operation. Once it was setting up, you don't need to press power button to boot up your device which is very suitable for smart home application scenarios.
https://wiki.52pi.com/index.php?title=UPS_Plus_SKU:_EP-0136
MIT License
73 stars 25 forks source link

Raspberry power intermittent when battery is lower than batt_voltage paramater on script #115

Closed budiroots closed 7 months ago

budiroots commented 1 year ago

Hi dev,

Currently i have more than 10 UPS EP-0136 and running on each Pi 4. Your python script is working well when power outage happened and battery voltage is lower than we configured, the Pi will shutdown automatically. When power comes in next 3-4 hour, the Pi will turn on automatically with back-to-ac script enabled.

We are facing an issue when power outage happen more than 48H, I check with power meter the battery voltage is discharge little by little when Pi is off and power outage still happening until battery voltage is zero volt, when power comes the raspberry power will intermittent turn on and turn off because the battery voltage is not enough to turn on the Pi.

Do you have script to check and charge the battery first when power comes, after the battery voltage is more than configuration the Pi will turn on.

Please help.

Thank you

hellresistor commented 1 year ago

specs of your power supply ( amp)?

miamilabs commented 1 year ago

specs of your power supply ( amp)?

Used multiple power units.

140w Apple USB. Multi Country plug with 5V & 5A USB A / USB-C to USB-C.

Edit : RavPower , Anker USB Hubs also not working.

The test unit which i have and other units in my US office have also same symthoms as the user above.

budiroots commented 1 year ago

specs of your power supply ( amp)?

I use Samsung fast charging, 5v 3A type-c connector

yoyojacky commented 7 months ago

When the battery is connected to the device, although the UPS is turned off and does not output voltage, due to the internal resistance of the battery and the characteristics of the chip, the USB interface and TYPE-C interface behind the UPS will still have 3.3V power supply, so if When using UPS, please remove the battery to avoid running out of battery power.