Test Description: Testing the interface between CDH and ADCS with focus on operating and configuring the magnetometer "in flight". NOTE This test can be performed in parallel with the FM Gyroscope Test.
Completed: 2026 Oct 23
Documented by: Riley Sweeney
Resources Required:
Tools: N/A
Hardware and Equipment: UMS-0866 ADCS FM CCA, UMS-0802 CDH FM CCA, UMS-0803 Power FM CCA, power supply, Microsemi fusion, Atmel ICE, USB to TTL device, laptop to interface with both boards.
PPE: FM testing will occur in the clean room. Please follow all clean room safety guidelines. Please wear an ESD bracelet and use ESD mat when working with electronics.
Verification Activities: R-LIB-ADC-005-6965, R-LIB-ADC-031-6972. R-LIB-ADC-043-6977.
Pass Criteria: The magnetometer shall be able to change its configuration upon command from CDH (R-LIB-ADC-005-6965) (ADC-031-6972). The magnetometer shall send magnetic field data to CDH at a minimum of 10 Hz (R-LIB-ADC-043-6977).
This test will occur on the FM FlatSat.
Check the connections between PCBs on the FlatSat. The power PCB should be connected to a power supply with two wires for power and ground. This PCB should also connect to CDH using an intermodular connector.
The CDH PCB should have two intermodular connectors, one coming from the Power PCB, and one going to the ADCS PCB.
The gyroscope is located on the ADCS PCB. No other peripheral sensors or actuators need to be connected to ADCS.
With the FlatSat set up, this section focuses on setting up the necessary software for the PCBs and data collection.
Connect the Microsemi fusion to the debug port on the CDH CCA. Connect the other end of the Microsemi fusion to your laptop via USB.
Using SoftConsole, comment/uncomment test scripts in the CDH code as needed. Be sure to build before uploading.
Disconnect the Microsemi fusion.
Connect the Atmel ICE to the debug port on the AODCS PCB. Connect the other end to your laptop via USB.
Using VS code, uncomment the AODCS test scripts in the main.h file as needed. For this test it will be TEST_MAGNETOMETERS.
Build the project and upload by running in debug mode.
Disconnect the Atmel ICE when upload is complete.
Connect the USB to TTL device to the UART pins on the J1 header on CDH. Connect the device to your laptop to receive data from CDH.
Connect the USB to TTL device to the UART pins on the J1 header on AODCS. Connect the device to your laptop to receive data from AODCS.
The first part of the test will check for function on the AODCS board itself.
Set the output voltage on the power supply to 6.4 V, which is approximately bus voltage.
Turn on the power supply. The power PCB will boot into critical hold mode, you must wait for this period to end for power to be supplied to CDH and AODCS. The output current on the power supply will jump when this period ends.
Uncomment TEST_MAGNETOMETERS in main.h, and comment out any other defines if needed. This will run the function TestMag(), which initializes, configures, and collects five data samples from the magnetometer.
Build the project and run in debug mode to flash the AODC board MCU. Data will be output over UART.
ADCS MCU initializes I2C and writes configuration registers (e.g., Continuous Measurement Mode, ODR).
ADCS reads WHO_AM_I register. Record Decimal Value: 48
ADCS reads and logs 5 consecutive samples of raw X, Y, Z magnetic field data.
Sample 0:
X: -1410
Y: -14718
Z: 13958
Sample 4:
X: -389
Y: -14718
Z: 15750
Notes: