Quantity   Component name
1 × Raspberry Pi Model 3B (can be anything connected, including a ESP8266, depending on what other stuff you want it to do)
1 × 5V single coil latching relay
1 × 5V non-latching relay
3 × NPN transistor BC547
2 × PNP transistor BC557
2 × Diode 1N4004
2 × Small signal diode 1N4148
2 × C's 22uF, 100nF
11 × R's 120R, 3k3, 2k2, 470R, 7x 1k
1 × Wire connector 4pins
1 × Pi header 40pins female