Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
angelo_perera
Published

How to works a servo motor

How to works a servo motor

BeginnerProtip824
How to works a servo motor

Things used in this project

Story

Read more

Schematics

circuit diagram

Code

code

Arduino
#include<Servo.h>

Servo myservo;


void setup() {
  // put your setup code here, to run once:
myservo.attach(10);

}

void loop() {
  // put your main code here, to run repeatedly:
myservo.write(0);
delay(1000);
myservo.write (180);
delay(1000);

}

Credits

angelo_perera
6 projects • 6 followers
Contact

Comments

Please log in or sign up to comment.