



So I'm trying to use a nano to simulate lightning with LED modules. My issue is that the LED seems to just default to on. The script doesn't seem to be the issue, since I've tried it using the nano's built in LED, which works and shows the effect. So it must be happening either between the Nano and the MOSFET, or the MOSFET and the LED.
My current setup is a 12v 2A powersupply, Arduino Nano, and a IRLZ44N MOSFET. The MOSFET gate is connected to Arduino's D9 with 330ohm resistor, Drain is connected to the LED Module negative, and the Source goes to the Arduino GND which in turn goes to the Breadboard negative. And lastly the LED module positive is just connected to the Breadboard positive. Currently the Nano is connected via USB and the LED is powered by the powersupply.
Sorry in advance if my explanation is horrible. This is the first time I've touched an Arduino and a breadboard.