I had one SM-S4303R Continuous Rotation Servo (https://www.robot-r-us.com/vmchk/motor-robot-servo/src-sm-s4303r-continuous-rotation-servo.html) at first it used to work fine with direct 5V from the arduino. but yesterday it was not spinning at all. i opened it and connected 5V and ground the the internal motor and the motor was working fine! so i thought maybe the driver is dead or something. so i bought another one and the same thing is happening with the new one. am i doing something wrong in the wiring?
it has 1White, 1Red and 1Black female header.
- i tried with red to arduino 5V, Black to GND and white to arduino pin 9(using servo.write() to write values)
- i tried with red and black to Vout and GND of a 250mah 9V Ni-MH battery and white to arduino pin 9(using servo.write() to write values)
- tried making the ground of arduino and servo same(i dont know why it helps but some people it helps somehow)
- tried adjusting the middlepoint with a constant value 75 in arduino Servo.write()[code below]
is there anything i'm missing or should try?
#include <Servo.h>
Servo gg;
void setup() {
gg.attach(9);
Serial.begin(9600);
}
void loop() {
gg.write(75);
}