These are the pictures and code the servo is not rotating but the code ia uploading and its vibrating

Im working on smart parking management project im using servo motor for automatic gate opening im uploading sweep code but the servo is not rotating but it's vibrating Use code tags to format code for the forum



it's vibrating`
#include <Servo.h>

Servo myServo;

void setup() {
myServo.attach(9);
}

void loop() {
myServo.write(0);
delay(2000);
myServo.write(180);
delay(2000);
}
![

4 posts were merged into an existing topic: Servomotor is not rotatin with arduino uno using for automatic gate opening