Power Management PCB Test¶
Run the tests in this section after assembling the power management PCB. Any defective electronic component on the power management PCB will need to be replaced before completing the project.
Prerequisites¶
- Completed the controller and digit 1 PCB assembly.
- Completed power management PCB.
- Computer and microcontroller with the prerequisite software.
- 3 male-male jumpers (or wires with the ends stripped and tinned with solder).
Test Relay¶
- Following the picture below on the BACK of the controller and digit 1 PCB:
(A) Using a pair of jumper wires, connect the positive (+) and negative (-) ports of the terminal block connector
5v-OUT
to the (B) positive (+) and negative (-) ports on the corresponding terminal block connector markedCONN-1
on the power management PCB.
- Using a single jumper wire:
(A) Connect the
GPIO19
port of the terminal block connector inCONN-1
on the power management PCB to (B) theGPIO19
port of the terminal block connector on the FRONT face of the controller and digit 1 PCB.
- Following the picture below, connect a USB cable from your computer to the Raspberry Pi Pico W on the BACK of the controller and digit 1 PCB.
- From your computer, open a terminal session using Visual Studio Code:
- Select
MicroPico vREPL
from the terminal dropdown menu. - Once connected, type (or copy/paste each line) the following code into the terminal window:
- Select
from machine import Pin
p = Pin(19, Pin.OUT)
p.on()
- Once you hear the relay click to connect the circuit, type the following code into the terminal window:
p.off()
Below is a screenshot of the terminal session: