Go to Post FIRST is like pizza--you and I might prefer different toppings, but there's no wrong way to do it. - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2010, 09:19
grosh grosh is offline
Registered User
FRC #2147
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 100
grosh is an unknown quantity at this point
Motor to work like a servo...what's the best method?

When we push a joystick button we would like a motor to spin forward 90deg, reverse direction, and stop when it returns to home.

Currently we have limit switches to reverse the direction of the motor and indicated when it is back to home position, but with the code we wrote it only operates when the button is pushed. If we take our finger of the button the motor stops and does not return home. Should we set up a State Machine?

Can we use the limit switches on the Jaguars to make this happen?

Where do we get good basic information on CAN? CAN looks interesting but we don't understand what the advantages and uses of CAN are.

Last edited by grosh : 31-01-2010 at 09:47.
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2010, 09:38
Doc Wu's Avatar
Doc Wu Doc Wu is offline
Registered User
AKA: Al Gritzmacher
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Lockport NY
Posts: 207
Doc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant future
Re: Motor to work like a servo...what's the best method?

Quote:
Originally Posted by grosh View Post
When we push a joystick button we would like a motor to spin forward 90deg, reverse direction, and stop when it returns to home.
That's the difference between a motor and a servo motor. A motor just rotates as long as power is applied. A Servo motor turns to a specific angle.

Quote:
Currently we have limit switches to reverse the direction of the motor and indicated when it is back to home poisition, but with the code we wrote only operates when the button is pushed. If we take our finger of the button the motor stops and does not return home. Should we set up a State Machine?
That would be a good way to do it. Ben Zimmer has a good tutorial on that at his FRCMastery site.

Quote:
Can we use the limit switches on the Jaguars to make this happen?
You could. I believe that is allowed if you are using CAN. It's not allowed in the rules for PWM driven motor controllers.

One thing about limit switches in general, a switch is not a positive stop. I've replaced hundreds - if not thousands - of limit switches in industry because they were destroyed when a machine overtravelled. A switch can only tell a controller that something is at a position. If the processor gets hung up in a loop, or the motor coasts, something needs to stop the mechanical motion besides the switch until the processor catches up.

For that reason, always have a mechanical stop and always put the switch out of the path of the motion!

Quote:
Where do we get good basic information on CAN? CAN looks interesting but we don't understand what the advantages and uses of CAN are.
There were a couple good presentations on CAN bus but since my team is not using it, I don't have the links. You'll probably be able to find them with the search, though.
__________________
-= Mentor Lockport Warlocks -=- Team 1507 =-
Amateur Radio Callsign: AE2T

2016 Robot Inspector - Fingerlakes, Pittsburgh
2015 Robot Inspector - Pittsburgh, Champs. Judge Observer - Champs
2014 Robot Inspector - Tech Valley, Fingerlakes, Buckeye, Championship
2013 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Robot Inspector - Fingerlakes, Buckeye, Championship - Website Evaluator - Fingerlakes, Buckeye, Championship
2011 Robot Inspector - Fingerlakes 2011 Safety Advisor - Fingerlakes

Reply With Quote
Reply


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
Best way for "servo" from motor & potentiometer? NinJA999 Java 4 18-01-2010 16:14
GOING TO THE ATL! Wait..... what's it like? asmo0901 General Forum 19 07-04-2009 16:23
Motor that acts like a servo thefro526 Programming 3 25-02-2007 18:02
What's your work-space look like =) [56K User warning?] Nhiem Chit-Chat 9 30-03-2005 01:26
What's with the New Motor Specs for the Atwood Mobile (Chiaphua) Motor. Robb Gerber Motors 2 23-01-2002 08:58


All times are GMT -5. The time now is 11:50.

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