Go to Post All we know is the "Oh my God, No data/Radio...reset...reset" dance before our matches! - tenfour [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 03-02-2005, 17:28
AK1 AK1 is offline
Registered User
#0820 (DeltaTech)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Toronto, Canada
Posts: 1
AK1 is an unknown quantity at this point
Killough platforms (A.K.A Holonomic/kiwi drive)

My team, 820, has built a killough platform. We're having serious issues with programming the robot. The robot doesn't seem to go straight and it rotates while straffing. In addition the wheels turn faster when the motors are going in a clockwise direction than when they spin counter clockwise. We think it might be due to the pulsing but we're not sure, we also strongly suspect that its a problem with programming.

Long story short we're looking for anyone out there who has either programmed one of these before or has some ideas on how to fix the problem please reply to the post or if ur feeling very generous you could email me a copy of the code at Tcru00@hotmail.com

Your help is greatly appreciated.
__________________
Arthur
DeltaTech

Team 820
  #2   Spotlight this post!  
Unread 03-02-2005, 17:40
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Killough platforms (A.K.A Holonomic/kiwi drive)

I've never programmed one for the RC, but I have for LEGO.

The first thing I'd say is that the motors that come with the kit have a prefered direction, meaning they spin better one way than another, which is why you get the clockwise vs. counter-clockwise thing. (All motors have this problem, but for really good ones, the difference is neglible.) This is also the reason you don't go straight, even though the same value is being sent to the motors which are currently driving you.

There are two ways to correct this. The first involves some semi-complicated programming because you create a PID loop. The idea of this loop is that it will monitor your wheel rotations (using encoders or some such thing) and if anything disturbs the speeds from the values you request, such as a bump or one motor running slower than the other, it will adjust the outputs automatically.

The other way is to use encoders (or some other method) to measure the difference in the motor speeds and hard code that into your program. Obviously, it isn't as elegant and is harder to change when you motors get more broken in (or broken ), but it's fast and easy... Actually, with a Killough, it may be just as difficult to do, because you must store the differences between all (3? I'm assuming a normal setup) the motors and choose the right one to use for which ones you are currently running.

Hope that helps!

P.S. What motion exactly are you refering to when you say straffing? One motor on full? Two? Two at differing speeds? Maybe I'm just not thinking right now...
__________________


Last edited by Ryan M. : 03-02-2005 at 17:43.
  #3   Spotlight this post!  
Unread 03-02-2005, 17:54
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Killough platforms (A.K.A Holonomic/kiwi drive)

I don't know much about kiwi drive, other than watching the original video and the 229 parody, but maybe I can still help you.

The vast majority of DC motors are designed to run more efficiently in one direction. This is a function of how the motor is wound. This difference was very drastic in the drill motors last year; I haven't found it to be as severe in the CIMs this year. If I had to fix this in software, I would take a CIM motor, and hook it up to a Victor. Pick a few different clockwise PWM values, and measure the speed with a tachometer (you can make your own with an encoder). Then output the equivalent values to spin the motor counterclockwise. Keep note of the speeds, and then do a calculation to slow the motor when it's running clockwise. For example, if the motor runs twice as fast clockwise as counterclockwise (a gross exaggeration):
Code:
if(pwm15>127)
   pwm15=(pwm15-127)*.5+127;
Hope this helps.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #4   Spotlight this post!  
Unread 04-02-2005, 15:13
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,576
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Killough platforms (A.K.A Holonomic/kiwi drive)

I beleive it took 1083 several regionals before they were able to get thier robot driving straight last year.
  #5   Spotlight this post!  
Unread 04-02-2005, 15:42
Adam Krajewski's Avatar
Adam Krajewski Adam Krajewski is offline
Registered User
AKA: Jewski
None #0857 (Superior Roboworks) / Team #0068 (Truck Town Thunder)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Da U.P., Eh
Posts: 83
Adam Krajewski is on a distinguished road
Re: Killough platforms (A.K.A Holonomic/kiwi drive)

The way we controlled our Killough platform back in 2002 was a completely analog solution. We used three joysticks mounted in the same orientation as the drive wheels (120 degrees apart), mounted together using ball joints like so:

This was back in the PBASIC days. It may be low-tech, but it certainly worked: http://stuweb.ee.mtu.edu/~alkrajew/FIRST/kiwi.mpg
__________________
"My favorite programming language is solder."
- R A Pease
  #6   Spotlight this post!  
Unread 04-02-2005, 16:04
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,113
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: Killough platforms (A.K.A Holonomic/kiwi drive)

Quote:
Originally Posted by Adam Krajewski
Wow. Just...wow. $@#$@#$@#$@#, that's awesome. The forums don't like the words going through my head as I see this, but I can't find better ones to replace them.
  #7   Spotlight this post!  
Unread 04-02-2005, 18:20
MattB703 MattB703 is offline
Registered User
AKA: Matt
None #0703 (Team Pheonix)
Team Role: Engineer
 
Join Date: Oct 2001
Rookie Year: 1998
Location: Saginaw, MI
Posts: 233
MattB703 has much to be proud ofMattB703 has much to be proud ofMattB703 has much to be proud ofMattB703 has much to be proud ofMattB703 has much to be proud ofMattB703 has much to be proud ofMattB703 has much to be proud ofMattB703 has much to be proud ofMattB703 has much to be proud ofMattB703 has much to be proud of
Re: Killough platforms (A.K.A Holonomic/kiwi drive)

In my dream of a 4 wheeled Killough drive bot I was going to turn the handle of a joystick to 45° from the base of the joystick. If you push the joystick strait up you get full + X and full + Y. You can map the drive motors directly to the joystick values in such a way that the bot moves in the direction that the joystick is pressed. You would also need a rotary pot to control the rotation of the bot.
  #8   Spotlight this post!  
Unread 04-02-2005, 19:52
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Killough platforms (A.K.A Holonomic/kiwi drive)

Quote:
Originally Posted by MattB703
In my dream of a 4 wheeled Killough drive bot I was going to turn the handle of a joystick to 45° from the base of the joystick. If you push the joystick strait up you get full + X and full + Y. You can map the drive motors directly to the joystick values in such a way that the bot moves in the direction that the joystick is pressed.
I did this last year. It worked, but I couldn't get used to the way the joystick felt in my hand. I had a hard time moving the stick along the diagonal when going straight forward and reverse.
Quote:
You would also need a rotary pot to control the rotation of the bot.
I used the joystick thumb wheel for this (NOT the trim wheel!). Again, it worked, but I didn't like it because it didn't self center when released.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #9   Spotlight this post!  
Unread 04-02-2005, 21:36
ajlapp ajlapp is offline
Registered User
AKA: Anthony Lapp
None #0118 (Team RUSH and Robonauts)
 
Join Date: Sep 2001
Rookie Year: 1996
Location: Ortonville, MI
Posts: 648
ajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond repute
Re: Killough platforms (A.K.A Holonomic/kiwi drive)

as adam already posted the analog joystick solution is very easy to construct and works flawlessly without any programming....i repeat, no programming!

my suggestion is to build one and then work on a slick programming solution if you still feel it's necessary.
__________________
Anthony Lapp
FIRST Engineering Mentor
Owner/Operator 221 Robotic Systems
221 Robotics Systems - Quality Hardware, Made in the USA
RobotOpen
anthony@221robotics.com
Twitter us: @221RobotSystems
Team 1 --> 94 --> 68 --> 221 --> 857 --> 27 --> 118
Design Engineer/Fabricator and 17 year vet
Team Rush (FRC27) and Robonauts (FRC118)
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
Globe gear box Pat Roche Motors 9 25-05-2004 22:50
Pressure on Drive Team David66 General Forum 52 30-03-2004 14:31
What is wrong with this code???? It won't Compile and I don't know why? Please Help CrashZero Programming 23 26-03-2004 09:44
what's your most important drive train advice? Ken Leung Technical Discussion 42 07-01-2003 09:58
"Motors and Drive train edition" of Fresh From the Forum Ken Leung CD Forum Support 6 29-01-2002 12:32


All times are GMT -5. The time now is 21:48.

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