Power Module Software Design

Introduction

The power module is responsible for distributing power to the rest of the backplane and therefore requires little software for successful operation. However, power distribution can be monitored and provide valuable insight into the backplane's behaviors.   

This page reflects the software design for the second revision of the sensor module

Data

NameDataTypeSize (bytes)Sample Rate (Hz)
INA219 (3v3)

Voltage

Power

Current

float

float

float

32

32

32

15
INA219 (5v0)

Voltage

Power

Current

float

float

float

32

32

32

15
INA219 (BATT)

Voltage

Power

Current

float

float

float

32

32

32

15


*** If I did my math right, 15 hertz assuming a default 12-bit resolution for the INA219s.

NameDataTypeSize (bytes)Sample Rate
VIN VoltageVoltageint1650

*** Need to determine good sample rate for the ADC (Consult James)

Tasks

NameResponsibilityPriority
INA219 TelemetryRead in INA219 data and queue the data for processingHigh
INA219 ProcessingProcess telemetry, log it and send it over EthernetMedium
ADC TelemetryRead in STM32 ADC valuesHigh
ADC ProcessingProcess ADC telemetry, log it and send it over EthernetMedium


Callbacks

NameResponsibility
Ethernet ReceiveReceive notification packet to toggling logging between liftoff and landing