BASIC SERVO MOTOR TEST
How To Test Survo Motor Using Arduino Uno
Connections:
Survo Motor pin Arduino pin
Signal D9
+ve 5v
-ve GND
Code:-
#include <Servo.h>
Servo myServo;
void setup() {
myServo.attach(9); // Attach servo to pin D9
}
void loop() {
myServo.write(0); // Move to 0°
delay(1000);
myServo.write(90); // Move to 90°
delay(1000);
myServo.write(180); // Move to 180°
delay(1000);
}
Circuit Diagram:
Thankyou...


Comments
Post a Comment