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

Integrate UPS sensors into sensorium code #23

Closed dperry29 closed 2 years ago

dperry29 commented 2 years ago

Description

UPS readings are part of critical telemetry (See #3)

  1. Battery/UPS readings come in two forms:
    1. Internal UPS sensors (voltage, capacity, etc.)
    2. External discrete voltage and current sensor.
  2. Both types are available over I2C.

Knowledge

  1. UPS: https://geekworm.com/collections/raspberry-pi-ups/products/raspberry-pi-x728-max-5-1v-8a-18650-ups-power-management-board
  2. Voltage and current sensor: https://www.sparkfun.com/products/15176

Deliverables

  1. Determine all the data points that are available.
  2. Determine the ranges, along the safe/normal operating range, and danger zones.
  3. Write a Python package to expose polling functionality to the telemetry application. (See #3)
ivogeorg commented 2 years ago

Depends on #17

ivogeorg commented 2 years ago

image

ivogeorg commented 2 years ago

PSU sample code is straight I2C read: capacity (in %) and battery voltage (in V), with critical values for shutoff. Zio Qwiic sensor is read using the Blinka libraries: voltage and current.