/
Power Module Software Design

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

Related content

Sensor Module - Backplane
Sensor Module - Backplane
More like this
Sensor Module Software Design
Sensor Module Software Design
More like this
Power Module - Backplane
Power Module - Backplane
More like this
Meeting Notes - Avionics - 2023-01-25
Meeting Notes - Avionics - 2023-01-25
More like this
Finalized ICs
Finalized ICs
More like this
Meeting Notes - Avionics - 2022-09-07
Meeting Notes - Avionics - 2022-09-07
More like this