Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

I purchased the servo motor/cobbler kit for Lesson 8, installed Occ v0.2 on the Pi, soldered & wired the set-up on the breadboard. The python program appears to run without error and writes outputs to the files (active 1, delayed immediate (?), mode [servo], etc), but the servo motor doesn't move. The voltage is 6V, so it looks OK. The red lead is +6V, brown is grd, orange is connected to pin 18, and the grd on the cobbler is jumped to battery grd as shown in the picture. The servo motor output shaft is rigid and cannot be advanced by hand, so this seems strange. Is it possible the servo is bad? How can I troubleshoot the set-up?

After checking again, I find the shaft rotates 180 degrees to a stop; it can be rotated back 180 degrees to a firm stop. It takes considerable torque... more than I think 1.5v batteries will apply. If this is normal, I will set the shaft at mid-point between extents and try again. Should the shaft have only 180 degrees of rotation? That sems odd.

A standard servo is designed so that it can be precisely positioned over a range of 0-180 degrees. The resistance is due to the reduction gearing between the motor and the output shaft. https://www.adafruit.com/products/155

The servo properties appear OK. Maybe I misunderstand the program. Does it make the motor advace from limit to limit (180 degrees?)? How does "setServo" work? Where is "angle" set? Perhaps angle=0, but should be set to a positive number. Is it in degrees or radians? Is there a way to test pin 18 output? Thanks for your help.

Thanks, it is operating now. I realised that angle is an index counter for the loop, so I changed the time to 2. sec and printed angle to the screen as it looped. I was certain that the program was working because angle incresed every two seconds, so I looked for wiring errors. I found the 6V was not getting to the motor at the breadboard. Once fixed, it worked. Thanks again.

I too got a cobbler kit and my servo does not move. I have it wired up just like the tutorial 8 diagram. I put a print statement in one of the loops and have confirmed that the python program is writing integers from 0 - 179. I have confirmed with the tail -f servo command that the servo file at /sys/class/rpi-pwm/pwm0/servo is getting these values written to it. I have tried a continuous rotation servo too and it always rotates in one direction when hooked up, even without the python program running. My servos both have Blk, Red, Wht wires on then and I assume Blk is ground, red is 6V and wht is control. I have confirmed 6V is present on the blk & red connection to the servos. Does anyone have any advice? Thanks.

It does turn with a stiff resistance when the program is running. It is the same resistance when the program is not running. It seems the same either way. I have the control wire on pin 18 of the GPIO, is that correct and where in the python program does it call out pin 18? I don't understand how it works I guess. Since the continuous rotation servo spins whether the python program is running or not I don't think the control signal is changing when the program runs. How could I check?