Go to Post Just once I'd love to see a team come out to the field and say " Team xxxx rejects our reality and accepts yours!" - Koko Ed [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 19-02-2011, 07:01
Arthur But' Arthur But' is offline
Registered User
FRC #2213
 
Join Date: Nov 2010
Location: Israel
Posts: 17
Arthur But' is an unknown quantity at this point
calculation for the potentiometer

My team uses the potentiometer for the arm movement (up and down) according the joystick axis(y) position.
i looked into some guides explaining the use of potentiometer with the joystick axis, but the were a lot of calculations involved between the axis and the PID vi, which i didn't really understood.

Can someone explain to me those calculations? for an example: what calculations do i need to do for max 60 deg up and min 40 deg down?

Last edited by Arthur But' : 19-02-2011 at 08:41.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2011, 05:59
Arthur But' Arthur But' is offline
Registered User
FRC #2213
 
Join Date: Nov 2010
Location: Israel
Posts: 17
Arthur But' is an unknown quantity at this point
Re: calculation for the potentiometer

.......?
Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2011, 08:30
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: calculation for the potentiometer

I'm not sure what you're asking.

It's probably easier just to put the mechanism at the angles you care about and measure what the sensor value actually is, rather than try to compute what it ought to be.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2011, 13:08
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Re: calculation for the potentiometer

The main problem is scaling the signals. The potentiometer will be something like 0 - 10v, the joystick is in -1 to +1, and you are thinking in terms of angle of the arm. Take a look at the following link:

http://team358.org/files/programming...2009-/LabVIEW/

Towards the bottom is a good Labview example of slaving a Joystick to a potentiometer signal using PID. I think this is similar to what you want to do. Take a look and reply back with more questions.
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote
  #5   Spotlight this post!  
Unread 20-02-2011, 17:01
Arthur But' Arthur But' is offline
Registered User
FRC #2213
 
Join Date: Nov 2010
Location: Israel
Posts: 17
Arthur But' is an unknown quantity at this point
Re: calculation for the potentiometer

Quote:
Originally Posted by MotorHead View Post
The main problem is scaling the signals. The potentiometer will be something like 0 - 10v, the joystick is in -1 to +1, and you are thinking in terms of angle of the arm. Take a look at the following link:

http://team358.org/files/programming...2009-/LabVIEW/

Towards the bottom is a good Labview example of slaving a Joystick to a potentiometer signal using PID. I think this is similar to what you want to do. Take a look and reply back with more questions.
It's a very nice web-page you have there.....
Anyway, the example is very similar to what i was asking.
For example: How do you calculate it so, 1.17 is 90 deg max down and 3.9 is 90 max deg up? and how can i change it to be for example, 40 deg max down and 60 deg max up?
Reply With Quote
  #6   Spotlight this post!  
Unread 20-02-2011, 17:22
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: calculation for the potentiometer

Quote:
Originally Posted by Arthur But' View Post
It's a very nice web-page you have there.....
Anyway, the example is very similar to what i was asking.
For example: How do you calculate it so, 1.17 is 90 deg max down and 3.9 is 90 max deg up? and how can i change it to be for example, 40 deg max down and 60 deg max up?
Those are measured values. You drive your device to where you want the limit to be with a probe or indicator on the Analog Voltage and see what it reads.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
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 08:12.

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