Test Description: Test interface and performance of sun sensors. This is an EM test to practice calibrating the FM sun sensors.
Completed:
Documented by: Riley Sweeney
Resources Required:
Tools: Flashlight, MicroSemi FlashPro4, Atmel ICE debugger, USB to TTL adapter
Hardware and Equipment: EM sun sensor, EM ArcticSat ADCS board, EM CDH, variable power supply, cardboard box, computer with SoftConsole and Microchip Studio installed
PPE: Always use ESD mat and bracelet when handling electronic equipment.
Verification Activities: R-ARC-ADC-003-5581, R-ARC-ADC-037-5744, R-ARC-ADC-039-5792
Pass Criteria: The sun sensor shall be able to determine the position of a light source and send the telemetry over SPI.
This test will be performed using the ArcticSat EM FlatSat apparatus. Setup for that is as follows.
Check that the CDH,Power and ADCS PCBs are connected using intermodular connectors.
Check that power jumpers on each PCB are in the correct position for the ADCS to receive power from the intermodular connectors, and the CDH can from the EPS board.
Connect the MicroSemi FlashPro4 to the debug port on the CDH. Flash the CDH with the "RileySunSensorTest" build of the flight software.
Connect the Atmel ICE debugger to the debug port on the ADCS board. Flash the ADCS with the ArcticSat ADCS firmware.
Connect the Rx and Tx pins of the USB to TTL adapter to the corresponding pins of the J2 port on the CDH PCB.
Open "sunSensTest.py" to record the sun sensor data to a .csv file.
The setup process for the sun sensor is as follows:
Connect one side of the 10 pin connector to "SUN SENSOR 1" on the ADCS board. Connect the other side to the sun sensor.
Slide the sun sensor into the bottom of the cardboard box and tape it down. Ensure the tape does not obscure the mask.
Take note of the sun sensor's orientation. There will be a second trial where the sensor is rotated 90 degrees.
Close the box using only the lengthwise flaps. The widthwise flaps should be outside of the box to test the sensor's field of view.
Set the voltage on the power supply to 6.4 V.
Turn on the power supply. Wait 100 seconds for the EPS board to begin supplying bus voltage to the other subsystems.
Run "adcs_tests.c" in SoftConsole to begin measuring sun sensor data.
Turn on the flashlight and slowly shine it down the length of the crack in the top of the box. Ensure the flashlight's beam is pointing down as much as possible.