|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Motor that acts like a servo
How exactly would I make a motor act like a servo in EasyC? I know I would need to use some kind of sensor like a potentiometer or an encoder. Also does anyone know how to wire a potentiometer to a PWM?
-Dustin |
|
#2
|
|||||
|
|||||
|
Re: Motor that acts like a servo
You would need to use a potentiometer or encoder depending on your use.
A potentiometer can only go so many turns and are good for arms and such. An encoder is for continuous rotation, like drives. Hopefully someone else can help you with the wiring. |
|
#3
|
||||
|
||||
|
Re: Motor that acts like a servo
Plug a Motor into a PWM Port.
Connect a Potentiometer between 10-100k to a Analog Input. Wiring doesn't matter as long as the wiper goes to the White Wire (signal) and you connect power and ground to the other remaining pins. Then you have to link them mechanically and write in easyC a P.I.D. loop to control the whole deal. Check the White papers in CD Media under P.I.D. . |
|
#4
|
||||
|
||||
|
Re: Motor that acts like a servo
yeah we did the same thing and it works SO WELL. it's really awesome.
i remember talking about the programming with the team mentor and you have to use a potentiometer to input the values that you want the motor to move to. i'm pretty sure you can do it with any motor. we did it with a globe first and then a window. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FVC]: Servo motor fix | norfsprang | FIRST Tech Challenge | 3 | 23-02-2007 23:10 |
| Motor to Servo | itzrobz | Programming | 8 | 02-02-2006 16:11 |
| Defective clutch on motor/servo? | jeffmorris | FIRST Tech Challenge | 3 | 04-10-2005 14:49 |
| looking for motor or servo tips | Dbell5555 | Technical Discussion | 7 | 22-05-2005 18:28 |
| Team 701 Balancing Acts | Doug G | Robot Showcase | 2 | 19-02-2005 14:14 |