RF LED Controller Project - Mosfet causing strange behaviour

Hi all

I’m building a wireless 12V PWM LED Controller using Arduino Nano, IRF520N Mosfet and a generic 433Mhz RF Receiver

I am building my code around the rc-switch library.

Everything works as expected until I plug the Signal Wire from the Arduino into the Mosfet Board

On plugging in, I have a lot of trouble reading RF codes sent from my remote unless I go very close to the antenna (<10cm) which is obviously impractical.

It feels like there’s some sort of interference but diagnosing it is out of my skillset

I’ve attached Schematic, Arduino Code and a video link showing the problem

This circuit is in a vehicle running off the 12v battery. The engine/alternator is not running

Thanks in advance

RF_LED_Controller.ino (4.03 KB)

Wouldn't it be simpler to use a logic level MOSFET and drive it directly from the Arduino without a driver chip?

DrDiettrich:
Wouldn't it be simpler to use a logic level MOSFET and drive it directly from the Arduino without a driver chip?

I believe I am using a direct driven logic level MOSFET. It just came on a breakout board

https://www.ebay.com.au/i/313033139298?chn=ps&norover=1&mkevt=1&mkrid=705-139619-5960-0&mkcid=2&itemid=313033139298&targetid=892931907096&device=c&mktype=pla&googleloc=9072242&poi=&campaignid=10101785207&mkgroupid=102311924860&rlsatarget=aud-692203741102:pla-892931907096&abcId=1145981&merchantid=7364522&gclid=Cj0KCQjwz4z3BRCgARIsAES_OVdCmGdnl0ueRQYPlEvkPQVXgDj6S7_6XeWe2onPEQqatlorwBY6T7MaAiSIEALw_wcB

Is this correct?

How much current do You think the LEDs get? I think that it is too much current to be handled by a breadboard.

IRF520N is not a logic level MOSFET. Get some IRL... type.

DrDiettrich:
IRF520N is not a logic level MOSFET. Get some IRL... type.

Will do! Does this look ok?

Failing that I can get this:

Do I need any resistors to protect the arduino?

Railroader:
How much current do You think the LEDs get? I think that it is too much current to be handled by a breadboard.

The 4 x LED downlight set is rated as max 3W @12v

What do you think?

The FQP30N06L looks okay, even if you don't need 32A in your project.

See the typical MOSFET protection resistors: 100k from output to GND to keep the FET off after boot, and 220 Ohm output to gate to limit the switching current.