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

Popular posts from this blog

Obstacle Avoiding Robot Car Arduino Project

4 Best Science Projects For School Without Using Arduino

SENSOR TUTORIAL

AUTOMATIC TOLL GATE PROJECT

ARDUINO TUTORIAL

Drone Tech | How To Make Mini Drone For Science Exhibition It Can Fly || Remote Control Drone

RAIN ALARM PROJECT

SMART IRRIGATION FOR FLYOVER

KIKIBOT Robo Car ESP32 Project