Go to Post its not that I cant spell, I'm just being international. . . . I like it - Stuart [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 16-01-2009, 08:38
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Trim for motors

A pure software solution would be to use a PID loop and a potentiometer.

The WindRiver code includes some very robust PID classes (see class PIDController in PIDController.h/cpp). I imagine the labview setup includes them too, but we're not a labview team so I don't know for sure. You just need to put a potentiometer on the arm joint, then use a PID loop to hit your desired arm positions. The nature of a PID loop will ensure that appropriate amounts of power are used to maintain your arm's position. Properly tuned, it will be faster, more accurate, more reliable, and have less oscillations than a human controlling.
  #2   Spotlight this post!  
Unread 16-01-2009, 09:40
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Trim for motors

Not related to code, but do NOT do this to a FP motor or the small RS545 motors (or whatever they're named). They do not take stall current very well at all, no matter how much power is being fed to them. In 2007, we managed to burn out 2 motors on our arm.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #3   Spotlight this post!  
Unread 16-01-2009, 12:20
qwv123 qwv123 is offline
Registered User
FRC #1318
 
Join Date: Dec 2006
Location: Issaquah, WA
Posts: 3
qwv123 is an unknown quantity at this point
Re: Trim for motors

Quote:
Originally Posted by Bongle View Post
A pure software solution would be to use a PID loop and a potentiometer.

The WindRiver code includes some very robust PID classes (see class PIDController in PIDController.h/cpp). I imagine the labview setup includes them too, but we're not a labview team so I don't know for sure. You just need to put a potentiometer on the arm joint, then use a PID loop to hit your desired arm positions. The nature of a PID loop will ensure that appropriate amounts of power are used to maintain your arm's position. Properly tuned, it will be faster, more accurate, more reliable, and have less oscillations than a human controlling.
Yes, PID works very well for this, unless you are lifting so much weight that the motors struggle to maintain their positions. If you are using LabVIEW, it does have several PID VIs, as well as some sort of autotuning PID wizard. My team has not used it, but it seems quite simple to implement.
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
Trim setting program Grogs Programming 1 10-02-2008 19:12
Setting Trim on Old 3D joystick jlewellen Programming 2 19-02-2006 21:03
Delphi set to trim 150 tech jobs Neal Probert Chit-Chat 4 03-03-2004 11:01
Fisher Price Motors for Drill Motors archiver 2001 0 24-06-2002 00:22
F.P. Motors & gearbox for $12.50 Window Motors $19.50 archiver 2001 1 23-06-2002 23:05


All times are GMT -5. The time now is 02:25.

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