Thingiverse
MG90s Servo Actuator by BasilEnglish
by Thingiverse
Last crawled date: 4 years, 7 months ago
just print and enjoy, it may need a bit of filing depending on printer quality , here's is it working on youtube https://www.youtube.com/watch?v=0t_OpX1WtUw
code for it:
include
Servo myservo; // create servo object to control a servo
// variable to read the value from the analog pin
void setup() {
myservo.attach(7); // attaches the servo on pin 9 to the servo object
}
void loop() {
// scale it to use it with the servo (value between 0 and 180)
myservo.write(175);
delay(350); // waits for the servo to get there
myservo.write(45);
delay(350); // waits for the servo to get there
}
code for it:
include
Servo myservo; // create servo object to control a servo
// variable to read the value from the analog pin
void setup() {
myservo.attach(7); // attaches the servo on pin 9 to the servo object
}
void loop() {
// scale it to use it with the servo (value between 0 and 180)
myservo.write(175);
delay(350); // waits for the servo to get there
myservo.write(45);
delay(350); // waits for the servo to get there
}
