Digit PCB Test¶
Run the tests in this section after assembling each digit PCB to ensure all components are soldered correctly and functional. Any defective electronic component on the digit PCB must be replaced before completing the project.
Prerequisites¶
- Completed digit PCB ready for actuators
- Computer and microcontroller with the prerequisite software
- An assembled actuator
Test the Motor and LED Segments¶
- Open the Deployed Project:
From Visual Studio Code, open the deployeddigit
project. (A) Click the file menu, (B) select thedigit
folder, then (C) click the Select Folder button.
- Connect the Raspberry Pi Pico:
- Plug a USB cable from your computer into the Raspberry Pi Pico's USB port on the digit PCB.
- Open the MicroPico vREPL in the terminal dropdown as described in Verify Micropython on your Raspberry Pi Pico.
- Connect the Actuator:
- Plug the Dupont connector from the actuator into the
SEG-A
pins. - Ensure the white wire is connected to the
CW
pin and the black wire to theCCW
pin.
- Plug the Dupont connector from the actuator into the
- Open the Test File:
From Visual Studio Code, (A) click on thedigit.py
file, then (B) select the MicroPico vREPL from the terminal menu.
- Run the Test Application:
- (A) Verify the connection between your computer and the Raspberry Pi Pico.
- (B) Click the Run button to execute the test application for the digit PCB.
- Test Segment A:
- The console test application displays options for segments 0-6, corresponding to segments A-G.
- Extend
SEG-A
by typing e0 in the console.
- Verify Segment A:
- The 4
SEG-A
LEDs should light up, and the motor should briefly turn on. - Retract
SEG-A
by typing r0 in the console.
- The 4
- Test Remaining Segments:
- Repeat steps 6 and 7 for
SEG-B
throughSEG-G
to verify all segments work as expected. - Perform this test for all digit PCBs (0-3).
- Repeat steps 6 and 7 for