Quantity   Component name
1 × Raspberry Pi
1 × PowerSwitch Tail II Or any other device with similar functionality
2 × PS2501 Opto and Fiber Optic Semiconductors and ICs / Optocouplers and Optoisolators
2 × 2N3904 Discrete Semiconductors / Transistors, MOSFETs, FETs, IGBTs
1 × 100nf capacitor
2 × 10K resistor
1 × 1K resistor
2 × 220 ohm resistor I used 220+100 in some places because I didn't have a 320~ohm resistor available
2 × 100 ohm resistor