Skills Dev IV: Brushless Fan Wind Speed Indicator

Made by Weiqing Wang

When the wind speed is higher than certain threshold, the fan will be activated to indicate that the wind is quite high outside

Created: December 18th, 2022

0

Outcome

    • This is a wind speed indicator. When the windspeed is higher than the setting threshold, the fan will be activated to inform the user about that information. The white paper in fornt of the fan will be blew up to better convey the message. 
    • Demo video see below

0

Process

The circuit is hard this time since there are too many motors and different motors have different connecting pins and you have to test to know if the pins and wiring are correct. 

0

Reflection

I wish to try more motors and connect the motors with other output like light in the future. Right now the wind speed is not connected with internet data, in the future can try connecting the device with online data. 

0
int solPin = D2;

bool shouldActivate = false;

void setup()
{
  pinMode(solPin, OUTPUT);
  Particle.function( "activate", activateSolenoid );
}

void loop()
{
  if( shouldActivate ){
    doSolenoid(  );
    shouldActivate = false;
  }
  delay( 100 );

}

void doSolenoid(  ){
  for( int i = 0; i < 5; i++ )
  {
    digitalWrite(solPin, HIGH);
    delay( 500) ;
    digitalWrite(solPin, LOW);
    delay( 500 );
  }
}


int activateSolenoid( String command ){
 int intensity = command.toInt();
 if (intensity>10){
        shouldActivate = true;
    }
  return 1;

}
Click to Expand
0
48675 - Design for IoT - Skill Exercise 4 - Working with Outputs - Motors and Movement
Weiqing Wang - https://youtu.be/GSoKsWWqerM
x
Share this Project

Courses

About

When the wind speed is higher than certain threshold, the fan will be activated to indicate that the wind is quite high outside