I have recently purchased a servo motor. I think it is a rip-off, not sure of which model though. The specs that are given are in the link
Anyway, I've been trying to use the write function and I have read the description in the library which says that the motor will move to a certain position if it is a standard servo or it will have a certain speed if it is a continuous servo.
Now I haven't tampered with the servo and the site says that it is modifiable to a continuous servo.
However, when I use the code
servo.write(0) It rotates in one direction
servo.write(180) It rotates little over 180 and then goes back and forth(sweeps) [Even if it was a cont. servo , why is this happening?]
This happens instead of moving to a certain position.
I've also read that alternatively I can give a PWM signal to the signal pin of the servo but the resolution of the analogWrite() function is only 8-bit and the duty-cycle should be maintained at 1-2ms ON 18s OFF which means that the positions that the servo can take are limited.
I'm just a beginner. I'm tired of googling :( Help would be much appreciated.