servo and arduino in tamil





Arduino Board :D https://www.amazon.in/gp/product/B0182PJ582/ref=as_li_tl?ie=UTF8&tag=mobile0b4d-21&camp=3638&creative=24630&linkCode=as2&creativeASIN=B0182PJ582&linkId=e30f6090dfc4e9e73d85558c3570b78f



Servo :D
https://www.amazon.in/gp/product/B06Y55KR9J/ref=as_li_tl?ie=UTF8&tag=mobile0b4d-21&camp=3638&creative=24630&linkCode=as2&creativeASIN=B06Y55KR9J&linkId=10fe49fa54c180eb67a4824e7be99f4c


Circuit diagram




Code :-
     
//Zeeatech//

#include <Servo.h>

Servo myservo; 
int pos = 0; 

void setup() {
  myservo.attach(9); 
}

void loop() {
  for (pos = 0; pos <= 180; pos += 1) {
    // in steps of 1 degree
    myservo.write(pos);             
    delay(15);                     
  }
  for (pos = 180; pos >= 0; pos -= 1) {
    myservo.write(pos);             
    delay(15);                     
  }
}

Comments

Popular posts from this blog

How to make a radar using Arduino and Processing IDE

Smart gesture robot