Power Interupted

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
rickybee
Posts: 8
Joined: Thursday 31 March 2016 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Power Interupted

Post by rickybee »

We had a storm the other day, the power went off but not cleanly. For several seconds the power flickered, came on, off several times. The result... two Raspberry Pis with corrupted memory cards. I'm now having to rebuild my Domoticz system from scratch, again. And yes I did have an image of the card but I couldn't get it to load, but that's another story.
My question is, is there a device that one could put in the power line to the Pi which, when the power is interrupted for a fraction of a second, will cut the power to the device until it is manually turned on again? Thus preventing the system from repeatedly trying to boot and the power being cut off rendering the card unreadable.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Power Interupted

Post by waaren »

I don't know if such a device exist but for the protection of my Synology NAS, I use this UPS
Knipsel.PNG
Knipsel.PNG (154.12 KiB) Viewed 1432 times
This protects against power surges and will keep the power on my systems for about 30 minutes while disconnected from the grid and then gracefully stops my NAS.
The remaining free outlets are used to protect my PI's, Hue bridge and HomeWizard stuff. So in your case it could prevent the "flickering" of the power to your PI's

On a side note. I use berryboot in combination with my NAS (iSCSI). This mechanism will only boot from SD but every subsequent read / write is via the LAN to/from my NAS. Faster and much more reliable than read/write on SD-card
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
rickybee
Posts: 8
Joined: Thursday 31 March 2016 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Power Interupted

Post by rickybee »

Thanks for the reply. Yes, I do use a UPS on my main computer and server so I don't have any problems there. I was hoping that there was a simpler, under $10 little switch device that one could put in the power line. Sort of like a reverse fuse that breaks the connection when there is a drop in power.
User avatar
Siewert308SW
Posts: 290
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Power Interupted

Post by Siewert308SW »

Or take a look a ups board.
Like Pico ups or some other hats.
I used to have a pico ups hat and it does the trick only support sucks.
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Power Interupted

Post by Egregius »

A simple relay and a push button could do the trick.
You start the relay with the push button and then the relay powers itself. When power grts interrupted you need to push the button again.
MrRikkie
Posts: 11
Joined: Monday 18 July 2016 11:39
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Eindhoven
Contact:

Re: Power Interupted

Post by MrRikkie »

Never tried it but would using a powerbank for the PI be a solution. Then make sure the powerbank is always connected to a charger.


Verzonden vanaf mijn iPhone met Tapatalk
User avatar
Siewert308SW
Posts: 290
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Power Interupted

Post by Siewert308SW »

MrRikkie wrote: Wednesday 06 June 2018 8:00 Never tried it but would using a powerbank for the PI be a solution. Then make sure the powerbank is always connected to a charger.


Verzonden vanaf mijn iPhone met Tapatalk
Could work, used one years ago.
But keep in mind you need a power bank which is capable of charging and giving power at the same time.
Hard to find as nowadays those ain't sold anymore, at least over here
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
User avatar
dre68
Posts: 27
Joined: Friday 30 January 2015 20:18
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Noordwijk, Netherlands
Contact:

Re: Power Interupted

Post by dre68 »

I run my Pi's (3B) from USB stick, without SD card. No more corrupted SD cards by power outage or card wear by age. Also runs faster than with the OS on SD card
Last edited by dre68 on Wednesday 13 June 2018 17:49, edited 1 time in total.
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Power Interupted

Post by freijn »

dre68 wrote: Thursday 07 June 2018 9:10 I run my Pi's (3) from USB stick, without SD card. No more corrupted SD cards by power outage or card wear by age. Also runs faster than with the OS on SD card
Do you have a link on how to achieve this please?
User avatar
dre68
Posts: 27
Joined: Friday 30 January 2015 20:18
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Noordwijk, Netherlands
Contact:

Re: Power Interupted

Post by dre68 »

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest