Hi, last day i bought my new servo. It looks ok so i decided to try it, bus when I wrote the code and connect the motor,it doesn't work. the engine did not obey the orders that had been programmed and just spun out of control. Here is the code I used
Do not use the Arduino 5V output to power servos. Use a separate 5 to 6V power supply capable of providing 1 to 2 Amperes, and don't forget to connect the grounds.