|
Page 1 of 1
|
[ 6 posts ] |
|
Setting start position with tetrix and NXT motors
| Author |
Message |
|
RTO
Rookie
Joined: Wed Dec 07, 2011 8:46 am Posts: 11
|
 Setting start position with tetrix and NXT motors
Is there a way to set a specific initial or start position with tetrix and nxt motors. We are working on an arm and wish to set the arm at a specific position - can this be accomplished with the tetrix encoders. I know we have servos that can do this, but we have tetrix and nxt motors attached currently.
Thanks
|
| Sat Jan 28, 2012 11:07 am |
|
 |
|
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1023
|
 Re: Setting start position with tetrix and NXT motors
Yes, a tetrix motor with encoder can be used in place of a servo. You just need to do PID control on it so it will hold at the target position. NXT motors have built-in encoders so they can do it as well.
|
| Tue Jan 31, 2012 6:48 am |
|
 |
|
RTO
Rookie
Joined: Wed Dec 07, 2011 8:46 am Posts: 11
|
 Re: Setting start position with tetrix and NXT motors
Thank you. It is still unclear to me how to program this. Zeroing the encoder for a wheel is not too much of a problem, but I am not sure how to tell the robot where zero is for an arm. Seems like I might need some type sensor that would help let the robot know where it is so that we can tell it where to go - does this make sense?
|
| Tue Jan 31, 2012 4:59 pm |
|
 |
|
magicode
Moderator
Joined: Tue Sep 14, 2010 9:19 pm Posts: 495
|
 Re: Setting start position with tetrix and NXT motors
If you have a default position that an arm starts in every time, then that can be your starting point. Otherwise, you could use a potentiometer.
_________________ sudo rm -rf /
|
| Tue Jan 31, 2012 5:41 pm |
|
 |
|
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1023
|
 Re: Setting start position with tetrix and NXT motors
Yes, if the starting position of the arm could be different every time when you start, you either need to use a potentiometer so you will know the absolute position or if you are using an encoder, you need to have a "calibration limit switch", basically a touch sensor that is placed at the "start position". When started, you program the arm to swing toward the direction of the "starting position". When the touch sensor is active, you zero the encoder. That's called zero calibration.
|
| Tue Jan 31, 2012 8:30 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2864 Location: Rotterdam, The Netherlands
|
 Re: Setting start position with tetrix and NXT motors
You could also use this: http://www.hitechnic.com/cgi-bin/commer ... ey=NAA1030 It can measure absolute position which persists through power cycles. - Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Wed Feb 01, 2012 2:57 am |
|
|
|
Page 1 of 1
|
[ 6 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 3 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|