Code for smart gloves for disabled people

 Code:


Code created by innovative ideas


int flexs = A0; // flex sensor is connected with analog pin A0


int data = 0; 


 


int relay = 13; 


void setup()


{


  Serial.begin(9600); 


  pinMode(flexs, INPUT);


pinMode(relay, OUTPUT);   


}


 


void loop()


{


  data = analogRead(flexs); 


  Serial.println(data); 


  


  if( data <= 200) 


  {


   digitalWrite(relay, LOW);  


  }


  


    if( data > 200) 


  {


   digitalWrite(relay, HIGH);  


  }


  delay(1000); 


}

Post a Comment

3 Comments

  1. SIR PLS ONFIRM WILL THE PROJECT WORK WITH THIS CODE

    ReplyDelete
  2. SIR PLS TELL IS THIS THE CODE FOR THE PART 2 OF LET THE MUTE SPEAK PROJECT

    ReplyDelete