I am trying to control Deluxe HiTec HS-485HB servo motor with arduino mega, a separate voltage source is used (5V). However, when I run the code with any input angle the servo rotates to the far right, and in case I let it as it is it will be certainly damaged, this is the normal servo motor code:
#include <Servo.h>
Servo myservo;
void setup() {
myservo.attach(9);
}
void loop() {
myservo.write(180);
delay(15);
}
Anyone knows what is the problem? thanks in advance!
Note: The motor came with Tetrix max kit, is anything to relate it with the problem?