pontentiometer to control standard servo
sushiandmorihiko
Posts: 40
hello,
now i am planning to rotate standard servo by means of 3-pin potentiometer---so when you turn the knob of the potentiometer,the servo will move the same amount and direction with the potentiometer.
is there any way i can do this?--i have seen the servo driver made by robotic world which have this function--so i would like to make my own too.
thank you for the attention
now i am planning to rotate standard servo by means of 3-pin potentiometer---so when you turn the knob of the potentiometer,the servo will move the same amount and direction with the potentiometer.
is there any way i can do this?--i have seen the servo driver made by robotic world which have this function--so i would like to make my own too.
thank you for the attention
Comments
Hope this helps
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Have Fun
TR
Post Edited (TechnoRobbo) : 10/5/2007 12:24:35 AM GMT
i have followed your method ,d faust and it works just great. it works really well and sensitive with RCTIME. here is how i did it: with reference to page 208 of boe-bot book
note--you just have to replace the photoresistor with the potentiometer and voila. ok here is the code:
timeleft VAR Word
x VAR Word
DO
HIGH 0
PAUSE 3
RCTIME 0,1,timeleft
DEBUG HOME, "timeleft=", DEC5 timeleft
PAUSE 1
x = timeleft * 16 + 200
PULSOUT 1,x
and the rest is like what d faust has said----again thank you for the advice(i have been trying this for about an hour and finally figures it out).
i would like to try out technno robbo ideas too but i dont have the ics with me right now and it is considerably quite complex but i bet it packs more functions.
looks really cool--is it the kind of circuit that parallax or lynmotion used for driving servos--wow.
you guys seem really experienced in driving standard servo--perhaps until my project is done i will show you guys--hope it is up to your guys standard
thanks a lot guys
what does centering servo actually means?
-is it turning anyway you like and then it will go back to the centre 90 degree for 180 degree rotation servo, or
-is it turning anyway you like and it will go back to where it first started,or
-is it turining anyway you like then it will go back according to the preset angle of your choice.
if anyone knows about centering--pls help me.
i want my servo to move anywhere around and after i m done it will go back to the preset angle or the degrees that i have set in the first place.
i will gladly accept sample codes for standard servo centering
thank you in advance
You might find this link useful:
http://forums.parallax.com/showthread.php?p=629063
"centering" is usually referred to servos that have been modified for continuous rotation. It is the position that keeps the servo stationary. You can adjust this position either with a set screw if that option is available, or you can adjust the PULSE width offset that you are sending to the servo through software.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
·
http://www.parallax.com/detail.asp?product_id=28023
Here's the PC direct software:
http://www.parallax.com/dl/sw/SetupPSCI.exe
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Have Fun
TR
Post Edited (TechnoRobbo) : 10/5/2007 10:48:50 AM GMT
http://www.parallax.com/dl/appnt/stamps/bs1Appnotes.pdf
SJW
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔