Software
The Electrical Power System main functions are to extract, store and manage electrical energy. In order to achieve this, the module performs hardware and software tasks. These tasks are processed by a MSP430F6659 microcontroller placed in the EPS module. The main EPS tasks are described as follows:
Analog to digital conversion of variables, specially solar panel inputs
Battery voltage, current and state of charge monitoring
Task scheduling based on battery state of charge
Actuation on dc-dc converters
Actuation on MPPT integrated circuits
Communication with OBDH
Communication with Beacon
The main code is being developed following this flowchart:
EPS Data Frame
The data frame sent from EPS to OBDH is composed of the following data:
- Solar panel current - 12 bytes
- Solar panel voltage - 6 bytes
- Total voltage (MPPT output) - 2 bytes
- Bus voltage - 2 bytes
- MSP430 internal temperature sensors - 2 bytes
- Voltage reference generator temperature - 2 bytes
- Battery average current - 2 bytes
- Battery monitor temperature - 2 bytes
- Battery voltage - 4 bytes
- Battery current - 2 bytes
- Battery accumulated current - 2 bytes
- Protection register - 1 byte
- Status register - 1 byte
- Cycle counter register - 1 byte
- Remaining active absolute capacity - 1 byte
- Remaining standby absolute capacity - 1 byte
- Remaining active relative capacity - 1 byte
- Remaining standby relative capacity - 1 byte
- RTD temperature measurements - 21 bytes
- EPS status - 1 byte
Decoding
ADC Solar Panel Current
ADC Solar Panel Voltage
ADC Total Voltage
ADC Bus Voltage
ADC Internal Temperature Sensor
ADC Voltage Reference Temperature
Battery Average Current
, where & is the bitwise and operation.
if then
if then , where ~ is the bitwise not operation.
Battery Monitor Temperature
Battery Voltage
if then
if then
Battery Current
if then
if then
Battery Accumulated Current
Cycle Counter
Remaining Active Absolute Capacity (RAAC)
Remaining Standby Absolute Capacity (RSAC)
Remaining Active Relative Capacity (RARC)
Remaining Standby Relative Capacity (RSRC)
RTD temperatures