coloradocube / balloonsat

COTS balloonsat mission to test the RPi 4 with a battery UPS, a quad camarray, a GPS module, a RockBLOCK module, and a small number of Qwiic sensors
0 stars 5 forks source link

Startup, power check, and shutdown #40

Closed ivogeorg closed 2 years ago

ivogeorg commented 2 years ago

Description

  1. Python.
  2. Single process, single thread.
  3. UPS (instantaneous voltage of the line, remaining battery capacity).
  4. Zio current sensor (~instantaneous voltage of the line~, instantaneous current through the line).
  5. Details:
    1. Start on power on.
    2. Check power parameters:
      1. If good, continue running;
      2. If not good, shutdown.
ivogeorg commented 2 years ago

Avoid using browsers on RPi without careful initial config. They have memory issues and cause the computer to hang. With the only option to disconnect power, the SD card becomes corrupted and needs to be re-imaged.