int X = 1000; //Here I'm creating the variable X, which will be the time the DC Motor will be ON. int Y = 1000; //Here I'm creating the variable Y, which will be the time the DC Motor will be OFF. void setup() { pinMode(4, OUTPUT); // Here I'm telling the program which pin is used for the MOSFET. } // the loop function runs over and over again forever void loop() { digitalWrite(4, HIGH); // turn the MOSFET on (HIGH is the voltage level) delay(X); // wait for X seconds digitalWrite(4, LOW); // turn the MOSFET off by making the voltage LOW delay(Y); // wait for Y seconds } //Since all this chunk of code is between the "{}" of Void Loop, it will be repeated indefinitely.