Test Description: Verify PWM generation, directional control, and CDH commanding of H-bridges on ADCS PCB.
Completed: 2026 Oct 23
Documented by: Riley Sweeney
Tools:
Hardware and Equipment: UMS-0866 ADCS FM CCA, UMS-0802 CDH FM CCA, UMS-0803 Power FM CCA, power supply, Microsemi fusion, Atmel ICE, laptop to interface with both boards, digital oscilloscope.
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-006-6969. R-LIB-ADC-042-6976
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.
The H-bridges are 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 CDH code as needed. Be sure to build before uploading.
Disconnect the Microsemi fusion after 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 VS code, uncomment the AODCS test scripts in the main.h file as needed. For this test it will be TEST_MAGNETORQUERS.
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.
ADCS MCU sets all three H-bridges to the same duty cycle and polarity. To begin, check that
initial duty cycle is 50% (val = 255/2)
polarity is positive (PWMtorq_sw_polarity# = true).
Verify PWM frequency on oscilloscope. Probe the positive terminal of MT1, MT2, and MT3 areas on ADCS board. Frequency is 1000 divided by the leading edge to leading edge duration in millisec. Some oscilloscopes can measure frequency directly
MT1 Freq: 61.7 Hz ~55% duty cycle
MT2 Freq: 61.7 Hz ~55% duty
MT3 Freq: 61.7 Hz ~55% duty
Notes: Extra 5% likely just measuring the lag to go down from 5 V
Measure H-bridge output voltage magnitude.
MT1 V: 4.96 V
MT2 V: 4.96 V
MT3 V: 4.96 V
Change duty cycle to 0% (Off). Measure output.
MT1 V: 240-400 mV
MT2 V: 240-400 mV
MT3 V: 240-400 mV
Notes: Varies with resolution. Results from 2 microseconds/point.
Return to 50% duty cycle, and change polarity to negative. Record PWM frequency.
MT1 Freq: 61.7 Hz ~55%
MT2 Freq: 61.7 Hz ~55%
MT3 Freq: 61.7 Hz ~55%
Measure H-bridge output voltage magnitude.
MT1 V: 4.96-5.04 V
MT2 V: 4.96 V
MT3 V: 4.96 V
Notes: MT1 jumping between the two values.
Change duty cycle to 0% (Off). Measure output.
MT1 V: 240-320 mV
MT1 V: 240-320 mV
MT1 V: 240-400 mV
Notes: Same as step 4.
Notes:
@ 25% duty: Measured 30%
@ 33% duty: Measured 38%
Falling edge adds roughly 5% to measured duty cycle