I'm having difficulty with getting a continuous servo motor to move at all. The motor I am using is FS90R from Adafruit and the board I'm using is the Adafruit Feather HUZZAH ESP 8266.
I've attempted to follow some guides online but nothing I have done seems to make the motor spin. I have the signal, ground and power wires hooked up correctly but the only movement I can get out of the motor is from applying power and connecting ground. When I do that the motor spins very slightly and stops almost immediately after connecting the two.
I have attached my code I am using and can add anything else that may be able to fix my issue. Really at a loss here so any help would be greatly appreciated!
#include <Servo.h>
Servo myservo;
int pos = 0;
void setup() {
myservo.attach(14);
myservo.write(180);
}
void loop() {
// put your main code here, to run repeatedly:
}
Continuous motion servos typically are stationary when sent the value 90, move ever more rapidly counterclockwise with values as they increase to 180, and ever more rapidly clockwise as the values decrease to 0.
Or vice versa in the southern hemisphere.
So this should make your servo go one way for a bit, then the other, rinse and repeat:
From your post, follow the link for the Adafruit servo page In the Adafruit description there is a link to a tutorial. This includes the electrical diagram as well as an example program.
Yes. The example sketches are written for regular servos, but they will certainly make @chilcaul's servo start doing interesting things.
The pot position control thing will control the speed and direction of the continuous servo, from full speed CCW to full speed CE.
The sweep thing will be interesting as it will(shoukd) make the servo slowly accelerate to full speed CW, then decelerate to stopped, accelerate to full speed CCW, then back to stopped…
Just got home and started with this. Can't believe I forgot to connect the grounds properly! Using an external power supply for the motor and didn't connect the ground from that to the ground on the microcontroller. Thanks for the help, everyone!