Control Servo using 10k potentiometer in Tamil
10k potentiometer :D
https://www.amazon.in/gp/product/B011E9A6GS/ref=as_li_tl?ie=UTF8&tag=mobile0b4d-21&camp=3638&creative=24630&linkCode=as2&creativeASIN=B011E9A6GS&linkId=8cff633c0377ed39d58260fd1b73ae31
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
Code link :D
//Zeeatech//
//plz Subscribe//
#include <val.h>
val myval;
int potpin = 0;
int val;
void setup() {
myval.attach(9);
}
void loop() {
val = analogRead(potpin);
val = map(val, 0, 1023, 0, 180);
myval.write(val);
delay(15);
}
Comments
Post a Comment