Powering Arduino and Leds from house electric wires

Hello guys !

I'm really new to electronics and I can't find a solid answer to my quesion yet.

I'm looking for a compact and safe way to power my arduino and LEDs from my electric wires. I've seen components like HLK-PM01, but are they good enough and reliable ? I can't rely on batteries and power outlet might not be available (let's say, for instance, on a ceiling).

Do you guys have experience with this kind of installation ?

Thanks !

EDIT : Modified the question for better understanding.

It can't be done safely by you with your complete apparent lack of understanding about electrickery. Enrol in an evening class or something. Perhaps consider taking up needle work as a hobby.

It can't be done safely by you with your complete apparent lack of understanding about electrickery. Enrol in an evening class or something. Perhaps consider taking up needle work as a hobby.

Why so rude ? My thread starts with "I'm really new to electronics" so yeah, that's pretty straight forward. "Oh you are new to that ? WELL maybe don't do it at all and go watch cartoons". I expected deeper answers from this forum..

Hi, I wrote a lengthy reply to you, a few hours ago, in response to your criticism of my approach to your question, but the cloudflare link from UK fell over. My rudeness was to urgently stop you from messing with 220V - it can kill you, or worse. If you know nothing about electronics then start with the basics, a couple of batteries (AA cells,say, not lead acid car batteries, ' cos they are dangerous too) and a few leds and resistors. learn about volts, amps and power and resistance and the basics of capacitors and inductors. There are plenty of resources. Take it one step at a time.
I am pleased you came back, and I hope that maybe electronics will be 'your thing', but make no assumptions about any of it. Maybe tommorow, you can come back with a list of, lets say, six things that make car lead acid batteries dangerous. Any effort that you put in by learning, will generally be well repaid.
Best wishes

There are plenty of 220VAC to DC output power supplies, that is what you really want.

How many LEDs do you have? Small individual LEDs typically need 2.5 to 3V to turn on. You connect them all in series, with the voltage needed to turn them all on equal to the sum of them all and a little more for current limit control.

Another option is pre-made strips of LEDs
(forum might have added some extra characters to beginning & end of that)
with spacing determined by the strip, and power needed also.

Thanks for your inputs.

raymw, the website wasn’t available for me either. Anyway, I do understand the danger of 220V and I’m “used” to deal with that in my own house (only for powering common stuff like lamps or adding power outlets). I rephrased the thread to make sure everyone understand what I’m really looking for. I do understand that I cannot plug my arduino directly on the mains. I’m looking for a safe and proper way to do it with a compact 220V/AC->5VDC module.

The only thing I’ve found so far is the HLK-PM01. I was hopping some of you guys had experience with this kind of circuits and could give me some insights.

The usual Led's on a tape, used for interior lighting, generally run at 12V. You can get transformers to match. LED spotlights mounted flush to the ceiling, the transformer can be threaded through the hole for the lights, and rests on the ceiling. I'm assuming you want useful illumination, so these are relatively high powered devices compared to the Leds that are on the arduino, for example. Depending on how you want to control them, e;g switch sections on or off, or dim them, then you will need something to sit between the arduino and the 12V to said Leds. To power the arduino, the hi-link unit looks OK, but whatever you use, don't forget to fuse it. Most likely, where ever you live, there will be electrical wiring regulations which may want you to have 'an authorised electrician to make any connections to house wiring. Of course, it is entirely up to you if you by-pass that requirement, if any.