PCB power supplies are compact transformers, voltage regulators and supported electronics in one. With these power supplies it is very easy to connect your project to mains voltage with a stable output of, for example, 3.3VDC, 5VDC or 12VDC. Make sure that there is empty space (air gap) between the high voltage and low voltage part on the PCB.