1
\$\begingroup\$

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:

  1. using USB.
  2. 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:

  1. Am I missing any other options?
  2. What are reasons for and against the options mentioned that I'm missing?
  3. In particular, are LED drivers a good solution?
\$\endgroup\$

1 Answer 1

2
\$\begingroup\$

Some LED drivers are constant current (and vary the voltage to maintain it). You don't want that, although the one you linked appears to be constant voltage so may be OK.

The usual device to use is a power supply with screw terminals, like this one from CPC in the UK. They have a pair of terminals for the 230V input and another pair for the 5V output (they also exist in other voltages, e.g. 12V, and current ratings). You will want an appropriate enclosure to put it inside too. Depending on the enclosure for your project there are also versions which mount on DIN rails.

I would avoid the power supplies with pins on the bottom unless you are designing a custom PCB to mount them on (which requires special consideration for trace separation and input protection - with the screw terminal power supplies that's all handled for you).

\$\endgroup\$
1
  • \$\begingroup\$ Awesome, thank you, the constant voltage/constant current distinction was something that I hadn't paid attention to! \$\endgroup\$ Commented Dec 13, 2023 at 11:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.