Test Description: Test interface and function of sun sensors.
Completed: 06/11/2024
Documented by: Riley Sweeney
Resources Required:
Tools:
Hardware and Equipment: UMS-0381 EM sun sensor, EM ArcticSat ADCS board, Atmel ICE debugger, MicroSemi Flash Pro computer with Microchip Studio, SoftConsole, and Logic installed.
PPE: Always use ESD mat and bracelet when handling electronic equipment.
Verification Activities: R-ARC-ADC-010-5601, R-ARC-ADC-037-6912
Pass Criteria: The sun sensor shall be able to send telemetry over SPI to the ADCS board. The board shall send telemetry to CDH over SPI.
This test will use the EM ADCS board installed on the EM FlatSat. This board has a power interface that has been tested. This test will be performed on both sun sensor ports on the board. Two measurements will be taken per linear optical array, one with the mask covered, and one with it uncovered. This makes 8 total observations to record.
Connect sun sensor to SUN SENSOR 1 port on AODC board.
Connect Atmel debugger to ADC Board via the debug port, and to computer via USB.
Connect AODC board to power via CCLSM or bypassing the P1 header.
Turn on power supply.
Launch Microchip Studio.
From ArcticSat ADCS Flight Software Github repository, open LOTAD_drivers/LOTAD_drivers_V1/main.c.
This test will use the TestSunSensors function. Select sun sensor 1 inside this function.
Run TestSunSensors function.
Copy data from memory buffer 0x085C.
Paste into notepad, remove ASCII block from hex, paste hex values into results table.
Cover sun sensor mask and repeat steps .
In Microchip Studio, change Sun Sensor select to 2.
Disconnect sun sensor from SUN SENSOR 1 port on AODC board, reconnect to SUN SENSOR 2 and repeat all previous steps with sun sensor 3 and 4.
All trials gave expected results. Both linear optical arrays are functioning, recording values near zero when covered, and maximum when uncovered in the well lit lab. The SPI interface between the sun sensors and board is also functional.
With the SPI interface between the sun sensors and the ADCS board verified to be working, the SPI interface between the ADCS board and CDH can be tested.
Connect sun sensor to “SUN SENSOR 1” port on AODC board.
Connect AODC board to power via CCLSM or bypassing the P1 header.
Connect Logic to SPI port on AODC board or CDH.
Turn on power supply to Vbus (6.5 - 7.2 V).
Use Atmel ICE debugger and Microchip Studio to update software on board. Ensure software is configured to be able to read sun sensor data.
Use MicroSemi Flash Pro and SoftConsole to select sun sensor 1 and get raw measurements every 1 second.
Record an image of the logic analyzer data with the mask covered.
Record an image of the logic analyzer data with the mask uncovered.
Record an image of the sun sensor sending telemetry every one second when commanded.
The results above show that the SPI connection between the ADCS board and the CDH is functional. This satisfies both R-ARC-ADC-010-5601 and R-ARC-ADC-037-6912.