|
Re: That's what I was looking for
Posted by Tom S. at 04/26/2001 8:53 PM EST
Student on team #177, The Bobcats, from South Windsor High School and International Fuel Cells.
In Reply to: That's what I was looking for
Posted by ChrisH on 04/25/2001 1:59 PM EST:
Chris,
Couldn't you just do this by adding a potentiometer to the arm's pivot point, and using software to get it to go to a set position? we did this successfully in florida, i wrote code that on every loop it checked to see what position the arm was at through the potentiometer, and if it was too high or too low it set the motor speeds accordingly...
This may or may not be what you want to do, i'm not really sure what you mean by a servo-design, I put the code that we use to do this on our bot at the bottom of this post... the code looks kind of wierd beucase my code lost its formatting when i posted it. good luck
Tom Schindler
Team 177
if p3_sw_trig = 1 and p3_sw_trig = 1 then armpos
goto noarmpos
armpos:
'This will move the arm until sensor1
'reads 134.
if sensor1 > 134 then armdown
goto skiparmdown
armdown:
if sensor1 128 then armupslow
p4_y = 67
goto skiparmup
armupslow:
p4_y = 114
skiparmup:
noarmpos:
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
|