Controlling LED Strip with Nextion Screen & Powering it from mains electricity

Hey, i am currently trying to program the Single LED strips around my handmade mirror frame, and I am struggling to do so as I lack experience working with LED strips.

Does anyone have an idea of what the circuit would look like?

I have transistors, resistors, etc

Furthermore, is there a way i can make sure the strips are powered by the mains, where the arduino decides when power can flow to the LED?

Thanks

I use a AC to 5V adapter similar to one for laptops.
The 5V will run the WS2812B LED strips.

I have a plug that connects the Arduino to the mains electricity, is there no way to use this power supply?

chrisaex:
I have a plug that connects the Arduino to the mains electricity, is there no way to use this power supply?

what plug?

What kind of strip? What colour(s)? How long? What voltage? How many LEDs per metre?

Please post links that can be clicked.

Until we know these things, we can only say that it may damage the Arduino if you power the strip through the Arduino. It's ok to do that for very short strips, but if anything more than 10 to 20 LEDs (depending on the type of strip), then you need to power the strip directly, and take a second pair of wires to power the Arduino.

These are the LEDs

The total length of the LEDs around the frame is approximately 1300mm

12V

Its a single LED with 6500k White

That product is 600 LEDs.
The LEDs are type 2835
According to one website ( LED SMD 5050 VS 2835 VS 3528 - Olympian LED ), the 2835 requires 0.15 Watts

Since watts = voltage x current.
Each LED draws 15 watts / 12 volts = 0.0125 amps or 12.5 milliamp

600 x 0.0125 amps = 7.5 Amps

You need a 12 V AC adapter that can supply 7.5 amps if you want that entire 5 m of LEDs lit.

You don't need resistors etc. just a power supply and a way to securely connect that strip of LEDs to the power supply.

ieee488:
That product is 600 LEDs.
The LEDs are type 2835
According to one website ( LED SMD 5050 VS 2835 VS 3528 - Olympian LED ), the 2835 requires 0.15 Watts

Since watts = voltage x current.
Each LED draws 15 watts / 12 volts = 0.0125 amps or 12.5 milliamp

600 x 0.0125 amps = 7.5 Amps

You need a 12 V AC adapter that can supply 7.5 amps if you want that entire 5 m of LEDs lit.

You don't need resistors etc. just a power supply and a way to securely connect that strip of LEDs to the power supply.

I've cut it up, so I am not using the whole length.

The thing is, I don't know where to start, as in does anyone have any guidance of how to set the circuit up etc?

There is no circuit to set up.
The strip has everything.
You supply the power.
End of story.