I have built a circuit using a PBO-3-S5, AC-DC circuit and applied some necessary components. iIn the description and when testing the circuit I get a 4.8V output voltage which should be enough to drive a Rasperry pi zero.
But the problem that have occurred for me is the part which should be able to switch on and off the outlet.
I have tried using transistors by using two in parallel of each other and controlling them with the micro controller but did not get them to turn on. My second idea is to use a solid state relay, but they are rather bulky and expensive. My question is, are there any other switches that can be used for power outlets with control of a micro controller such as a rasberry pi? The picture shows how my circuit should look like some how.