@o_lampe
I found the solution! The problem was that I didn't have enough experience in basic electrical engineering.
I needed to use the GPIO port, which supports PWM, to control the servo. However, I took only the "io4.out" wire from the GPIO port.
When I connected the GND contact in the GPIO pad with a "-" 5V power supply with a separate wire, everything worked right away!
Many thanks to everyone for participating!
I think that this problem might not have happened for me if this moment had been described in more detail in the documentation on connecting servos.

Best posts made by witas777
-
RE: Help set up 2 Servo MG995 for Duet3 6HC