Provide Servo 5V from digital output pin

Hello,

I've made the following schema:

I have connected my receiver to the 5V output of the Arduino. I have connected a servo to the receiver. I've splitted the orange wire, so I can send the input to the Arduino. I also have splitted the red (+) wire.

I want to get the 5V from a digital output pin ( the orange wire at top of the arduino), so I can disable/enable the servo. So basically I would replace the red wire from the servo plug with the orange wire.

I have put 5V on the pin in the code with digitalWrite(ledPOORT, HIGH). I've measured 5V with a multimeter, but the servo isn't reacting. What am I doing wrong or what am i missing?

Greets,

Sven

Are you trying to say that you are trying to use a Digital pin as a 5V source (+V) for the servo?

I noticed that is not working and very stupid honestly.

You cannot get more than 40mA from an I/O pin without damage. 20mA is a more sensible limit. Neither will drive a motor.

You should have a separate power supply for the servo and only connect the signal and GND wires to the Arduino.

...R