Go to Post If mentors don't respect the students' desire to learn and take an active role in the construction, they're missing the point of FIRST. If students refuse to accept the knowledge and experience of the mentors, that's not independence - it's arrogance. - DB213parent [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 17-02-2007, 02:17
brennerator brennerator is offline
Registered User
#1560
 
Join Date: Jan 2005
Location: Silicon Valley
Posts: 75
brennerator is an unknown quantity at this point
Holding a position in our arm

Heres the deal:

We have a revolute double jointed arm; say we wnat to hold the lower portion of the arm in one place; how would we do so?

We have a potentiometer mesaureing the position values of the arm. Lets say we want the arm at a target val of 180. The arm is plugged into pwm02. We made some simple if/then statements...

Please ignore syntax.

sensor = Get_Analog_Value(rc_ana_in02);
targetval = 180;
if (sensor < targetval)
{
pwm02 = (127 + 53);
else
{
pwm02 = (127 - 53);
}

This makes the arm oscillate at the target value, and it oscillates way too much. How can we essentially LOCK the arm through programming?
 


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
Programming our Arm brennerator Programming 29 15-03-2007 01:17
pic: Team 498 Robot Arm Stowed Position Cactus_Robotics Robot Showcase 1 10-02-2007 21:42
PID How to hold an arm in a fixed position without a locking gear box Ian_Xodus General Forum 29 28-01-2007 08:50
Pneumatics holding their position sanddrag Pneumatics 22 15-01-2004 16:36


All times are GMT -5. The time now is 13:20.

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