Shop OBEX P1 Docs P2 Docs Learn Events
PING sonar with ir sensors and wheel odemtry program??? — Parallax Forums

PING sonar with ir sensors and wheel odemtry program???

sutherlacd27sutherlacd27 Posts: 4
edited 2008-05-18 19:22 in Robotics
im trying to combine the roaming with ping and the wheel odometry class together and im failing quite badly.· my goal is to use the wheel odometry with the ping navigation to create a map of the room i put my boebot in.· anybody have a program for this already i could get or any tips on how to combine the 2?· thanks for the help

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-05-01 01:07
    What do you have so far and what problems are you having?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • sutherlacd27sutherlacd27 Posts: 4
    edited 2008-05-05 20:35
    so far i have the regular sonar program and the odometry program from the parallax site. i thought i could just combine the 2 and it would work but besides that i dont know how else to do it. i just started building boebots 2 weeks ago so im not familiar with them at all.
  • ercoerco Posts: 20,256
    edited 2008-05-05 21:36
    You fish in dark waters, my friend...

    I hate to be the bearer of bad news, but the·task you mention·is among the most challenging in robotics. Even·an experienced roboticist would find room mapping with a Boe-Bot a daunting task. If it was easy (or previously done), you'd have lots of replies, as this is a very friendly forum. Lots of smart people are working on bits & pieces of·the puzzle, but the overall solution you seek is so overwhelming that it is difficult to fathom. Robots costing thousands of dollars linked to PCs can barely get the job done.

    You're·just·beginning in robotics, so it probably seems like a straightforward problem. My suggestion is to start with the BoE-Bot book and work through it.·Sonar has issues, the BoE Bot chassis has subtleties, you need to understand the basics to get an appreciation for the difficulty of the task. You'll probably need to use IR, bump switches, and wheel encoders to track your position reasonably well.

    A·typical real world room is a very difficult thing for a robot to navigate through. I suggest·you start with a fixed, rectangular area (use boards to make a fixed space, or tape off an area on your floor) with no obstacles. Establish a starting location and then try to find the four corners, then the middle, then come home to your starting space. When you can do that consistently, you're on your way. Good luck!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-05-06 14:05
    Your duplicate post in the Robotics Forum was removed. Cross-Posting is not allowed on the forums.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Tom CTom C Posts: 461
    edited 2008-05-07 00:02
    sutherlacd27,

    If you would like to see an example of a robot rover that can find its way around a room with IR and PING))) sensors, then take a look at this link:

    http://www.norrislabs.com/Projects/RomeyPart1/index.html

    Unfortunately this rover uses the Atom 28P, but the programming algorithms might be usefully for navigation and object advoidance. The author also does not use wheel odometry, but I am sure you can find examples elsewhere that can be combined with the navigation and object advoidance algorithms.

    Just a thought.

    Regards,

    TCIII

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    If you are going to send·a Robot·to save the world, you·better make sure it likes it the way it is!

    Post Edited (Tom C) : 5/7/2008 12:10:54 AM GMT
  • sutherlacd27sutherlacd27 Posts: 4
    edited 2008-05-07 21:07
    Well so far I have succesfully ran the roaming with ping program from parallax and the wheel odometry program seperately. Now when i try to put blend the 2 programs together I have a connection problem with the pc. It says I can't find the bot? Any suggestions on how to blend the 2 programs together?
  • sutherlacd27sutherlacd27 Posts: 4
    edited 2008-05-07 23:01
    How can we clear our data and plot the new data on the grid.
  • P!-RoP!-Ro Posts: 1,189
    edited 2008-05-18 19:22
    If you want to post data on a grid, I advise you to either make a lot of variables to save info in, or to use the write and read commands to save it. Then, when you hook it up to the computer, you could press a button that makes it debug the results. When you get the results, you could then copy them down and chart them on a graph, giving you a map. If you want this to be easier, you should think about getting a microcontroller with more EEPROM so you can use the run command and the scratch pad ram. Just email me if you want more help. Good luck!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Pi Guy
Sign In or Register to comment.