|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
|||||
|
|||||
|
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.
|
|
#3
|
|||||
|
|||||
|
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
|
|||
|
|||
|
Re: Motor to Servo
What I meant was making a motor act like a servo.
Quote:
Thanks for the help ![]() |
|
#5
|
|||||
|
|||||
|
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
|
|||
|
|||
|
Re: Motor to Servo
Quote:
|
|
#7
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
|
#9
|
|||
|
|||
|
Re: Motor to Servo
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |