Re: Problem with servos
when you say it "instantly started"... what do you mean? Did it just twitch? or did it change position?
typically... in order to control a servo you need to supply +5 volts to the red wire, gnd the black wire and supply a PWM (pulse width modulated) signal to the white wire. The pulse must be repeated approx every 20ms (see the article below). So you must use a timing loop, or an interrupt based on a timer, or some other method of making sure you are repeating the pulse at the proper rate. Is your servo Digital or Analog?
Here is a description of how servos work (both digital and analog servos)
http://www.acroname.com/robotics/inf...rvo/servo.html
Last edited by Heckler; - 30th September 2011 at 17:42.
Dwight
These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.
Bookmarks