Connect Arduino to 220v powersupply

johanf82:
Hi,

I want to create a small device to turn on and off a simple lamp using an infrared remote control. Just, because I can. I got it all working (using this link: How to Set Up a 5V Relay on the Arduino - Circuit Basics), but the Arduino still needs its own power supply.

The question is: Can I use the power coming from the socket to turn on the Arduino (nano)? If not: what do I need to turn on the Arduino with the same power source as the lamp? Links are welcome too :slight_smile:

Thanks!

You need a Power supply that can deliever 5V and 500-1000mA.