How To Make Automatic Radha Krishna Jhula (Swing)

 


If there is any problem to create this project, you can DM on

 Instagram

Facebook

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

Popular posts from this blog

Servo Motor Control Using By Bluetooth HC-05

Best IOT Project By Technical idEas