This fan was built using ESP32 microcomputer. I choosed ESP32 because it has built-in wifi chipset and I can easily connect it with my phone. People are using ESPs for most SMART HOME projects. I found some electric motor laying around, propeller, and couple of wires. The motor with the propeller is soldered to the ESP32, ESP32 is connected the mobile phone via wifi and BLYNK application. I can easily switch on my fan with just one click.

code:

(There are several things programmed in BLYNK, this code only connects your ESP with wifi and BLYNK)

#define BLYNK_PRINT Serial


#include <BlynkSimpleEsp32.h>
#include <WiFi.h>
#include <WiFiClient.h> 
 
// You should get Auth Token in the Blynk App.
char auth[] = "xxxxxxxxxxxxxxxxxxxxxxx";
 
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "xxxxxxxxxxxxxxxxxxxxxxx";
char pass[] = "xxxxxxxxxxxxxxxxxxxxx";
 
void setup()
{
  // Debug console
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
 
}
 
void loop()
{
  Blynk.run();
}