2

Whilst I am OK with software, hardware especially electronics is not my field.

I have a Raspberry Pi. It is enclosed in a water-proof case apart from an aperture that lets out a USB-C cable. Inside this case are my RPi and a USB power pack powering this RPi. When the RPi runs the camera captures motion for as long as there is power in the USB bank. When run down I attach the USB-C cable to a wall charger and the USB power bank is recharged.

  1. At any point do I need a UPS system?

    It will vary when the power bank runs out (depending on work by the RPi) so as I understand it the UPS battery could also run out as well with no chance to recharge the USB charger in time.

  2. Is my understanding correct or do I need to do more research?

Greenonline
  • 2,969
  • 5
  • 27
  • 38

3 Answers3

1

The main advantage, if you mean a UPS HAT not a normal separate large box UPS, would be protection against sdcard corruption (ie power cuts out in the middle of a disk operation). How important that is depends on whether or not you care about the data. The worst that can happen, I believe, is that you need to reinstall the system.

Tomas By
  • 218
  • 5
  • 13
1

When a software upgrade is going on , a sudden shutdown can hamper that update along with sdcard. I have faced many problems like this and always wanted to use an UPS. If you think you are going to do frequent software updates then you can use a n UPS. It is also good for saving documents while working.

Sohan Arafat
  • 1,852
  • 2
  • 12
  • 43
0

My experience with shutting down the Pi 4 incorrectly (removing power from wall or UPS) is that it will corrupt the SD card image, sooner or later (even putting the SD card to read-only doesn't help me).

An UPS is highly recommended in such case, but you would also have to (ideally) implement a system that shuts down your Pi on low battery - which involves reading the battery voltage and a script to shut down based on given readings. This has been done (Preventing SD card corruption in the event of power failure - amongst other sources).

Of course a poweroff button is an analog/mechanical option to use (Shutdown/reboot Raspberry using a pin other than pin 5)