I'd like to permanently install a Raspberry Pi Pico in a place in my house where I don't have a power socket but a power line (230V, 50Hz).
As I understand it, there are two ways to power the Pico:
- using USB.
- through the VSYS and a GND pin.
Number 1 would require installing a power socket so I can plug in a USB power supply. This takes up much more space than necessary, in particular since the Pi is supposed to stay permanently. Alternatively, I could use a power socket with USB connectors, but they're still bulkier than they need to be, and not really intended for this kind of application.
I'd prefer Number 2, but I'm unsure what kind of power supply to use. I found a power supply for Pis and Pi-like MCs that connects to regular mains, but it says it must be installed on a breadboard, which would require connecting the mains to a breadboard which doesn't seem very robust. I haven't found any power supplies that are meant for MCs and can be connected to mains cables permanently.
I have found LED drivers that convert from 230V to 5V, but I'm not sure whether something like that would fry my Pi.
So, questions:
- Am I missing any other options?
- What are reasons for and against the options mentioned that I'm missing?
- In particular, are LED drivers a good solution?