DS3218MG Servo - Not working with power supply I'm trying to run my DS3218MG Servo Motor with an external power supply and my arduino nano.
I'm using the following code:
#include&lt;Servo.h&gt;
Servo Myservo;
int pos;
void setup()
{
Myservo.attach(3);
}

void loop()
{
  
  
for(pos=0;pos&lt;=180;pos++){
Myservo.write(pos);
delay(15);
}
  delay(1000);
  
  for(pos=180;pos&gt;=0;pos--){
Myservo.write(pos);
delay(15);
}
  delay(1000);

}
According to the datasheet the servo needs a DC 4.8-6.8 voltage. My first attempt was to only use the arduino and no external power supply. So did the following connections:

servo's ground to arduino's ground
servo's + to arduino's 5V
servo's data to arduino's GPIO pin 3

Using this connection works fine and the servo rotatates to the desired positions. However, because the arduino does not supply enough current, i bought a power supply with the following specs:

With that, i did the following connections:

connect the ground of the power supply to arduino's ground (and servo)
keep the data pin
connect + of power supply to servo's +


Unfortunately, the servo does not move with the external power supply. IMO, it should have the right voltage and also supply enough current (at least as much as the Arduino).
Do you see the problem?
@starcat,  regular  usb cable for  powering  arduino