/* Written by R. Jordan Kreindler, 12/2017 PWM digital pin ~3 in series with 10M ohm resistor and connected to MOSFET Gate Fan placed between MOSFET Source and Drain */ int delay1 = 6000; // PMW pin 3 #define PWM1 3 void setup() { // Set PWM pin for output pinMode(PWM1, OUTPUT); } void loop() { // We turn the fan on and off analogWrite(PWM1, 255); delay(delay1); analogWrite(PWM1, 0); delay(delay1);1 } // End