Test Description: Testing the interface between CDH and sun sensors through the AODCS PCB.
Completed: 2026 Oct 23
Documented by: Riley Sweeney
Resources Required:
Tools: Required tools such as cleaning equipment, chemicals, jigs, hand tools, etc.
Hardware and Equipment: 2x UMS-0381 FM, 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-6966. R-LIB-ADC-034-7002.
Pass Criteria: The sun sensor shall send sun vector data to CDH (R-LIB-ADC-005-6966) at a minimum rate of once per 10 seconds (R-LIB-ADC-034-7002).
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 AODCS PCB.
Sun sensors connect to the AODCS PCB using a ten pin PicoBlade connector. There are two ports on the PCB, SUN_SENSOR_1 and SUN_SENSOR_2.
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_SUNSENSORS.
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.7 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_SUNSENSORS in main.h, and comment out any other defines if needed. This will run the function TestSunSensors(), which initializes, configures, and collects five data samples from each of the two optical arrays on the sensor.
Build the project and run in debug mode to flash the AODC board MCU. Data will be output over UART.
(Optional) Cover/uncover the sun sensor during data collection to verify a change in results.
SUN_SENSOR_1:
Starting Sun Sensor Test
sensor #1:
225 184 255 255 0 142 242 0 130 0 255 128 207 24 24 25 25 25 25 26 26 26 26 26 27 27 27 27 27 27 28 27 28 28 28 28 28 28 28 27 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 29 28 29 29 29 29 29 29 29 29 29 29 29 29 30 30 30 30 30 30 30 30 30 30 30 30 30 31 31 31 31 31 31 32 32 31 31 31 29 30 28 33 34 35 35 35 36 36 36 36 36 36 36 36 36 36 37 37 37 37 37 37 37 37 36 37 36 36 37 36 36 36 35 36 35 36 35 35 35 34 35 34 34 34 35 35 34 34 35 35 34 34 34 34 34 34 33 34 4 31 62 226 0 0 0 0 0
sensor #2:
225 184 255 255 0 142 242 0 136 0 255 128 193 16 16 16 17 17 17 17 18 18 18 17 18 18 18 18 19 19 19 19 19 19 20 20 20 21 20 21 21 21 21 21 22 22 22 22 22 22 22 22 22 22 23 23 22 23 23 23 23 23 23 24 24 24 24 25 24 25 25 25 25 26 26 26 26 27 27 27 28 28 29 29 29 29 30 30 30 31 31 32 32 32 32 33 33 33 34 34 35 35 35 35 36 36 36 36 37 37 37 37 38 38 38 38 38 38 39 38 38 39 39 39 39 39 38 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 38 38 39 39 39 5 29 213 184 0 0 0 0 0
sensor #1:
225 184 255 255 0 142 242 0 130 0 255 128 207 23 24 24 24 25 25 25 25 25 25 26 26 26 26 26 26 26 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 28 27 28 28 28 28 28 28 28 28 28 28 29 28 28 29 28 29 29 29 29 29 29 29 29 30 29 29 29 29 30 30 30 31 30 31 30 31 30 31 29 29 29 27 32 33 34 34 34 35 35 35 35 36 35 35 35 35 35 36 36 35 36 36 36 36 36 35 36 35 35 36 35 35 35 35 35 34 34 35 34 33 34 34 34 34 34 34 34 33 33 34 34 34 33 33 34 33 33 33 33 4 30 44 171 0 0 0 0 0
sensor #2:
225 184 255 255 0 142 242 0 135 0 255 128 193 17 17 17 18 18 18 18 18 19 19 19 19 19 20 20 20 20 20 20 21 21 21 21 21 22 22 22 22 22 23 23 23 23 23 23 24 23 23 23 24 24 24 24 24 24 24 24 25 24 25 25 25 25 26 26 25 26 26 26 27 27 27 27 28 28 29 29 29 30 30 30 31 31 31 32 32 32 32 34 33 34 34 35 35 36 36 36 37 37 37 38 38 38 39 39 39 39 39 40 40 40 41 40 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 42 42 42 42 42 42 42 42 42 41 42 41 41 42 41 41 41 41 41 41 41 41 5 30 238 35 0 0 0 0 0
sensor #1:
225 184 255 255 0 142 242 0 131 0 255 128 207 24 24 25 25 25 26 26 26 26 26 26 27 26 26 27 27 27 27 28 28 27 28 28 28 28 28 28 28 28 28 27 28 28 28 28 28 28 28 28 28 28 28 29 29 29 28 29 29 29 29 29 29 30 29 29 30 29 30 30 30 30 30 30 30 30 30 30 30 30 30 31 31 31 32 31 32 32 32 31 31 31 30 30 28 33 34 35 35 35 36 36 36 36 36 36 36 36 36 36 37 37 37 37 37 38 36 37 37 37 37 36 37 36 36 36 36 36 35 36 35 35 35 35 35 35 35 34 34 35 34 34 35 34 35 35 34 34 34 34 34 34 4 31 44 111 0 0 0 0 0
sensor #2:
225 184 255 255 0 142 242 0 135 0 255 128 194 17 17 17 18 18 18 18 18 19 19 19 19 19 19 19 20 20 20 20 20 21 21 21 21 22 22 22 22 22 23 22 23 23 23 23 23 23 23 24 24 24 24 24 24 24 24 24 24 25 25 25 25 25 25 26 26 26 26 26 27 27 27 27 28 28 28 28 29 30 30 30 31 31 31 32 32 32 33 33 33 34 34 35 34 35 36 36 37 37 37 37 38 38 38 39 39 39 39 39 40 40 40 40 41 41 41 41 41 41 41 41 41 41 41 42 41 41 41 41 41 42 42 42 42 42 42 42 42 42 42 42 41 42 42 41 41 41 41 41 41 41 5 30 223 112 0 0 0 0 0
sensor #1:
225 184 255 255 0 142 242 0 131 0 255 128 206 24 25 25 25 25 26 26 26 26 26 26 27 27 27 27 27 27 27 28 28 27 28 28 28 28 28 28 28 28 28 28 27 28 28 28 28 28 28 28 28 29 28 29 29 28 29 29 29 29 29 29 29 29 29 29 30 29 30 30 30 30 30 30 30 30 30 30 30 30 30 31 31 31 31 31 32 31 32 31 31 30 30 29 28 33 35 34 35 35 35 36 36 36 36 36 36 37 36 36 37 37 36 37 37 38 36 37 36 37 37 36 37 36 36 35 35 36 35 36 35 35 35 35 35 35 35 34 35 34 34 34 35 35 35 34 34 35 34 34 34 34 4 31 215 45 0 0 0 0 0
sensor #2:
225 184 255 255 0 142 242 0 135 0 255 128 193 16 17 17 18 18 18 18 18 19 19 19 19 19 19 20 20 20 20 20 20 21 21 21 21 22 22 22 22 22 23 23 23 23 23 23 23 23 23 23 24 24 24 24 24 24 24 24 25 24 25 25 25 25 25 25 25 26 26 26 27 27 27 27 28 28 29 29 29 29 30 30 31 31 32 32 32 32 33 33 33 34 34 35 35 35 36 36 36 37 37 37 38 38 38 39 39 39 39 39 40 40 40 40 41 41 41 41 41 41 41 41 41 41 41 42 41 41 41 41 41 42 41 41 42 42 42 42 42 41 42 41 41 41 41 41 41 41 41 41 41 41 5 30 120 155 0 0 0 0 0
sensor #1:
225 184 255 255 0 142 242 0 131 0 255 127 206 24 24 25 24 25 25 26 26 26 26 26 27 27 27 27 27 27 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 29 28 29 29 29 29 29 29 29 29 29 30 29 29 29 30 29 30 30 30 30 30 30 30 30 30 30 30 30 30 31 31 31 31 31 32 31 31 32 31 31 30 30 28 33 35 35 35 35 36 36 36 36 36 36 36 36 36 37 37 37 37 37 37 38 37 37 37 37 37 36 37 37 36 36 36 36 35 36 36 35 35 35 35 35 35 35 35 35 34 34 35 35 35 35 34 35 34 34 34 34 4 31 103 46 0 0 0 0 0
sensor #2:
225 184 255 255 0 142 242 0 135 0 255 128 193 16 17 17 17 18 18 18 19 19 19 19 19 19 19 19 20 20 21 21 21 21 21 21 21 22 22 22 22 22 23 23 23 23 23 23 24 23 24 23 24 24 24 24 24 24 24 24 24 24 25 25 25 25 25 26 26 26 26 26 26 27 27 27 28 28 29 28 29 30 30 30 31 31 32 32 32 32 33 33 34 34 34 34 35 35 36 36 36 37 37 37 38 38 39 39 39 39 40 40 40 40 41 40 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 42 42 41 42 42 42 42 42 42 42 42 41 41 41 41 41 41 41 41 41 41 41 5 30 183 255 0 0 0 0 0
SUN_SENSOR_2:
Starting Sun Sensor Test
sensor #3:
225 184 255 255 0 142 242 0 129 0 255 127 208 105 108 112 114 119 124 130 137 142 147 153 163 168 176 184 193 201 207 214 222 232 251 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 247 235 223 213 201 192 182 171 5 238 90 78 0 0 0 0 0
sensor #4:
225 184 255 255 0 142 242 0 127 0 255 128 195 130 134 138 143 148 152 155 159 163 168 172 179 186 194 207 245 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 10 245 46 233 0 0 0 0 0
sensor #3:
225 184 255 255 0 142 242 0 129 0 255 128 208 105 108 112 114 120 126 131 138 145 150 156 165 169 174 178 185 192 202 222 249 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 247 235 224 213 203 193 183 173 5 238 22 252 0 0 0 0 0
sensor #4:
225 184 255 255 0 142 242 0 119 0 255 128 194 121 125 129 133 138 143 152 175 234 255 255 235 201 197 204 214 224 236 246 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 10 246 197 34 0 0 0 0 0
sensor #3:
225 184 255 255 0 142 242 0 131 0 255 128 208 104 107 111 112 117 123 128 134 139 143 148 158 164 173 182 189 195 202 210 221 233 248 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 248 236 223 212 201 192 182 172 5 237 199 97 0 0 0 0 0
sensor #4:
225 184 255 255 0 142 242 0 122 0 255 128 193 6 5 6 6 6 6 6 6 6 6 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 6 6 6 6 7 6 6 6 6 7 6 7 6 6 6 7 6 6 7 7 6 6 6 6 6 7 7 7 7 6 6 7 7 7 7 7 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 6 7 7 5 6 158 156 0 0 0 0 0
sensor #3:
225 184 255 255 0 142 242 0 129 0 255 127 206 6 6 6 6 6 7 7 7 6 6 6 6 7 7 6 7 6 7 7 7 6 7 7 7 7 6 7 7 7 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 7 8 7 7 8 7 8 7 8 8 8 8 8 8 8 8 9 8 9 8 8 8 8 9 8 9 9 9 9 9 9 9 9 9 9 10 9 9 9 9 9 10 9 10 10 10 9 10 9 10 10 10 10 10 10 9 9 10 9 9 10 10 10 10 9 9 10 9 10 10 9 9 10 10 10 10 10 10 9 10 10 10 4 8 35 154 0 0 0 0 0
sensor #4:
225 184 255 255 0 142 242 0 131 0 255 127 193 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 11 11 11 11 12 11 12 11 11 12 12 12 12 12 12 12 12 12 12 12 12 12 13 13 13 14 13 14 14 14 14 14 15 15 15 15 15 15 16 16 16 16 17 17 17 17 17 18 18 18 18 18 18 18 19 19 19 19 19 19 20 20 20 20 20 20 21 21 21 21 21 22 21 22 22 22 22 23 23 23 23 24 24 24 24 24 24 24 24 24 25 25 25 25 25 26 25 26 5 15 180 153 0 0 0 0 0
sensor #3:
225 184 255 255 0 142 242 0 127 0 255 127 206 11 11 11 11 12 12 12 13 12 12 12 13 12 12 12 12 12 13 13 13 13 13 13 13 13 13 13 13 13 13 12 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 14 13 13 13 14 13 14 14 14 14 13 13 13 14 14 13 14 14 14 14 14 14 14 14 14 14 14 14 14 14 13 14 14 15 16 15 16 15 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 17 16 16 16 16 16 16 16 16 16 16 16 16 16 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 14 15 4 14 70 144 0 0 0 0 0
sensor #4:
225 184 255 255 0 142 242 0 131 0 255 127 193 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 10 10 10 10 11 11 10 10 11 10 11 11 11 11 11 11 11 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 11 12 12 12 12 12 12 12 12 12 13 12 13 13 13 13 13 14 14 14 14 14 15 14 15 15 15 15 15 16 16 16 17 17 17 17 17 17 17 17 18 18 18 18 18 18 19 19 19 19 19 19 19 20 20 20 20 20 20 21 20 21 21 21 21 21 22 22 22 22 23 22 23 23 23 23 23 23 24 23 24 23 23 24 24 24 5 14 252 226 0 0 0 0 0