Visualizing CubeSat Dynamics: Progress on My MEng Project

2 minute read

Published:

As part of my ongoing MEng project, “Designing a Generic Digital Twin for a Cubesat”, I’ve developed an initial MATLAB-based simulation to visualize the dynamics of a CubeSat undergoing detumbling - representing significant progress in my role as the ADCS lead. This post outlines the current progress, simulation results, and the next steps to refine the model.


Current Simulation Features

The simulation focuses on visualizing the CubeSat’s motion in 3D space. While it doesn’t yet model actuators, sensors, or dynamic external torques, it provides simple control algorithms as a foundation to develop upon across the project. Here’s what the model achieves so far:

  • 3D Visualization: Simulates CubeSat orientation changes over time based on given angular velocity inputs.
  • Orientation Analysis: Plots of roll, pitch, and yaw angles to study CubeSat motion.
  • Foundational Model: A starting point for integrating actuators, sensors, and external torques.

The system runs in MATLAB following the logic outlined in the diagram below:

System Diagram

ADCSsysflow1
Figure 1: System Diagram - Outlines the system logic and data transfer between the matlab files.

Simulation Results

The current model outputs the following:

  1. Orientation Angles (Roll, Pitch, Yaw)
    The CubeSat’s orientation over time is captured in a 3D animation and plotted.

  2. Angular Velocities
    Plots display how the angular velocity components evolve as the CubeSat detumbles.

  3. Control Inputs
    While control inputs are placeholders for now, they will be part of the actuator integration in future iterations.

Below are output plots when running the simulation:

Orientation Angles Plot

OrientationPlot
Figure 2: Orientation Angles Plot.

Angular Velocities Plot

Angular Velocities Plot
Figure 3: Angular Velocities Plot.

Control Inputs Plot

Control Inputs Plot
Figure 4: Control Inputs Plot.

Video Demonstration

To make the simulation more accessible, I’ve created a video showcasing the 3D visualization of the CubeSat’s passive detumbling motion:

Figure 5: Video of detumbling motion.

Next Steps

  1. Integrating Actuators: Model actuators to actively control the CubeSat’s motion.
  2. Adding Sensors: Simulate sensor data for real-time orientation and angular velocity estimation.
  3. External Torques: Incorporate dynamic external torques, such as gravity gradient and aerodynamic drag.
  4. Testing Control Algorithms: Implement and validate more advanced control laws for alternate control modes.

Conclusion

This is an exciting step in my MEng project, and I’m looking forward to refining the model further. The addition of actuators, sensors, and external torques will significantly enhance the simulation’s accuracy and applicability to real-world scenarios.

If you’re interested in learning more or collaborating, feel free to contact me at j.hubbard@se21.qmul.ac.uk. Stay tuned for updates! 🚀