DFRobot DF15RSMG 360 degree rotation (20kg) Programming help

Hello I'm working with a 360 degree rotation servo and I can't seem to find the right code for it. I would also like to control the speed of the rotation. Thanks

The servo motor: DF15RSMG 360 Degree Motor - DFRobot

The Arduino Servo library can be used:

A value of 0 will be 0 degrees, and 255 will be 360 degrees.
Perhaps you need some tweaking with the timing, since it is a special servo motor. But using the Servo library is a good start.

You can not control the speed when you set a new angle. You can slowly increase the value to make the servo go slow.
Often the value to a servo motor is updated/changed every 10ms.
The AccelStepper library can make the servo motor accelerate. AccelStepper: AccelStepper library for Arduino

KilldByBordm:
Hello I'm working with a 360 degree rotation servo and I can't seem to find the right code for it. I would also like to control the speed of the rotation. Thanks

If the servo behaves like a standard servo, then try the servo "sweep" example code in the IDE examples.

Well sadly the servo doesn't respond even correctly to the sweep program. And I don't know how to you that AccelStepper library neither.

Most likely ALL the grounds are not connected together.

It would be nice to have a button to press to have zoomkat's little diagram be posted.

Below is a basic setup for external power to a servo. Generally trying to power a servo from an arduino does not work.