Changes

Jump to navigation Jump to search

UPS3

966 bytes added, 00:16, 13 May 2021
==User Manual==
*[[UPS3 power off guide]]*The charge level indicators (RGB LED) is controlled by program, script please refer to Github: https://github.com/geekworm-com/ups3
==FAQ==
QQ1: '''Customer feedback 1:''' I have an issue with UPS hat 3. I tried to use battery from the old tablet and pack of cells, but none of them work well and the raspberry is turning off about 0.5 to 1 second after disconnecting the power. I'm not sure, that it's problem of batteries or hat itself. Do you have any suggestions what is wrong? Could you suggest which batteries works best?
A: I guess, I found the reason why the UPS hat is not working properly. My raspberry pi is overclocked to 2.0GHz and also has increased voltage. When I use the defaults voltage and clock values in the configuration file it works better, but still I think my batteries are too weak. I'll do more tests and let you know. Currently, I find it important to note that overclocking is bad for the condition of the UPS 3 hat.
A: Yes, it is ok to use 12VDC directly.
 
 
Q2: We want automatic shutdown when the external AC power supply is disconnected, is possible?
 
A: Yes. you can program a script to get this function. Example (The following is a pseudo code):
<pre>
 
while (1) {
// invoke the API to get AC PSU status: connected or disconnected
int disconnected_flag = getACPSUStatus(); // please refer to the user manual to achieve getACPSUStatus function;
int battery_voltage = getBatteryVoltage(); // please refer to the user manual to achieve getBatteryVoltagefunction;
// You can make your own actions based on disconnected_flag and battery_voltage, you can only select one condition also
if (disconnected_flag) {
// execute linux or software shutdown command
}
 
sleep(10);
}
 
</pre>
 
 
Q3: How to restart the pi board when AC Power supply is connected?
 
A: Please enable 'AUTO POWER ON' or 'AUTO ON' function if you want restart when the AC Power supply is reapplied.
<!--Add review function! -->

Navigation menu