Hello everyone. I am trying to learn basic programming and Arduino tasks. At the moment I have my LED Strip that runs off of 12V hooked up to the Drain of the IRLB3034PbF MOSFET and positive of 12V power supply. I have my Arduino hooked up from Pin 8 to the Drain of the MOSFET and Source hooked to Ground of the Power Supply. I have very basic programming to turn LED on wait three seconds and turn off. However they are staying on and not going off. What am I doing wrong?
Im not sure how to add code like you guys do so I will copy and paste it.
int ledPin = 9;
int boardPin = 13;
void setup ()
{
pinMode (ledPin, OUTPUT);
pinMode (boardPin, OUTPUT);
}
void loop ()
{
digitalWrite (ledPin,HIGH);
delay (3000);
digitalWrite (ledPin,LOW);
delay (3000);
}