Hello, currently in project, I try to rotate my servo motor continues, I need it to go at a speed of:
9.6 ° / s for 5seconds
then 10.5 ° / s for 5seconds
then 12 ° / s for 5seconds
then 13.2 ° / s for 5seconds
finally 15.8 ° / s for 5seconds
I know we can not do it directly, there is nevertheless, can be the way to trick, I do not know much about Arduino that's why I seek your help.
I assume that you have a continuous rotation servo.
Different servos have different behavior in terms of speed control.
The electronics in a servo are optimized for position control, not speed control.
I think you will not get very accurate speed using the servo electronics.
What are you actually doing? Those are some very specific speeds.
Sounds like a job for a real servomotor or a stepper, not a hobby servo in continuous rotation mode (which
is not actually a servo of any kind, just a DC motor + driver).
Our engine must also be able to turn in both directions, so we need to find a solution with our servo,
it's the only one who can do what we want, unfortunately we lack skills.
Your link to the servo does indicate that this is a continuous rotation servo.
The electronics in your servo were designed for position control, not speed control.
You are likely not going to get accurate speed control with those servos.
Do you have a method to measure the speed?
Go find the knob tutorial that uses a potentiometer to control the signal sent to a servo. Try different values and see what speed the servo turns at the different values.
Try this with all 4 servos you have.
Do you get decent speed control based on the signal you send to the servo?
Edit: You have been asked multiple times for more information about what you are actually doing. You gave cryptic information in replies #4 and #6.
4 servos with pulleys with cables.
You want them coordinated.
Please tell us more about what you are trying to do. It will help us help you.
What does the cable do? Pull something? Lift something?
Nakofum:
Where is the tutorial to measure speed with a potentiometer?
This is a tutorial that lets you use a potentiomenter to change the signal sent to a servo.
Note that this shows the servo powered from the arduino. Do not do that. Power the servos separately. Connect the grounds.
To be clear, I think that you should do this to investigate whether you can use servos to get accurate speeds.
I believe you will find that you cannot. But you should check.
The objective is to raise, move horizontally, lower our weight.
Do all 4 servos lift the weight?
What moves the weight hoirzontally?