Description of Task
Develop firmware for the Telemetry Unit MCU, responsible for reading data from sensors, monitoring system health, and communicating with the main control system over CAN bus. The firmware should respond in real-time to incoming command messages and provide system status feedback.
Suggested Workflow
- Research all necessary peripherals and sensors
- Write drivers for all peripherals (CAN, sensors, comms)
- Integrate all peripherals into a single firmware project
- Test functionality on development board
- Validate on final PCB hardware
Specifications
-
CAN Communication
- Receive control commands over CAN (e.g., thrust setpoints, PWM duty cycles)
- Parse incoming frames according to the thruster CAN specification
- Transmit periodic status frames (e.g., current draw, temperature, fault status)
-
Sensor Interfaces (Serial Communication)
- Use UART, I²C, and/or SPI to communicate with sensors
- Ensure correct initialization and error handling for all sensors
-
Safety and Fault Handling
- Implement watchdog/timeout: stop thrusters if no valid CAN command is received within a set time window
- Detect and report faults (overcurrent, undervoltage, communication loss, sensor errors)
- Detect water leakage and shutdown system
-
Modular Code Structure
- Separate CAN, sensor drivers, and main control logic into their own
.c/.h modules
- Define clear interfaces to maximize code reusability across other MCU projects
To-Do Checklist
Contacts
Description of Task
Develop firmware for the Telemetry Unit MCU, responsible for reading data from sensors, monitoring system health, and communicating with the main control system over CAN bus. The firmware should respond in real-time to incoming command messages and provide system status feedback.
Suggested Workflow
Specifications
CAN Communication
Sensor Interfaces (Serial Communication)
Safety and Fault Handling
Modular Code Structure
.c/.hmodulesTo-Do Checklist
Contacts