Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


timmmay

20575 posts

Uber Geek

Trusted
Lifetime subscriber

#319241 5-Apr-2025 21:35
Send private message quote this post

TLDR: can anyone recommend a product to power a Raspberry Pi from a 12V SLA battery, so it continues to work during a power outage?

 

Background

 

I have a Raspberry Pi 4 running PiHole, including doing DHCP and DNS. My router and the fiber box are backed up by 12V SLA battery and a Sentry Lite, but if the power goes out we lose DNS so we can't use the WiFi easily.

 

I can have PiHole issue a secondary DNS address, but Windows uses primary and secondary DNS almost equally according to WireShark, rather than primary / secondary. I want Windows to use PiHole DNS unless it's unavailable, and I don't want to have to manually update DNS during an outage as if I'm not here my wife can't do that, and it's difficult on Android. There are a few possible workarounds to tweak how Windows does DNS, but I haven't spent the time to find an authoritative method to force Windows to use primary DNS. I'm interested if anyone has any thoughts there.

 

In the meantime, I'm looking for a way to run the R.Pi4 off the 12V SLA battery already right beside it. I could buy a generic 12V to USB-C converter like this one or a cheap AliExpress version, but I'd like something a little higher quality, ideally able to supply 5.1V @ 3A. There's plenty of options, like this and this but I'm wondering if someone has can recommend something they have experience with or have heard good things about.


View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2
Tinkerisk
4226 posts

Uber Geek


  #3361246 6-Apr-2025 10:32
Send private message quote this post

You did not specify how long an outage should be bridged. 

 

In my case, the core system (ONT, router, DNS, switches, APs) is supplied by a UPS via mains voltage and PoE.





- NET: FTTH, OPNsense, 10G backbone, GWN APs, ipPBX
- SRV: 12 RU HA server cluster, 0.1 PB storage on premise
- IoT:   thread, zigbee, tasmota, BidCoS, LoRa, WX suite, IR
- 3D:    two 3D printers, 3D scanner, CNC router, laser cutter




timmmay

20575 posts

Uber Geek

Trusted
Lifetime subscriber

  #3361261 6-Apr-2025 11:41
Send private message quote this post

I have a few 12V SLA batteries, so I can swap them out if I need to. I have a small 7AH battery on them as a UPS plus some 15AH batteries that are offline and charged.

 

I prefer to add to my existing 12V system than get a main UPS, but thanks for your thoughts Tinkerisk. I'm currently considering this DC-DC converter (cheapest and it's in Australia rather than the UK) and the Zero2Go Pi Hat.


Tinkerisk
4226 posts

Uber Geek


  #3361289 6-Apr-2025 12:43
Send private message quote this post

If you don't need the computing power of the RPi4 for other tasks, an RPi3B+ would be better suited to the task in terms of power consumption.





- NET: FTTH, OPNsense, 10G backbone, GWN APs, ipPBX
- SRV: 12 RU HA server cluster, 0.1 PB storage on premise
- IoT:   thread, zigbee, tasmota, BidCoS, LoRa, WX suite, IR
- 3D:    two 3D printers, 3D scanner, CNC router, laser cutter




timmmay

20575 posts

Uber Geek

Trusted
Lifetime subscriber

  #3361300 6-Apr-2025 13:20
Send private message quote this post

I run about a dozen containers on the raspberry pi, including home assistant, website hosting using cloudflared with nginx and PHP, influx DB, grafana, and other things.

 

 

 

Anyone else found a good solution to keep their Pi running during a power cut?


richms
28168 posts

Uber Geek

Trusted
Lifetime subscriber

  #3361302 6-Apr-2025 13:44
Send private message quote this post

I bought one of these https://vi.aliexpress.com/item/1005006578600241.html which a friend ended up using to run a pi and a few other things in their car.

 

It will only step down so no chance of getting 18v out of it when given 14.4, but for all the 5V stuff it works a treat and phones do charge pretty quickly on it. One of the things is a retropie and a screen for their kids, so it will at least power a pi 4 up without issue at all.





Richard rich.ms

timmmay

20575 posts

Uber Geek

Trusted
Lifetime subscriber

  #3361339 6-Apr-2025 16:07
Send private message quote this post

richms:

 

I bought one of these https://vi.aliexpress.com/item/1005006578600241.html which a friend ended up using to run a pi and a few other things in their car.

 

It will only step down so no chance of getting 18v out of it when given 14.4, but for all the 5V stuff it works a treat and phones do charge pretty quickly on it. One of the things is a retropie and a screen for their kids, so it will at least power a pi 4 up without issue at all.

 

 

That looks interesting @richms! Much better for USB devices to have something designed for USB than a generic 5V power supply and me cutting up a cable to get at the positive and negative terminals πŸ™‚

 

Any suggestions for a case? I was looking at the Jiffy UB3 at Core Electronics, it looks like it has some kind of system to mount PCBs in there easily but it doesn't say much about it.


richms
28168 posts

Uber Geek

Trusted
Lifetime subscriber

  #3361355 6-Apr-2025 17:10
Send private message quote this post

timmmay:

 

That looks interesting @richms! Much better for USB devices to have something designed for USB than a generic 5V power supply and me cutting up a cable to get at the positive and negative terminals πŸ™‚

 

Any suggestions for a case? I was looking at the Jiffy UB3 at Core Electronics, it looks like it has some kind of system to mount PCBs in there easily but it doesn't say much about it.

 

 

He 3d printed something along with the pi and the HDMI switch and some media player box (chromecast? Not sure). This was all for use in the car to keep their spawn occupied so I didnt really care too much about what was happening other than giving it to them and saying try this.





Richard rich.ms

 
 
 

Cloud spending continues to surge globally, but most organisations haven’t made the changes necessary to maximise the value and cost-efficiency benefits of their cloud investments. Download the whitepaper From Overspend to Advantage now.
Tinkerisk
4226 posts

Uber Geek


  #3361364 6-Apr-2025 17:45
Send private message quote this post

timmmay:

 

I run about a dozen containers on the raspberry pi, including home assistant, website hosting using cloudflared with nginx and PHP, influx DB, grafana, and other things.

 

 

My physical pihole is an RPi3+ with pihole/unbound/nebula sync only. Two other piholes are virtual and run on VMs. So my approach is different than yours, but I also don't have to leave out any important constraints on questions I don't need to ask. 😎

 

 





- NET: FTTH, OPNsense, 10G backbone, GWN APs, ipPBX
- SRV: 12 RU HA server cluster, 0.1 PB storage on premise
- IoT:   thread, zigbee, tasmota, BidCoS, LoRa, WX suite, IR
- 3D:    two 3D printers, 3D scanner, CNC router, laser cutter


Mehrts
1063 posts

Uber Geek

Trusted

  #3361551 7-Apr-2025 10:19
Send private message quote this post

I just run mine off a USB powerbank 🀷‍♂️


mdf

mdf
3513 posts

Uber Geek

Trusted

  #3361564 7-Apr-2025 10:45
Send private message quote this post

Quite a different application, but I've used this style of car 12V --> USB socket: https://www.jaycar.co.nz/charger-12v-dc-with-fly-lead-to-usbc-3-0-and-pd-3-0/p/MP3623 (mine was a different brand but suspect they are all from the same factory). Works well. Plenty of other similar options with different styles and specifications (e.g., round ones to replace cigarette lighters). Not sure what your battery connectors are like, but you could just crimp ring or spade terminals straight on?


timmmay

20575 posts

Uber Geek

Trusted
Lifetime subscriber

  #3361583 7-Apr-2025 11:18
Send private message quote this post

Mehrts:

 

I just run mine off a USB powerbank 🀷‍♂️

 

 

I considered that, but they're not really designed for it and I already have the 12V SLA battery, but thanks for the suggestion πŸ™‚


timmmay

20575 posts

Uber Geek

Trusted
Lifetime subscriber

  #3361584 7-Apr-2025 11:20
Send private message quote this post

mdf:

 

Quite a different application, but I've used this style of car 12V --> USB socket: https://www.jaycar.co.nz/charger-12v-dc-with-fly-lead-to-usbc-3-0-and-pd-3-0/p/MP3623 (mine was a different brand but suspect they are all from the same factory). Works well. Plenty of other similar options with different styles and specifications (e.g., round ones to replace cigarette lighters). Not sure what your battery connectors are like, but you could just crimp ring or spade terminals straight on?

 

 

That kind of thing would probably work quite well. I can solder on some crocodile clips, it's already in a case so I don't have to muck around with it, and it can be purchased locally rather than from Ali. It's a touch more expensive, but I think it's worth it for the warranty and simplicty. I like Rich's idea as well, but I think this is probably the simplest option so far, thanks! πŸ™‚


richms
28168 posts

Uber Geek

Trusted
Lifetime subscriber

  #3361617 7-Apr-2025 12:17
Send private message quote this post

Mehrts:

 

I just run mine off a USB powerbank 🀷‍♂️

 

 

Do you have one that will change from charging and passing thru to powering the pi off the battery in it without a power glitch resetting the pi? I was not able to find one that would keep a pi running in a car when cranking or while away from the car for a bit without it glitching out making it pointless.





Richard rich.ms

johno1234
2794 posts

Uber Geek


  #3361749 7-Apr-2025 15:09
Send private message quote this post

Mehrts:

 

I just run mine off a USB powerbank 🀷‍♂️

 

 

Do you run your pi off a powerbank and have the powerbank plugged into a wall charger? What capacity powerbank and how long does the pi survive on it?


timmmay

20575 posts

Uber Geek

Trusted
Lifetime subscriber

  #3362141 8-Apr-2025 20:20
Send private message quote this post

I think I might go with a HAT, like this one or this one. That way it's sitting right there on the pi, though somewhat unprotected. The Jaycar option is ok, but those things go for $5 on AliExpress which makes me doubt the quality.


 1 | 2
View this topic in a long page with up to 500 replies per page Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.