As you can see, the blue one draws about 0.5A. My question is that I want to use MOSFET to drive these LEDs with PWM, I have shared two circuits below which should I use?Why?
It is simpler, adequate, and the 200 Ohm (actually 220 Ohm) resistor is the correct value. However there also should be a 10k resistor between the Arduino output and ground to positively switch the FET off while the Arduino is not powered or in the process of booting up.
But always use a Nano rather than a UNO for any "real world" project. I suspect you have already figured that out.
But looking at the leds and seeing the huge difference in current I don't think they have any form of current regulation on them. So just connecting them to 12V is a bad idea... Better to use a proper driver (and thus more than 12V).
septillion:
But looking at the leds and seeing the huge difference in current I don't think they have any form of current regulation on them. So just connecting them to 12V is a bad idea... Better to use a proper driver (and thus more than 12V).
One important detail is to use the correct mosfet transistor, preferable a logic level type.
Check if the transistor gets warm, at these low current it must not heat up or you are using a wrong transistor type.
And be careful with buying mosfet on Ebay, they sell a lot of fakes.