I am having trouble running a servo motor with raspberry pi

Here is what I have done so far ,

I have gotten a servo motor (http://goo.gl/67AsF),

I have powered it with a 5 volt power source from a battery,

I am trying to send a PWM with a raspberry pi (Model B rev 1) using the wiring pi library,

GPIO port 18 gives out about 3v power, I am using it send the pwm (code) , But the motor isn't moving .

What am I doing wrong ? what do I do to fix it ?

closed as too broad by goldilocks Mar 7 '15 at 16:15

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • I suggest the first thing you try is to follow the Adafruit tutorial example at: adafruit.com/blog/2013/01/09/… – recantha Apr 2 '13 at 10:27
  • Did you connect the ground wires together? – John La Rooy Apr 2 '13 at 11:31
  • @recantha : I followed the same tutorial, It didnt work. – Gautam Apr 3 '13 at 12:48
  • @gnibbler : Yes :-) , of course – Gautam Apr 3 '13 at 12:48
  • Did you connect the grounds from the battery to the ground of the Pi? I only ask because I thought I had connected the ground wires together and then realised it didn't just mean the motor grounds. :-) – recantha Apr 3 '13 at 18:09

Browse other questions tagged or ask your own question.