Shop OBEX P1 Docs P2 Docs Learn Events
Swiftsure BS2e Robot — Parallax Forums

Swiftsure BS2e Robot

SRLMSRLM Posts: 5,045
edited 2009-05-03 11:57 in Robotics
This is my senior project (12th grade) of a robot named Swiftsure. I had been considering going into architecture for my major, until I attended the DARPA Urban Challenge in Victorville, CA. This collection of robotic vehicles inspired me, and I decided to do something autonomous for my senior project at Escondido Charter High School. I had seen the BS2 starter kit at Frys, so I shelled out the $150 bucks and got it. I was surprised at how easy it is to program, especially with a background in Java. I then designed my first robot, Swiftsure.

My design goal was to have an autonomous robot that could travel from point A to point B, and then camp out at that point and flash a light like a lightship (just google Swiftsure 1904). Unfortunately, I grossly overestimated the capabilities of the Parallax GPS in calculating the current heading, and so I cut down my project to just an autonomous roving vehicle. The official purpose is "To autonomously rove about until an external trigger, in this case a low light level, cause the bot to stop and collect environmental data until the external trigger dictates to move on again." It wasn't until about two weeks before my presentation that I discovered the compass module, and by then I was reluctant to rebuild a working robot with so little time.

So now I am on to Swiftsure II, a more capable autonomous bot with a compass, a BS2, and a BS2px. I had written most of the code for the first version, so this should be a simple conversion...

Swiftsure specs:

Brains: BS2e
Sensors:

1 - Ping
1 - Sensiron Temperature/Humidity
1 - GPS
2 - Custom Bumpers

Other Electronics:
1 - Datalogger
1 - Ping Spin servo
1 - Tank Tread Kit


My object avoidance algorithm is as follows:

Desired heading is known.
Look in direction of desired heading.
If clear, go that way.
If not, look to the right a little bit.
If clear, go that way.
Repeat as needed to the left, and then to the right a bit more, then to the left, and so on.
If no clear path is available, reverse direction.

Anybody else use this in one of their bots? if you have, let me know. If you have an improvement to that still retains this simplicity, please let me know.
1536 x 1024 - 825K
1024 x 1536 - 658K
1600 x 2400 - 2M
2400 x 1600 - 2M
2400 x 1600 - 2M

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-08-05 02:58
    SRLM,

    Congrats on a well-done project! It's really satisfying to see such craftsmanship and attention to detail. You should be proud of what you've accomplished! (As a Washington State resident, I'm particularly gratified by the name you chose: "Swiftsure"!)

    -Phil

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Still some PropSTICK Kit bare PCBs left!
  • SRLMSRLM Posts: 5,045
    edited 2008-08-05 06:35
    I don't think that I put this is the first post, but Swiftsure is built on a BOE-BOT chassis. I simply hid it behind the Orange cover and bumpers. Which leads me to the purpose of this post: I thought I would include the dimensions of the bumpers in the event that somebody visits this thread and likes them.
    ·
    Note that the design is for BOE-BOT with treads and Ping spin servo. If you choose to not include these, some modifications are in order.
    ·
    The bumpers are constructed of two main components: 1/2" L angle iron (aluminum) and U angle iron with a 1/2" inside base by 2/5" tall, inside (also of aluminum). These pieces are available from Lowe's or Home Depot in long strands of 8'. The aluminum is extremely useful for building light, permanent frames. Other hardware includes:
    ·
    8·- #4 bolts, washers, and nuts.
    2 - #4 bolts about 1" or 1 1/4" long
    1 -·#6 threaded rod about 3 1/2 " long
    ···- #6 assorted hardware including a 1/2" standoff
    2· - #2 bolt and nuts
    2· - Roller switches with wire
    1· - Piece of styrene cut special
    1· - 3" long tube that can fit over a #4 bolt
    1· - 3" long rod that fit through the rear wheel hole
    2· - short standoffs that can fit over the previous entry
    ·
    ·
    Cut 1/2" L angle rod in·two·1.5" lengths.
    ·
    Cut U iron in lengths of one 1.5", one 2.5", one 3.5", and one 5".
    ·
    Drill vertical holes in the 1/2" L angle iron so that it fits over the servo pointing forward. The drill a through hole on the Boe-Bot horizontal axis. This hole is about .6" center line forward.
    ·
    Drill a hole in the 1.5" U iron about .5" from one end. The hole should be parallel to the bottom of the U.·
    ·
    Drill a hole through one side of the 3.5" piece in the center of a vertical part of the U. It should be about 1.75" in, and the center of the side.
    ·
    Place the 3.5" piece over the .5" piece to form a T with a large top. Make sure that the bottom side of the U of the short piece is on the same side as the hole last drilled. Mark·and drill.
    ·
    Assemble per photos.
    ·
    Use the pictures to place the switch on the side of the .5" U iron. It should rub against the servo. Mark where the hole goes, drill, and use the #2 bolt.
    ·
    Construct the rear T the same way, with the exception that the hinge is to fit the small rod, and the switch goes further down the iron.
    ·
    Mount the rub plate on the back of the Bot. The special cutout is so that the USB cord can plug into the BOE. I lowered the height of the Board relative to the top of the chassis, so I needed to make concessions.
    ·
    That's about it. Seems that this has turned out a bit longer that I expected, but it did take me about 8 hours of solid work to design and build the bumpers... Well worth it: they have not failed me yet and are people's favorite part since they are so easy to push and make a nice·click sound.

    Post Edited (SRLM) : 8/9/2008 2:39:23 AM GMT
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-08-05 14:30
    SRLM,

    Can you post the code for this robot?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • SRLMSRLM Posts: 5,045
    edited 2008-08-05 16:16
    Here is the code. The files are linked, so open up "Main.bse" to open the project.

    Some notes are in order:

    The program control passes from one slot to the next quite often. I treat some slots, like the datalogger slots, the gps slot, and the sensiron slot as big methods that I call and then return from. To facilitate this·I use spaces in the SCRAM to create my own method call system. The word file is used to help me remember where everything is.

    For this version, I didn't have a compass so navigation was reduced to a random type pattern. For Swiftsure II I will be adding the compass and hence navigation (I also added a second BS2 to handle the info gathering), so I was able to improve and clean up the code later. I'll post it when I finish.

    The code uses some of the standard methods from example files for the GPS, Datalogger, and Sensiron. I couldn't come up with any real improvement on that front.

    The roving program is the heart of the project as the best organized and most creative. There are several main components. Navigation is done in a look first, then decide method. The bumpers program is there to tell if the bot is stuck by either having both bumpers pushed at the same time, or by bouncing back and forth between two objects.

    The second version of the bot, soon to arrive, will use much the same stuff.
  • WhitWhit Posts: 4,191
    edited 2008-08-09 00:45
    Super project SRLM. I have downloaded your code and pics so I can really study it more. Can't wait to see number II.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Whit+


    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
  • roksrakaroksraka Posts: 19
    edited 2008-08-11 06:28
    I think it would look cooler without the orange box. But still, cool robot! And thanks for your reply on my post!
  • SRLMSRLM Posts: 5,045
    edited 2008-08-11 16:08
    Well, my background before getting into robotics was building scale models, so I guess some of it overflowed into the robot. I had an image of a rover acting as a lightship, so it had to look the part. Plus, it looks more friendly with the cover to non-electronic people.
  • PrettybirdPrettybird Posts: 269
    edited 2009-05-03 11:57
    Looks like you quite the programm wiz. I am just starting and my strong points are hardware. I will try your programs soon. Curious how the treds are holding up. I reciently finished my first bot and still adding accessories.I also have Parallax electronics on a lynxmotion quadrapod I got doa on emay. Electronics are fine. I thinking working on wheels is easier the working on leg for a beginner. Nice job.
Sign In or Register to comment.