How To Make Automatic Radha Krishna Jhula (Swing)
If there is any problem to create this project, you can DM on
What's app :- wa.me/916000180664
Group :- https://chat.whatsapp.com/I4Nv0YEt1hK3Z9EVjsvngh
π¨π»π»Code :-
/*
code started
#define servo= 9;
created by technical ideas
https://youtube.com/c/TechnicalidEas07
*/
#include <Servo.h>
Servo myservo;
int pos = 0;
void setup() {
myservo.attach(9);
}
void loop() {
for (pos = 0; pos <= 180; pos += 1) {
myservo.write(pos);
delay(4);
}
for (pos = 180; pos >= 0; pos -= 1) {
myservo.write(pos);
delay(4);
}
}
Comments
Post a Comment