Go to Post If all you are is a nail, every hammer looks like a problem. - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 18-02-2007, 20:54
Bochek's Avatar
Bochek Bochek is offline
Registered User
AKA: Adam Bochek
FRC #2200 (MMRambotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Burlington, Ontario, Canada
Posts: 577
Bochek has much to be proud ofBochek has much to be proud ofBochek has much to be proud ofBochek has much to be proud ofBochek has much to be proud ofBochek has much to be proud ofBochek has much to be proud ofBochek has much to be proud ofBochek has much to be proud ofBochek has much to be proud of
Problem with only 2 days left

Ok here is the issue, we have a arm that rotates, there is a potentiometer attached to one end and the arm is actuated via 2 fisher price motors and their 125 to 1 gear boxes (the white plastic ones)

i am attempting to get the arm to "servo" so that it stays upright most of the time, (a little bit of play is okay)

im running into a problem where the arm is shaking violently back and forth

i have placed a dead band in the code to try and stop this but the arms momentum Carry's it right past the dead band.

the motors are running off victors and i have them set about as low as they go.

any ideas is greatly appreciated

- Bochek
__________________
-----------------------------------------------
Adam Bochek - FRC 2200
http://www.mmrambotics.com
http://www.watchfirstnow.com
  #2   Spotlight this post!  
Unread 18-02-2007, 23:12
woody's Avatar
woody woody is offline
Too much metal for one hand! \m/
FRC #0033 (Killer Bees)
Team Role: Alumni
 
Join Date: Jul 2006
Rookie Year: 2005
Location: Michigan
Posts: 90
woody is a splendid one to beholdwoody is a splendid one to beholdwoody is a splendid one to beholdwoody is a splendid one to beholdwoody is a splendid one to beholdwoody is a splendid one to beholdwoody is a splendid one to behold
Re: Problem with only 2 days left

You may want to look into PID control:
http://www.chiefdelphi.com/forums/sh...light=pid+code
http://www.chiefdelphi.com/media/papers/1823
Also, just out of curiosity, are your victors running in "Brake" mode? That may help alleviate your problem by actually trying to stop the motors when they reach the right position instead of just cutting the power and letting them coast.
Good luck
__________________
"The greatest of all mistakes is to do nothing because you can only do a little; do what you can." - Sir Sidney Smith
  #3   Spotlight this post!  
Unread 18-02-2007, 23:40
ace123's Avatar
ace123 ace123 is offline
Registered User
AKA: Patrick Horn
FRC #0008 (Paly Robotics - http://robotics.paly.net/)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Palo Alto, CA
Posts: 50
ace123 has a spectacular aura aboutace123 has a spectacular aura about
Send a message via AIM to ace123
Re: Problem with only 2 days left

Are you using a printf to print out the outputs and variables every step of the way?

Most likely your code has some output value that's going too high and getting maxed out. You might be able to divide some things by a number (in PID, you want to reduce the proportional and the integral components)
__________________
-Patrick Horn, Paly Robotics

Check out the space simulator called Vega Strike, modelled after the space simulator games Elite and Wing Commander. It's Open Source too!
If you have ever played Wing Commander, or especially Privateer, and had a feeling of nostalga derived from the you will enjoy these two Vega Strike mods: Privateer Gemini Gold and Privateer Remake!
I'm working on adding multiplayer support this year...
  #4   Spotlight this post!  
Unread 19-02-2007, 00:05
Unsung FIRST Hero Woodie Flowers Award
Chris Fultz Chris Fultz is offline
My Other Car is a 500 HP Turbine
FRC #0234 (Cyber Blue)
Team Role: Engineer
 
Join Date: Jan 2002
Rookie Year: 1942
Location: Indianapolis, IN
Posts: 2,837
Chris Fultz has a reputation beyond reputeChris Fultz has a reputation beyond reputeChris Fultz has a reputation beyond reputeChris Fultz has a reputation beyond reputeChris Fultz has a reputation beyond reputeChris Fultz has a reputation beyond reputeChris Fultz has a reputation beyond reputeChris Fultz has a reputation beyond reputeChris Fultz has a reputation beyond reputeChris Fultz has a reputation beyond reputeChris Fultz has a reputation beyond repute
Re: Problem with only 2 days left

you might also try setting one limit in the up direction and another in the down position - that can keep the control from hunting for the perfect spot.
__________________
Chris Fultz
Cyber Blue - Team 234
2016 IRI Planning Committee
2016 IndyRAGE Planning Committee
2010 - Woodie Flowers Award - Championship
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
10 Days Left NERDS Andy Grady General Forum 13 20-07-2005 14:46
Anyone Know What This Means ? Help, only a few days left.. gemccnp Programming 4 19-02-2005 01:28
problem with joystick buttons (top left one) Richomundo Programming 5 15-02-2004 17:16
Only 58 Regional spots left... Aidan F. Browne Regional Competitions 17 14-11-2003 23:47
Seniors... how many days left? Jeff Waegelin Chit-Chat 16 02-05-2003 22:21


All times are GMT -5. The time now is 05:10.

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