Im doing a project and need some help....
boebot_fanatic
Posts: 5
Hi im in 2nd year electronics and am starting a project using the boebot to map out an unknown enviroment.
Any ideas about getting started would be greatly apprieciated (i.e. how do you get the thing to map out the dimensions of the room?)
Any ideas about getting started would be greatly apprieciated (i.e. how do you get the thing to map out the dimensions of the room?)
Comments
One way (easy way) is to have it go until it bumps into a wall, turn 90 degrees and go again until it hits another wall..... that should be the corner, and you can use that as a starting point. Then start timing how long it's traveling. Turn 90 degrees and go until it hits another wall, all the while measuring the time it's traveling (or wheel revolutions?) before hitting. That will give you one dimension (if you know the velocity or wheel size, depending on if you're using time or wheel revs)... repeat the turn/run cycle again for the other dimension. Maybe have it check to make sure it's following the wall (and not wandering off) for increased accuracy.
Another way (the harder way) would need additional equipment. It involves the bot finding a wall and following the perimeter of the room somehow, and have 2 "locating" beacons (separate from the bot, a know distance apart but anywhere in the room). If it knows it's location relative to the beacons, it can determine more accurately the dimensions of the room. The concept of behind aircraft VOR comes to mind...
For the beacons, maybe have a slowly spinning stepper motor with an IR LED flashing on top. As the motor rotates, have the frequency it's flashing vary. At 0 degrees, it might flash at 100 Hz... and have it flash faster as it rotates, then reset again at 0 deg. The second beacon you might offset to start at 400 Hz (so the bot knows which one it's sampling), and increase the frequency by the same amount as it changes degrees. The bot can stop until the beacon's beam "crosses" it, sample the flashes, and determine where it is in relation to the beacons. Just make sure the beacons don't overlap (shut one off when they cross paths) so that the bot doesn't try to sample both at the same time. It'd involve some math embedded in the programming, but that'd be accurate, doable, and cool.
Dave
Dave
I was also wondering about infra red detection to avoid obsticles around the room and how can this be stored in memory??
Hope that helps,
Dave
·
Don't get discouraged, but what you are trying to do is not easy.
Bean.
Post Edited (Bean) : 1/26/2005 1:47:41 PM GMT
nate
I apologize for my previous post. I should have been more supportive or constructive rather than destructive. Please continue to post your questions, as lots of good professionals including achilles03 and Bean, among many others, can offer great assistance. Please forgive my inappropriate post, and don't give up on your project.