Nyan Lin Set
Published © GPL3+

Temperature Controller

Using voice commands which will identify whether the fan switches on to cool the temperature in the room.

Beginner10 hours117
Temperature Controller

Things used in this project

Story

Read more

Schematics

fan diagram

Use to turn on the fan

Code

fan code

C/C++
to run the fan
int speedPin=5;
int pin1=4;
int pin2=3;
int mSpeed= 225;



void setup() {
  // put your setup code here, to run once:
pinMode(speedPin,OUTPUT);
pinMode(pin1,OUTPUT);
pinMode(pin2,OUTPUT);
Serial.begin(96000);

}

void loop() {
  // put your main code here, to run repeatedly:
digitalWrite(pin1,LOW);
digitalWrite(pin2,HIGH);
analogWrite(speedPin,mSpeed);
}

Credits

Nyan Lin Set

Nyan Lin Set

1 project • 0 followers

Comments