Go to Post It's sooo stressful! I brought my suitcase to school today, and I still don't know if we're going! - elfenari [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 16-01-2012, 00:01
zaphodp.jensen zaphodp.jensen is offline
Alumni and Mentor of 3130
AKA: Pierce Jensen
FRC #3130 (East Ridge Robotics Ominous Raptors (E.R.R.O.R.'s))
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: Minnesota
Posts: 76
zaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the rough
Re: Automatic limit switch

An encoder would work best for this. To detect a bind, you would have the encoder, on a turn of the encoder, start a timer. If that timer reaches a certain value before the encoder triggers again, you would stop the motor. If it triggers, you would restart the timer again at zero.

If you wanted to stop after a number of revolutions, you would use a variable that would increment or decrement after a certain number of ticks, and if that number got to be higher or lower than a threshold, you would stop the motor in that direction, but allow it to turn the other way.

Sidenote about limit switches: Even easier, you could use the built in limit switch functions on the Jaguars to stop the motor. This wouldn't work for your application, but it is great for just about everything else! You just have to use a normally closed switch, and plug it into the limit switch ports (Removing the existing jumpers)! Simple, easy to use, save a DIO, and it relieves the cRIO of having to deal with the code!
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


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

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