By markus.sand - Sun Nov 22, 2020 8:12 pm
- Sun Nov 22, 2020 8:12 pm
#43582
Anyone out there who really got the UPS HAT working?
Tried to use it on a Pi2 Model B, but it will not keep the power up after I intentionally unplug the PSU.
So the first basic question is:
How should the DFR0528 supply power to the Pi2? Via the GPIO connectors?
Because I can´t measure 5V at Pin 2 or 4 of the DFR0528 if unconnected (Pi2 disconnected, PSU disconnected, Lithium battery connected and fully charged).
Or how else?
Second question:
How should input voltage be supplied to the Pi2/DFR0528 composition?
Micro-USB of Pi2 or Micro-USB of DFR0528?
Third question:
If I connect the DFR0528 to the Pi2 (Pin1 to Pin1), and connect the PSU only to the Pi2, I am not able to reliably read the values of the battery with the script from the Wiki (https://wiki.dfrobot.com/UPS%20HAT%20fo ... %20DFR0528).
Most of the time, I´ll get a "[Errno 121] Remote I/O error" reading the bytes.
If I do connect the DFR0528 to the PSU, too, then reading the values works reliably.
BUT: If I remove the power cable from the Pi2 then (simulating a power drop, or lets say, dusk in a solar powered environment), it will encounter a hard power off. This is exactly what the HAT should avoid, right?
So any hints what I´m doing wrong here?
Sorry, but I couldn´t find the answer to my questions in the Wiki (maybe they´re there, but I cannot read between the lines well enough)
I´m a little lost here, so will be thankful for any hints
Also, the mentioned Wiki contains some confusing typos and errors - and I´m obviously not allowed to edit there. So whom to contact to ask to correct them?
Tried to use it on a Pi2 Model B, but it will not keep the power up after I intentionally unplug the PSU.
So the first basic question is:
How should the DFR0528 supply power to the Pi2? Via the GPIO connectors?
Because I can´t measure 5V at Pin 2 or 4 of the DFR0528 if unconnected (Pi2 disconnected, PSU disconnected, Lithium battery connected and fully charged).
Or how else?
Second question:
How should input voltage be supplied to the Pi2/DFR0528 composition?
Micro-USB of Pi2 or Micro-USB of DFR0528?
Third question:
If I connect the DFR0528 to the Pi2 (Pin1 to Pin1), and connect the PSU only to the Pi2, I am not able to reliably read the values of the battery with the script from the Wiki (https://wiki.dfrobot.com/UPS%20HAT%20fo ... %20DFR0528).
Most of the time, I´ll get a "[Errno 121] Remote I/O error" reading the bytes.
If I do connect the DFR0528 to the PSU, too, then reading the values works reliably.
BUT: If I remove the power cable from the Pi2 then (simulating a power drop, or lets say, dusk in a solar powered environment), it will encounter a hard power off. This is exactly what the HAT should avoid, right?
So any hints what I´m doing wrong here?
Sorry, but I couldn´t find the answer to my questions in the Wiki (maybe they´re there, but I cannot read between the lines well enough)
I´m a little lost here, so will be thankful for any hints

Also, the mentioned Wiki contains some confusing typos and errors - and I´m obviously not allowed to edit there. So whom to contact to ask to correct them?