Shop OBEX P1 Docs P2 Docs Learn Events
My attempt to parallel park the boe bot — Parallax Forums

My attempt to parallel park the boe bot

AlexMAlexM Posts: 4
edited 2007-05-02 16:58 in Robotics
Hello All,

I would like to figure out how to parallel park my boe-bot. I'm trying to figure out how to use the IR sensors to detect a white line proceed until it detects a second white line, thus indicating a space, and then get it to parallel park. Very much like the video below vvvv.


From here, I have a good sense of how I can get the boe-bot to begin a parking sequence.

Thank you!!!

-Alex

Post Edited (AlexM) : 5/1/2007 3:53:28 PM GMT

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-05-01 04:20
    Here's a cool video of what can be done. www.youtube.com/watch?v=LBCyhkz8S4E

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • AlexMAlexM Posts: 4
    edited 2007-05-01 04:48
    That's really cool. Are you familiar with who that is, or how to contact them?
  • parts-man73parts-man73 Posts: 830
    edited 2007-05-01 14:29
    I just saw that video, and there was a link to another video "Boe-bot parade" I got a chuckle out of.

    www.youtube.com/watch?v=hxMZQUKk8JU&mode=related&search=

    Look at all those boe-bots!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Brian Meade

    "They who dream by day are cognizant of many things which escape those who dream only by night" - Edgar Poe
  • AlexMAlexM Posts: 4
    edited 2007-05-01 15:48
    I aware of finding these videos. I'm asking for help with code. I'd really like to see the code that allowed the boe-bot to see the first line, continue to the second and then proceed to parallel park.

    Anyone?

    Thanks!
  • crgwbrcrgwbr Posts: 614
    edited 2007-05-01 19:53
    Just start trying things. I'm sure you know enough programming to move around, and to read sensors. Start their and work your way up to the final project. That's the way real projects are done.

    Regards,
    Craig

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I would love to change the world, but they won't give me the source code

    People say that if you play Microsoft CD's backwards, you hear satanic things, but that's nothing, because if you play them forwards, they install Windows.

    I spent a minute looking at my own code by accident. I was thinking "What the heck is this guy doing?"
  • DufferDuffer Posts: 374
    edited 2007-05-02 01:56
    I would agree with Craig, but I think I would have ended by saying: "That's why real projects are fun". Experimenting and finding your own way is the fun part of the journey. Who knows, in your experimentation you may find that your observations and even your mistakes·may help you solve another problem in a furure project.

    Please don't be in such a hurry to "finish" a project. Besides, when you are finished, you're just going to unhook everything and start your next project anyway. smile.gif

    Step by step,·· Steve
  • AlexMAlexM Posts: 4
    edited 2007-05-02 02:07
    Thanks, but I am in a hurry. I'm doing a project for class and really wanted to throw this is as an extra bonus.

    If I didn't have 15 other units of school work to worry about, I would be doing this without asking for help.

    I kindly ask that if you aren't here to offer suggestions, then please don't post. I'm already doing the 'step by step', and 'experimenting' that has been suggested.

    Thanks again!
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-05-02 16:58
    Hi Alex, the solution to this problem is mostly determined by the layout of the "roadway" the number and size·of parking spaces,whether·some are occupied, the current method you are using to follow the path of the road and so on. As you see the more complex the path of travel becomes the more the program grows in complexity.

    So if you are in a hurry and need to present this to class keep it simple, if it works well it will still impress and show the example you are trying to put across.

    The simplest design is a road twice the width of the bot with the bot travelling in the top half and just one parking space situated somewhere along the route in the bottom half of the road. If you are travelling left to right mount a qti sensor mid right of the bot scanning for the first parking line, increment a counter to flag seeing the first line. Scan for the second line and again increment the counter. At this point the bot is ready to begin its parking sequence, in the program it would look like IF counter = 2 stop_servos,· GOSUB park, counter=0.

    Make the parking space large enough to allow for any small errors in position and you should get some pretty good repeatability. When you have more time then you can expand the program and add more sensors to detect occupied parking spaces ,spaces differing in size and get a tighter parking sequence.

    Jeff T
Sign In or Register to comment.