Go to Post FIRST games are complex and rely on design and intellectual capability much more than the average sport. - Chris is me [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 25-02-2007, 16:21
thefro526's Avatar
thefro526 thefro526 is offline
Mentor for Hire.
AKA: Dustin Benedict
no team (EWCP, MAR, FRC 708)
Team Role: Mentor
 
Join Date: Aug 2006
Rookie Year: 2005
Location: New Jersey
Posts: 2,599
thefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond repute
Send a message via AIM to thefro526 Send a message via MSN to thefro526
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
__________________
-Dustin Benedict
2005-2012 - Student & Mentor FRC 816
2012-2014 - Technical Mentor, 2014 Drive Coach FRC 341
Current - Mentor FRC 2729, FRC 708
  #2   Spotlight this post!  
Unread 25-02-2007, 16:31
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
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.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #3   Spotlight this post!  
Unread 25-02-2007, 17:44
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
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. .
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #4   Spotlight this post!  
Unread 25-02-2007, 18:02
NeedMoreEngines's Avatar
NeedMoreEngines NeedMoreEngines is offline
Registered User
AKA: Mike
FRC #1279 (Cold Fusion)
Team Role: Driver
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Somervile, New Jersey
Posts: 124
NeedMoreEngines has a spectacular aura aboutNeedMoreEngines has a spectacular aura about
Send a message via AIM to NeedMoreEngines
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.
__________________
"There is only one solution to this problem- We need more engines."

The good thing about the YMCA is if you can spell, you can dance.

Proud Eagle Scout
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
[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


All times are GMT -5. The time now is 04:37.

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