How can you connect a DC fan/airblower to an arduino, and program it to spin for 5 seconds, then stop for 5 seconds, the spin for 5 seconds, the stop for 5 seconds. You get the idea.
Our code is below, however it does not work, it however does upload, but nothing happens
int fan = 3;
int a = 9;
int e = 0;
void setup() {
pinMode(a, OUTPUT);
}
void loop() {
e = analogRead (fan);
analogWrite(a, e /4);
}
PLS HELP U R OUR ONLY HOPE!!!!!!!!!!!