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
  Pine Desktop PowerSupply wont power on BSharp 6 3,188 01-07-2025, 08:04 AM
Last Post: skare
  Help with high voltage power supply setup for electrospinning? namarang 3 2,230 12-11-2024, 09:47 PM
Last Post: NovaSpindle_X
  Registering my 'nick' on Pine64's IRC network diederik 7 3,258 12-04-2024, 05:44 AM
Last Post: mmonster
  Need Help Choosing the Right Pine64 Board for My Project jacoballen 1 714 09-22-2024, 06:28 PM
Last Post: tllim
  SBC Case Builder and Pine64 SBC hominoid 0 730 07-21-2024, 06:10 PM
Last Post: hominoid
  [Article] RISC-V Emulator for Pine64 Oz64 SBC lupyuen 2 1,321 07-07-2024, 04:19 AM
Last Post: lupyuen
  Firmware Update for PinePower Desktop Power Cycling Issue TimothyRodriguez 1 1,043 05-03-2024, 12:53 AM
Last Post: Pavlos1
  Link USB power strips for a cluster? shanefe 1 1,099 04-02-2024, 11:11 PM
Last Post: evilbunny
  Unable to connect to Pine64 IRC channel due to certificate error? Must-Borrow 1 1,219 03-10-2024, 02:43 PM
Last Post: Must-Borrow
  Forum Recommendations for Pine64 support? backwoodstech2 0 922 02-04-2024, 07:12 PM
Last Post: backwoodstech2

Forum Jump:


Users browsing this thread: 1 Guest(s)