Test Description: Testing the interface between CDH and ADCS with focus on operating and configuring the gyroscope “in flight”. NOTE This test can be performed in parallel with the FM Magnetometer Test.
Completed: 2026 Oct 23
Documented by: Riley Sweeney
Resources Required:
Tools:
Hardware and Equipment: LISSA FM FlatSat, DC power supply, Microsemi fusion programmer, Atmel ICE programmer, 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, ESD mat, and gloves when handling flight model electronics.
Verification Activities: R-LIB-ADC-005-6964. R-LIB-ADC-032-6371. R-LIB-ADC-240-7001.
Pass Criteria: The gyroscope shall be able to change its configuration upon command from CDH (R-LIB-ADC-005-6964) (ADC-032-6371). The gyroscope shall output rotation data to CDH at a minimum of 5 Hz (R-LIB-ADC-240-7001).
Objective: Verify driver configuration, raw data acquisition, and CDH-to-ADCS command routing.
This test will occur on the LISSA FM FlatSat.
Check the connections between PCBs on the FlatSat. At minimum, the CDH and AODCS PCBs require intermodular power and data connectors between them, as well as a connector leading to the power supply.
The gyroscope is located on the AODCS PCB. No other peripheral sensors or actuators need to be connected to AODCS.
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 main.c as needed. Be sure to build before uploading.
Disconnect the Microsemi fusion when upload is complete.
Connect the Atmel ICE to the debug port on the AODCS PCB. Connect the other end to your laptop via USB.
Using Microchip Studio, uncomment the AODCS test scripts in the main.h file as needed. For this test it will be TEST_GYROSCOPES.
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.
On the power supply, set the voltage to bus voltage (6.4-6.7 V) and turn on the power output.
If other subsystems are connected to the Power PCB, they may boot into a critical hold mode. If the current output is initially less than 100 mA, this is likely the case, and the hold will end after 5 minutes. If power is not in the loop, the subsystems should boot normally.
With the Atmel debugger and USB to TTL connected, uncomment the line #define TEST_GYROSCOPES in main.h, and ensure no other tests are uncommented.
Press F5 in Microchip Studio to begin debugging, this will flash the AODCS PCB. Test outputs will be sent over UART, and can be viewed in a serial monitor program like Realterm or Terra Term.
The gyroscope test function will attempt three tasks:
Read the value of the gyroscope’s WHO_AM_I register and print it.
Configure output data rate and filtering chain, print whether it succeeded or not.
Read five raw measurements and print them.
ADCS reads WHO_AM_I register. Record Value: 0xD3
ADCS reads and logs 5 consecutive samples of raw X, Y, Z angular rate data.
Sample 1:
X: 5B0A
Y: 438F
Z: 5B0A
Sample 5:
X: 5B0A
Y: 438F
Z: 5B0A
Notes: