info@maverickden.com
+91 7715916683 (India)
+60 123250147 (Malaysia)

Arduino Fan

In this tutorial we will teach you how to operate fan  with Arduino UNO / Nano

COMPONENTS USED :

SR NO COMPONENT NAME QUANTITY
1 Arduino Board (Uno or Nano) 1
2 DC Motor 1
3 Plastic Fan 1

 

Schematic Diagram :

Source Code:

// the setup function runs once when you press reset or power the board

void setup() {

// initialize digital pin 13 as an output.

pinMode(12, OUTPUT);

}

 

// the loop function runs over and over again forever

void loop() {

digitalWrite(12, HIGH);

delay(1000);              // wait for a second

digitalWrite(12, LOW);

delay(1000);              // wait for a second

Video: