Ok. There's still a risk of having exposed mains connections, but you literally don't need it. You have access to the 5V supply from the USB PSU that is powering the Pi. However, if you did want an additional supply you could put a USB socket on your board and plug in an additional USB power source. Much safer, and no exposed mains connections.I am not designing my own AC to DC converter. I'm using an off the shelf module (https://www.meanwellusa.com/upload/pdf/ ... 3-spec.pdf). I'm mounting that on my PCB board. I understand your concern about loose wires.
Statistics: Posted by ame — Sun Aug 25, 2024 7:32 pm