This page details the operating procedures for the software used to test the reaction wheel prototype on the flat-sat.
Components
- Reaction Wheel
- Motor Driver Board
- Breakout Board
- Power Supply
- Microcontroller (F103RB)
Hardware Setup
The setup can be found in the Reaction Wheel Overview document. Follow the setup for the F103RB microcontroller.
Test Files
The test files can be found in the Mechanical Github under uVisionProjects/RW_Demo.
- Open RW_Demo in uVision.
- Change the #defines in main.c to set the desired input source to either a terminal or Matlab.
- Program the Nucleo F103RB connected to the reaction wheel prototype.
- Do one of the following:
- Open a terminal at 9600 baud and connect to the microcontroller.
- Open either rw_find_friction.m or rw_plot_speed.m.
- Reset the microcontroller.
- Run the Matlab script (if applicable).
Reaction Wheel Speed Test
This Matlab script uses logged reaction wheel PWM and speed to compare the behavior of the reaction wheel with that of the reaction wheel dynamic model in 42.
- Get a reaction wheel speed log file from a 42 run. These are named rwSpeeds.csv.
- Open rw_plot_speed.m and change lines 13-15 as necessary.
- Follow the steps above to set up the reaction wheel and run the script.
Motor Friction Test
- Open rw_find_friction.m and change lines 10-15 as necessary.
- Follow the steps above to set up the reaction wheel and run the script.