Go to Post I would like the game to be called Sanity. Just for irony's sake. - Keri Lynne [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2007, 11:26
SoD SoD is offline
Registered User
FRC #2230
 
Join Date: Jan 2007
Location: Israel
Posts: 15
SoD is an unknown quantity at this point
How to calculate arm angles?

Hello,

I want to know for how long should the motor work in order for the arm to move one degree.

Last edited by SoD : 31-01-2007 at 11:42.
  #2   Spotlight this post!  
Unread 31-01-2007, 11:48
EricS-Team180's Avatar
EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
Re: How to calculate arm angles?

You could use a protractor to measure the angle change from your initial starting position to where you want it. Then if you have a potentiometer or encoder on the arm, you could also measure the change in the potentiometer reading or the number of encoder "clicks" That would map angle change to a sensor feedback

Eric
__________________

Don't PANIC!
S. P. A. M.
  #3   Spotlight this post!  
Unread 31-01-2007, 11:55
SoD SoD is offline
Registered User
FRC #2230
 
Join Date: Jan 2007
Location: Israel
Posts: 15
SoD is an unknown quantity at this point
Re: How to calculate arm angles?

We have a GTS, but we want to check this way - how can i check the time in which the arm move for one degree using the program running time
  #4   Spotlight this post!  
Unread 31-01-2007, 12:43
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: How to calculate arm angles?

Quote:
Originally Posted by SoD View Post
We have a GTS, but we want to check this way - how can i check the time in which the arm move for one degree using the program running time
Due to varying motor speed/power at the different battery levels, different loop execution times because of calculations and various little things like that you can't do it the way you wish.
__________________
http://www.mikesorrenti.com/
  #5   Spotlight this post!  
Unread 31-01-2007, 12:43
Greg Needel's Avatar Unsung FIRST Hero
Greg Needel Greg Needel is offline
REVving up for a new season
FRC #2848 (All-sparks)
Team Role: Engineer
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Dallas, TX
Posts: 3,104
Greg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond repute
Re: How to calculate arm angles?

Depending on the gear that the GTS is reading you should know the resolution of the movement ie. How many teeth per 1 rev. Knowing that data if you want the time for 1 degree figure out how many pulses form the sensor you get over 1 degree then use a clock to figure out the time it takes for "x" amount of pulses.
__________________
Greg Needel│www.robogreg.com
Co-founder REV Robotics LLC www.REVrobotics.com
2014 FRC World Champions with 254, 469, & 74
  #6   Spotlight this post!  
Unread 31-01-2007, 14:17
dtengineering's Avatar
dtengineering dtengineering is offline
Teaching Teachers to Teach Tech
AKA: Jason Brett
no team (British Columbia FRC teams)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Vancouver, BC
Posts: 1,827
dtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond repute
Re: How to calculate arm angles?

A standard variable resistor, also known as a "pot" or potentiometer can be attached to the axle upon which your arm rotates.

The output of the pot can then be hooked up to an analog input on the RC to show... well... not exactly what ANGLE your arm is at, but certainly how far your resistor has been turned, which is essentially the same thing.

While there are custom pots built specifically for this purpose that offer greater precision and durability, we used a standard, everyday one that you can find at any electronics store on our 2005 robot and it worked (and continues to work) like a charm.

Just make sure that you get a "linear taper" instead of an "audio" or "logarithmic" taper. That way when the pot is turned all the way in one direction your analog input will read "0" (or pretty close to it), halfway around it will read 512, and at the other end of the rotation it will read 1024.

Then you can just tell your motors to turn until the analog input from the pot reaches a certain value that corresponds to the angle you are seeking.

In fact, with a bit of programming you can essentially turn your arm into one big servo motor.

Jason
Closed Thread


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
Pressure Angles Smrtman5 Technical Discussion 6 07-11-2005 20:53
How to calculate planetary gear ratios? sanddrag Technical Discussion 2 27-02-2005 11:55
How long is your arm? Alex Cormier General Forum 27 19-02-2005 23:34
How do you Calculate Belt Length? Gabriel Technical Discussion 7 08-11-2004 14:54
How to find the moment of an arm Matthew_H Technical Discussion 7 26-10-2004 12:20


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

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