servo 360

hello everybody
i want to use my servo 360 as sweep (from 0 to 360 and from 360 to 0)
i do it by servo 180 and it worked
but in 360 that not work!
pleas help me

haidar95:
hello everybody
i want to use my servo 360 as sweep (from 0 to 360 and from 360 to 0)
i do it by servo 180 and it worked
but in 360 that not work!
pleas help me

most hobby servos only move 180º, what type is yours?

And the Servo library only accepts values of 0 to 180 but they will actually move the full travel that the servo can provide, which may be more or less than 180 degrees. It all depends on what servo you're talking about and what code you're using to drive it.

But most servos described as "360 degree" are actually continuous rotation and you really can't control their positions, just make them turn one way or the other at various speeds.

Steve

my servo is servo 360 Continuous type "Tower"

Does it have a type or a link to it's specification?

But from your description it probably won't sweep. It has no positional control.

Steve

thank u so much
i understand that it probably won’t sweep.because It has no positional control
And the Servo library only accepts values of 0 to 180
but why it have control pin?
and how we can use it by arduino
this is the link :

On a continuous rotation servo the signal normally controls speed and direction. Usually write(90) is stop, write(0) is full speed in one direction, write(180) is full speed in the opposite direction.

Why not just get a potentiometer, load the Knob example program and try it to find out exactly what yours does?

Steve

you mean that if i use map commend i can do sweep by servo 360 ?
i wish i can use "for" because i want to send the value of "i" to "Processing" program
I am trying to develop the famous 180 sonar for another 360
thank you very much

The best that you can do with that servo is to run it for a fixed time at a fixed speed in each direction to make it sweep back and forth. This will not be accurate in the long term and you will have no idea which angle the servo is at.

You could run it at a fixed speed for a very short period of time then stop it in order to move it in steps but this will be even more innacurate

The only way you will know what your servo can do is to TRY it. Just talking about it won't get you anywhere.

If I wanted to scan/sweep over a full 360 degrees I'd use a completely different servo. The most likely to work is a sail winch servo. They usually have full positional control over at least 3 complete turns but they are also usually quite large and expensive. E.g. https://hobbyking.com/en_us/sw5513-4ma-sailwinch-servo-10-63kg-55g-0-9.html

Steve

dear Steve when i try it it’s just going on constantly such as normal motor!
i use sweep example but i have changed degrees:
#include <Servo.h>
Servo myServo;
void setup() {
myServo.attach(9);
}
void loop() {

for(int i=5;i<=355;i++){
myServo.write(i);
delay(30);}
for(int i=355;i>5;i–){
myServo.write(i);
delay(30);}
}
it not worked and i already know why
thank you very much @Steve and thanks all

Perhaps now you know why I suggested the KNOB example, not Sweep. With Knob you can control exactly what signal goes to the servo.

Steve

I will try it
But when I make a sonar, the motor must move automatically
Not manual, if i use the variable resistance the radar will move manually
That would seem stupid in my small project

Do you understand the difference between a servo. A device that moves to a commanded angle and stays there, and a continuous rotation "servo". The latter is an electronically controlled motor whose speed and direction, but not its position, can be commanded.

You have the latter.

okay I think I understand
If i want to make the radar 360 i should use a different type of motor servo
maybe which Steve referred to :

A sail winch servo would allow you to scan through 360 degrees but would need to need to rotate backwards and forwards. rather than rotating continuously. Would that be acceptable ?

You could also consider using a stepper motor which, as its name implies, moves in discrete steps so can be positioned accurately.