ESPHome board

Hi All.

I’m starting a new project by lighting some of my lego sets.
What is the best way to connect 230v<>5v

Input: 230v
Output: 5v

Looking for an ESP board that can do the trick of something with Zigbee.

1 Like

The best way is with a well regulated plug pack (or USB charger) that meets your country’s electrical certification requirements.

1 Like

A phone charger.

Esphome + ZigBee, not possible.

I would like to add it to Home Assistant so i can control it remote.

Yes that is what ESPHome does.

There might be a language barrier issue as your original post asks how to power the circuit from 5V.

My bad. It’s late and my info was a little bit short.

I have a string with some LED’s that need 5v.
I also like to control they from within Home Assistant.

Addressable LEDs, monochormatic LEDs, or RGB LEDs?

monochormatic LEDs

Then any ESP board will do. There are some good ones recommended here:

You should use this component in ESPHome:

How may LEDs are you driving?

It’s even more simple.
They are just on/off LED’s. Not even brightness.
About 8 LEd’s

Was thinking about putting a Shelly at the beginning so:

230v - Shelly (wifi) - Transforator to 5v - LED’s, but there might be something simpler.

Then use this component:

8x LEDs = 20mA x 8 = 160mA total (if all LEDs are on).

You can easily supply this from a 5V 1A USB phone charger.

Do you want to control the LEDs individually or have them all turn on and off together?

They just need to turn on all at once.

Then you will need a transistor or a MOSFETT as the ESP GPIOs can’t supply that much current.

If you are using LED strip R1 is probably already on the strip.

You could alternatively get an (ESPHome supported?) smart plug with a usb (with or without power monitoring), wire your leds to an old usb cable, and control power like that.

More expensive like this but possibly simpler, cleaner and potentially safer.

I have used a Sinilink XY-WFUSB USB with a USB charger for something similar. The spac says the MOSFET is good for up to 5A.

1 Like

I’ve done this and still currently doing a few more. There is nothing difficult about it.
Decide how you want to light up the sets (I used 12v Cob led strips and cut them up and I also used tiny leds and resistors so that they could handle 12v).
Then used EspHome(Node MCU/D1 Mini) and just created simple relay switches.
My relay is 16ch 5v (I used the 5v pins from there to power the Esp Boards) and fed 12v to the common ports on the relay.

Why would you use relays for 12v cob led’s? You completely lose the benefits that come with with led’s and your spending more money on relays and using a considerably larger area for hardware and of course the annoying relay clicking sounds. There are far better options for controlling led’s and relays might be the worst method.

I have 14 lego sets to light up. Using a single 16Ch relay because I want to be able to control them individually. The cob leds are also just a single color.

I get that but, you lose all ability to individually control them, you can only do On or Off and no individual brightness control…

Try something like this next time with the mosfet modules.