Go to Post You know you're addicted to FIRST when...you realize that Dean IS changing society with FIRST and you love the fact that you are helping. - EStokely [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 03-02-2009, 00:35
Mr.Macdonald Mr.Macdonald is offline
Registered User
FRC #2272
 
Join Date: Jan 2009
Location: Conejo Valley Robotics
Posts: 26
Mr.Macdonald is an unknown quantity at this point
Potentiometer and Motor Trouble

I am trying to set up a motor with a potentiometer to act like a servo. I have another potent controlling the desired location. I can make the motor turn one way correctly but it jitters when going the other direction.

The potentiometer on the motor in magnetic and have infinite rotation, the controller in a normal potent.

My algorithm goes as follows.
PHP Code:
pot_0 controller potentiometer
pot_1 
on motor
mot_0 
motor

mot_0
.Set10 int( (pot_0.value() - pot_1.value())/10 )/1024
the 10's allow for error. 1024 is potentiometer max.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Motor with a built in Potentiometer..? Kaushal.K Motors 5 09-01-2007 08:31
MOTOR TROUBLE!! NEED AN ASAP ANSWER!! psycho7 Motors 4 12-02-2006 14:58
Motor trouble DHarris Motors 1 31-01-2006 19:44
Potentiometer Trouble ?? VideoMan053 Programming 18 28-01-2005 14:10
External metal jacket on the Drill motor and FP motor, WHY? Dennis Hughes Technical Discussion 1 04-06-2001 11:59


All times are GMT -5. The time now is 02:24.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi