Go to Post It's always FIRST season. - Foss@Team176 [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2006, 18:52
itzrobz itzrobz is offline
Registered User
None #0333
 
Join Date: Jan 2006
Location: BROOKLYN
Posts: 29
itzrobz is an unknown quantity at this point
Motor to Servo

Can anyone tell me how i can program a Motor into a Servo Motor? Or ideas on how i can "manipulate" the motor into a servo motor?

thanks in advance.

Last edited by itzrobz : 30-01-2006 at 19:03.
  #2   Spotlight this post!  
Unread 30-01-2006, 19:37
Cuog's Avatar
Cuog Cuog is offline
Registered Linux User: 390661
AKA: Alex
FRC #0422
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Richmond, Virginia
Posts: 852
Cuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond repute
Send a message via AIM to Cuog
Re: Motor to Servo

Do you mean you want to make a normal motor act like a servo? if so then u will also need a potentiometer and what u do is hook the pot up to whatever it is that must rotate and compare the value of that pot to where u want the motor facing then drive the motor until it reaches that point, i would recomend that u do this after the motor has bee geared down and u are comparing the overall displacement of the motor as this will be easier to implement.
__________________
KK4KQO
http://voltair.us
Too many projects, too little time.
  #3   Spotlight this post!  
Unread 30-01-2006, 19:43
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Motor to Servo

If you mean turning a servo into a motor, that's a hardware question. No amount of software can do that.
  #4   Spotlight this post!  
Unread 30-01-2006, 20:24
itzrobz itzrobz is offline
Registered User
None #0333
 
Join Date: Jan 2006
Location: BROOKLYN
Posts: 29
itzrobz is an unknown quantity at this point
Re: Motor to Servo

What I meant was making a motor act like a servo.

Quote:
Originally Posted by Cuog
Do you mean you want to make a normal motor act like a servo? if so then u will also need a potentiometer and what u do is hook the pot up to whatever it is that must rotate and compare the value of that pot to where u want the motor facing then drive the motor until it reaches that point, i would recomend that u do this after the motor has bee geared down and u are comparing the overall displacement of the motor as this will be easier to implement.
I'll try that.

Thanks for the help
  #5   Spotlight this post!  
Unread 30-01-2006, 20:35
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Motor to Servo

You'll need some sort of feedback to tell you what position the motor is in. Usually that'll be a potentiometer. Then you'll need to write a program to compare the measured position to the desired position, and drive the motor in the proper direction at the appropriate speed to get it to where you want it to go.

Search the forums for "PID Control" and you'll find several discussions of the topic.

Edit: Search the forums for "PID Control" and you'll also find out what it is.

Last edited by Alan Anderson : 30-01-2006 at 21:31.
  #6   Spotlight this post!  
Unread 30-01-2006, 20:41
itzrobz itzrobz is offline
Registered User
None #0333
 
Join Date: Jan 2006
Location: BROOKLYN
Posts: 29
itzrobz is an unknown quantity at this point
Re: Motor to Servo

Quote:
Originally Posted by Alan Anderson
You'll need some sort of feedback to tell you what position the motor is in. Usually that'll be a potentiometer. Then you'll need to write a program to compare the measured position to the desired position, and drive the motor in the proper direction at the appropriate speed to get it to where you want it to go.

Search the forums for "PID Control" and you'll find several discussions of the topic.
Sorry for being such a newb at this, but what exactly does PID mean?
  #7   Spotlight this post!  
Unread 01-02-2006, 18:04
Radiator251 Radiator251 is offline
Programmer
AKA: Jason Raede
FRC #1717 (Dos Pueblos)
Team Role: Programmer
 
Join Date: Dec 2005
Location: California
Posts: 7
Radiator251 is an unknown quantity at this point
Re: Motor to Servo

We're doing this exact thing for the motor used to change the angle of the compression thing for the ball launcher, and I basically just did what was said above - I get readings from a potentiometer and stop the motor when the desired reading (AKA, the one that I want for the specific angle of launch) is equal to the current reading.
  #8   Spotlight this post!  
Unread 02-02-2006, 13:51
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: Motor to Servo

you will need to gear down the motor significantly, put a potentiometer on the shaft.
PID is basically a method of predicting how a motor will react in the future based on current changes. a simple thing you could do is just make the amount of power given to the motor propotional to the distance you are from your target potentiometer value.
this will probably work very well for a slow position application like this
__________________
Team 701
  #9   Spotlight this post!  
Unread 02-02-2006, 16:11
viewtyjoe viewtyjoe is offline
Code Monkey
AKA: Nathaniel Davis
no team
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: West Chester
Posts: 14
viewtyjoe is an unknown quantity at this point
Send a message via AIM to viewtyjoe
Re: Motor to Servo

Quote:
Originally Posted by itzrobz
Sorry for being such a newb at this, but what exactly does PID mean?
PID stands for Proportional, Integral, Differential control. Basically put, since the motor has inertia, you cannot just stop the motor once you reach the position (unless you're geared down a lot), because you'll overshoot. I personally recommend using proportional and differential control, as we have not had much luck working with integral controllers. With just proportional control, you'll tend to oscillate between two positions, but with differential control, you'll begin to see the oscillations decrease.
Closed Thread


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
Camera Servo Problems pi_guy578 Programming 2 28-01-2006 13:17
Servo behavior question / advanced servo/PIC programming question DanL Electrical 12 18-10-2005 18:33
Servo command confusion?!?!?!?! [527]phil Programming 9 15-07-2005 20:10
Servo Compact Design Problems!!! Dominator_Legen Electrical 22 07-04-2005 18:15
Servo Help Dominator_Legen Motors 3 11-03-2005 19:50


All times are GMT -5. The time now is 13:10.

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