Possible Uninterruptible power supply for Pine64's SBC's
#5
(08-02-2022, 03:50 AM)CounterPillow Wrote:
(08-02-2022, 03:08 AM)GreyLinux Wrote: Unfortunately where I live I probably have a dozen or so power cuts a year , not as bad as some but enough to give me worry about the possible SD card corruption.

I use a Rockpro64 as a server and a NAS , I know I should invest in a emmc , but I'm not sure of a distro that supports it fully yet.

eMMC is supported by mainline kernels, so Debian/Armbian/Manjaro/etc. should work fine from eMMC. That won't prevent you from potentially getting filesystem corruption from power cuts though.

For immediate relief to your situation I think either an off-the-shelf UPS would do the trick, or a 12V lead-acid battery in parallel with the power input. This would keep the battery topped up while power is available, and if wall power gets removed, will automatically have the board powered from the battery. I'm no electrical engineer so I won't try to draw up a schematic, as I don't want to potentially spread a wrong circuit around.

For a more advanced solution, something like the TI BQ34110 might come in handy. It supports a wide range of battery chemistries, high capacities, high currents, and is designed for applications where the battery rarely gets discharged, like in UPSes. It communicates with the host through I²C, the only difficulty is that there is not yet a driver in Linux for this, but that can be remedied. The bigger issue is that this chip is currently unavailable due to supply issues, and won't be in stock until a year from now according to digikey.

So it'd be cool if we could find a comparable chip to the BQ34110. The BQ34Z110 looks promising, it only supports lead-acid but it is in stock. It also might actually have most of a driver already in drivers/power/supply/bq27xxx_battery_i2c.c. As for connecting the battery monitoring chip's I²C to the host board, something like Adafruit's STEMMA or SparkFun's QWIIC would be handy as a physical connector interface. That way people don't have to fiddle with individual jumper wires and PINE64 can just sell a STEMMA/QWIIC HAT for each board which is useful for things outside of the UPS.

Wow thats some incredible knowledge and could be a possible solution, I wonder if Pine64 would be interested in either developing the Hat you mention for each board or possibly a complete UPS solution. I had a quick look at the chips you linked, do you think the second one could work? it doesnt have the "integrated rarely discharged module" that the first one has, but as you said  the chip shortage is going to be a long term issue .
I will try and do some research about your temporary  solution regarding the 12V battery in parallel, hopefully I can post some finding back here.
Sorry I should have specified that of course emmc is supported in the linux kernel  but I believe the newer 5.x.x kernels have some issues with the emmc modules, Ive seen some mention of it on the Armbian forum. I use the SkiffOS distro currently and havent tried out a emmc module to see if it works.
I thought that Emmc modules were more resilient than SD cards when it comes to power outages and corruption but I guess memory storage and read/writes during a power outage still can lead to filesystem corruption.
  Reply


Messages In This Thread
RE: Possible Uninterruptible power supply for Pine64's SBC's - by GreyLinux - 08-02-2022, 04:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Link USB power strips for a cluster? shanefe 1 237 04-02-2024, 11:11 PM
Last Post: evilbunny
  Unable to connect to Pine64 IRC channel due to certificate error? Must-Borrow 1 422 03-10-2024, 02:43 PM
Last Post: Must-Borrow
  Forum Recommendations for Pine64 support? backwoodstech2 0 419 02-04-2024, 07:12 PM
Last Post: backwoodstech2
  Im thinking of building a Pine64 cluster Theirat1991 1 611 01-12-2024, 03:31 AM
Last Post: KC9UDX
  PINE64 EU / Disappointment yoriel79 1 920 12-24-2023, 11:00 PM
Last Post: meekice
  How is it going Pine64.org? Corfromleuven 2 1,094 12-23-2023, 08:15 PM
Last Post: polinkuer12
  Registering my 'nick' on Pine64's IRC network diederik 5 1,193 11-13-2023, 07:36 PM
Last Post: ilebagels
  [Article] Star64 JH7110: Power Up the Display Controller with U-Boot Bootloader lupyuen 0 682 09-02-2023, 10:13 AM
Last Post: lupyuen
  Pine Desktop PowerSupply wont power on BSharp 5 1,810 08-29-2023, 08:06 AM
Last Post: chickenplusone
  power/battery usage on risc-v vs arm64? zetabeta 1 794 08-28-2023, 01:23 AM
Last Post: alphonso

Forum Jump:


Users browsing this thread: 1 Guest(s)