Add the following snippet to your HTML:
Here you can learn how to control servo with ARDUINO.
Read up about this project on
Watch the tutorial.
please subscribe to my channel.
#include <Servo.h> Servo myservo; int pos = 0; void setup() { myservo.attach(9); //pin ~9 } void loop() { for (pos = 0; pos <= 180; pos += 1) { myservo.write(pos); delay(15); } for (pos = 180; pos >= 0; pos -= 1) { myservo.write(pos); delay(15); } }
Comments