Not very experienced with electronics. Here is the circuit I built in Fritzing. Any comments would be greatly appreciated. Will it work?the n-channel MOSFETS I use are IRLZ44, the voltage regulator I use is L7805
Aaa... I forgot to put 10k resistors inbetween gate of each mosfet and ground.
7805 should have ceramic capacitors between input and gnd (330nF) and between output and gnd (100nF) as shown in most 7805 datasheets. It may need a heatsink. It's dropping 7V. Power dissipation in the regulator will be 7xcurrent drawn by WeMos D1 mini.
I assume the 100mF capacitor is really 100uF.
Those mosfets may get a little warm, depending on how much current the LEDs draw. Their data sheet gives values for 4V VGS and 5V VGS.
I noticed that, but you have remembered they are needed.
Thanks for the feedback. For the 7805, I plan to use just the voltage regulator, like this one,
https://pl.aliexpress.com/item/1005004242883653.html
along with two 100-microfarad capacitors for the input and output. This part includes a heat sink. Would that be sufficient?"
I would recommend using a 5V WS2812 strip and a 5V power supply. Then you will need no voltage regulator (except the one built into the Wemos) and no MOSFETs.
However, you would probably need to add a circuit to boost the 3.3V data signal from the Wemos to 5V for the strip. I would recommend using a 74hc14 for this. This chip contains 6 inverter gates. Wire 2 of them in series to boost the signal voltage. Don't forget to add a 0.1uF bypass capacitor for the chip and connect all the unused inputs to ground.
I am creating tutorial for control RGB led strip with Blynk app which links to WEMOS D1. I have already created few turorials for WS2812 strips and I am fully aware that they can be controlled with 5v signal:)
If you need help from this forum with basic circuits, do you think you are a qualified person to create tutorials on electronics?
I would choose a very small DC-DC converter set to output 3.3V and connect it to the 3.3V pin of the Wemos.
Also I would add some 10K pull-down resistors to the Wemos pins that connect to the MOSFETs.
I am creating Arduino tutorials focused on programming the microcontroller (MC) and the Blynk app in this particular scenario. To do that, I need to build a working circuit. I am more than capable of creating a breadboard prototype, where I power the Wemos from the USB socket. However, here I want to design a custom PCB. That’s why I want everything to be powered from a 12V power supply, and I’m seeking advice on this setup
Maybe, maybe not. The max Rds(on) for the IRLZ44 is not specified for a Vgs of less than 4.0V and the D1 can only output 3.3V
Choose a different MOSFET.
Would IRLZ24N be ok?
My comment is the same for the IRLZ24N
How much current do you need to switch?
After your comment, I looked for MOSFETs that would switch with a 3.3V signal. I would most likely have a strip of 50 RGB LEDs, which would be 16 segments, each consisting of 3 LEDs for each color channel. Each channel drives 20mA. So, 60mA × 16 segments gives me 1A. Am I calculating this correctly?
Yes. However you are not likely to find a through hole type MOSFET, it will probably be a surface mount part.
I found this https://pl.aliexpress.com/item/1005003115103592.html and on pictures it looks like they are through hole. I will order it and see:) But SMD would be ok as well. But what about heat sink then?
IRLZ24N, IRLZ44N may or may not work
Need to find a MOSFET with a max Rds(on) specified at a Vgs of 3.3V or less.
Would this be ok IRLZ34N?
One other suggestion. I have level shifters. If I used 5v reference voltage from the output of voltage regulator I could put the wemos pins that need to connect to gates to LV1 LV2 andLV3 of the shifter and then connect HW1 HW2 and HW3 to gates vie 220ohm resistors. Wold that work?
This would be good.
Can handle up to 3A
No heatsink needed
What kind of level shifters?
