Go to Post The GDC needs to write the rules once and let the game be what the game is going to be. There's little that's fun about being told exactly how to play with your toys. - Madison [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 24-09-2003, 10:41
Tytus Gerrish's Avatar
Tytus Gerrish Tytus Gerrish is offline
IGAB, ADHD, and Dislexic
AKA: Ty
FRC #0179 (SwampThing)
Team Role: Tactician
 
Join Date: Feb 2003
Rookie Year: 2001
Location: West Palm Beach, Florida
Posts: 2,017
Tytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond repute
Crab Programing

How is a crab robot programed,

i mean i hear things (probably rumors) like Krunch has 4 steering chains and they all point the wheels in the direction the joystick is pointed

there is the 1 link system where all the fenders are linked together and you stear kinda like a car with the joystick x-axis binded to the power output of the steer motor But, how can you tell where the wheels are pointed when there inside the bot?

I heard krunch used there Mini_krunch Edu-robot to figure out their programing and i think i saw the kids just pressing the stick in the direction they wanted it to go, How did they do that? or was i just imagining it?

Im designing a crab bot by my lonesome and want a program system where i can just point and it goes instead of trying to see where the wheels are pointed, I need to know as much as i can so i can make a nice impressive presentation to my team when its time to chose a design

Any Information Would Be Very helpful
  #2   Spotlight this post!  
Unread 24-09-2003, 10:46
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
The way Wildstang accomplished this, was to link a potentiometer rigged up as a voltage divider to one of the analog imputs. Then you can use a simple proportional control to figure out how to steer.
__________________
1139 Alumni
  #3   Spotlight this post!  
Unread 24-09-2003, 11:35
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
Using a potentiometer attached to a plastic sprocket, we could determine the orientation of the modules on our swerve system to within 1/255 of a rotation (except around the couple degrees where the potentiometer recycled). There's little to no need for visual cues of module orientation if two things: a) you can control direction electronically, and b) your driver is good enough.

If you want a feedback system like this, I suggest you first find someone familiar with PBASIC enough to attempt writing the code for you, if you don't think you're up to it (I seem to recall a couple threads in which you asked for programming help).

If you need any more intensive help, feel free to ask. I'm willing to explain most of our system (only "most" because I don't know the software algorithm used to actually steer). Mechanical and electrical aspects of it, though, I am very familiar with.

Oh, here's a picture of one side of our swerve. You can see the black plastic sprocket on the right, next to the drive module sprocket.
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos

Last edited by FotoPlasma : 24-09-2003 at 11:38.
  #4   Spotlight this post!  
Unread 24-09-2003, 12:32
WakeZero WakeZero is offline
FIRST-a-holic Strategist
#1011 (CRUSH)
 
Join Date: Feb 2002
Location: Tucson, AZ
Posts: 316
WakeZero will become famous soon enough
Send a message via AIM to WakeZero Send a message via Yahoo to WakeZero
Honestly there are so many different types of swerve, and all of them require a different programming technique. For instance, are there motors on each individual wheel, or are they all controlled by one motor/gearbox?

edit: The later is MUCH easier, because you don't have to compensate for individual motor differences... that was the hardest part when I programmed our swerve in 2002
__________________
2004 Arizona Regional -- Semifinalist
2003 NAT Galileo Division -- Highest Seeded Rookie (20th)
2003 NAT Galileo Division -- 100% Autonomous Completion (7 for 7)
2003 Arizona Regional -- Rookie All-Star Award
2003 Arizona Regional -- Quarterfinalist

Alumni on Team 64, The Gila Monsters
College Mentor/Founder of Team 1011, CRUSH
  #5   Spotlight this post!  
Unread 24-09-2003, 16:07
Unsung FIRST Hero
miketwalker miketwalker is offline
Robot Lifeguard
FRC #1902 (Exploding Bacon)
 
Join Date: Dec 2001
Rookie Year: 2002
Location: Orlando, FL
Posts: 878
miketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond repute
Send a message via AIM to miketwalker
I think most of it comes down to the driver's capability. You can find out how comfortable he is, and you can have a 2nd joystick to power the steering motor, or you can use the x-axis... but if you do that, it can become a mess, cause naturally you angle sometimes when going forward, and if u angle it a bit, the wheels will keep turning... not good. I know Krunch had a flip switch they did on the joystick, in 1 mode the wheels would turn the same and it would maneuver left and right, but couldnt turn, the other would have it where when the front wheels turned left, the back would turn right, so the robot would spin and act like a normal bot, you could program this by using the inverse number (so instead of I.e. 255 [which would be too fast more than likely] it would inverse and use 0 if you used a math equation) and the wheels would turn opposite so u could turn. All depends in how the steering is setup, but I imagine it could be easy to code, then you can adjust numbers to make it not spin so fast, or spin faster, and then the driver just has to learn it and get a feel for it.
__________________
Chopsaw? Chopsaw.
  #6   Spotlight this post!  
Unread 24-09-2003, 19:41
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
o and as far as pushing the stick where you want to go:
you must take the XY position and convert it to a polar vector. You use the method i mentioned earlier to align the angle of the wheels with the direction f the vector. The magnitude of the vector is the power you apply to the wheels. If you need help i will write a more in-depth description.

If u need any code help, i can give you some pointers as well.
__________________
1139 Alumni
  #7   Spotlight this post!  
Unread 24-09-2003, 20:02
Tytus Gerrish's Avatar
Tytus Gerrish Tytus Gerrish is offline
IGAB, ADHD, and Dislexic
AKA: Ty
FRC #0179 (SwampThing)
Team Role: Tactician
 
Join Date: Feb 2003
Rookie Year: 2001
Location: West Palm Beach, Florida
Posts: 2,017
Tytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond repute
TytusG@Coolgoose.com

Yeppie! Send it to me IM ready Obi-one
  #8   Spotlight this post!  
Unread 25-09-2003, 19:38
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
I way overcomplicated the whole situation with my first post. If this is just a proof-of-concept/feasibility project, you don't need to get into the nitty gritty of making a fully functional program for it.

All you really need is to be able to define four basic things: 1) direction of wheel rotation (robot goes forward or backward), 2) magnitude of drive (how fast to go), 3) direction of module rotation (clockwise or counterclockwise), and 4) magnitude of module rotation. In PBASIC, you'd do this with two PWM outputs.

If you're using an EduBot, it'd be pretty simple for someone to hack up some code for you.
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
  #9   Spotlight this post!  
Unread 25-09-2003, 19:42
Tytus Gerrish's Avatar
Tytus Gerrish Tytus Gerrish is offline
IGAB, ADHD, and Dislexic
AKA: Ty
FRC #0179 (SwampThing)
Team Role: Tactician
 
Join Date: Feb 2003
Rookie Year: 2001
Location: West Palm Beach, Florida
Posts: 2,017
Tytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond repute
can i see an example in PBASIC please?
  #10   Spotlight this post!  
Unread 25-09-2003, 20:09
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
Quote:
Originally posted by Tytus Gerrish
can i see an example in PBASIC please?
Well, the problem with that is that hardware and software are interdependant. I (or any fairly competent team programmer) could write you a program that takes the y-axis of the joystick on port 1 and maps it to the output(s) controlling the drive motor(s), and then takes the x-axis of the same joystick, and maps it to the output(s) controlling the rotational motor(s).

If you want a program ready to be slapped into an EduBot, I suggest you get in contact with 179's programmer(s), and get them to do this as a side project.

Fundamentally, though, here's how you would define the two variables which would be used to determine the four things in my previous post:
Code:
PWM1 = p1_y
PWM2 = p1_x
The default EduBot code uses some funky conventions concerning variable names and whatnot. They use the variables drive_L and drive_R, instead of PWM#.

But anyway, back to the topic at hand. Because of the actual structure of the Basic Stamp program, there're a lot of very important pieces of the program that, obviously, aren't included in the above excerpt.

Really, I suggest you find someone whom you can talk to in person about your system. Ambiguity of description isn't safe when programming robots, generally, and it's a lot easier to be clear and concise in real life, than online.
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
  #11   Spotlight this post!  
Unread 25-09-2003, 22:24
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
Hi Tytus,

Matt Reiland has graciously provided a reference to his team's (226) swerve drive code in this thread:


http://www.chiefdelphi.com/forums/s...?threadid=14703

It may be useful!

Eric
__________________

Don't PANIC!
S. P. A. M.
  #12   Spotlight this post!  
Unread 26-09-2003, 10:10
Matt Reiland's Avatar
Matt Reiland Matt Reiland is offline
'The' drive behind the drive
None #0226 (TEC CReW Hammerheads)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1999
Location: Troy Michigan
Posts: 712
Matt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond repute
Yikes the link didn't work, here it is again

http://www.chiefdelphi.com/forums/sh...threadid=14703

This is everything you need to control a crab drive, modify as you would like. In our case, all 4 modules were linked together. Using the code as an example you can easily break it into more complex steering (However variable space becomes an issue quickly when calculating angles)

Enjoy......
__________________
Robonaut Next Generation Control System Development

2003 GLR Champions (302,67,226)
2003 Buckeye Semi-Finalists(902,494,226)
2002 Nationals QuarterFinalists
2001 West MI QuarterFinalists
2000 GLR Semi-Finalists
  #13   Spotlight this post!  
Unread 27-09-2003, 00:13
Damian Manda's Avatar
Damian Manda Damian Manda is offline
The Damian
no team
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Fort Collins, CO
Posts: 154
Damian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud of
Send a message via AIM to Damian Manda
Last year we used a swerve/crab/translational drive. Eventually we had the program working pretty well. We used a custom circuit to detect wher the wheels where, bu a pot could also be used. I you want to see the code, ask Adam Collet on my team (159).
  #14   Spotlight this post!  
Unread 28-09-2003, 19:16
Tytus Gerrish's Avatar
Tytus Gerrish Tytus Gerrish is offline
IGAB, ADHD, and Dislexic
AKA: Ty
FRC #0179 (SwampThing)
Team Role: Tactician
 
Join Date: Feb 2003
Rookie Year: 2001
Location: West Palm Beach, Florida
Posts: 2,017
Tytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond repute
i can sucuessfully program the crab in lego mindstorms
I dont quite get the text verision
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
rotation of body of crab drive robots michael_obrien Technical Discussion 6 22-10-2003 19:32
how does crab drive work? Soukup Technical Discussion 13 25-04-2003 11:31
Who is doing the programing for team 61 Walter_Jr Programming 5 25-01-2003 00:31
What is crab steering?? Adam Y. Technical Discussion 18 30-12-2002 08:12
Programing of controller DLyons Robotics Education and Curriculum 2 02-12-2002 00:16


All times are GMT -5. The time now is 21: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