map

hello for the moment it's just a question not a project (for later)

is it possible to create a robo with an ultrasong detector which maps an area and puts it on the com port and that its records the map in it at the same time

a bit like her

[u]com port[/u]

|-------------------------------------------*
|O                                          *
|                                           *
|                                           *
|                                           *
|                                           *
|                                           |
|                                           |
|                                           |
|                                           |
|                                           |
|                                           |
|          X                                |
---------------                             |
               |                            |   
               |                            |
               |                            |
               |                            |
               |----------------------------|






legend:
| and - = walls
X = robot position
O = starting position
* = not yet observe (don't know if there is soil or a wall

and why not later add an area where he cannot go with a magnetic strip or other mark +

How will the robot know is X/Y position ?

A long while ago I tried to do this (not with an Arduino) by measuring the distance covered by each wheel and the direction the robot was moving in, but slippage of the wheels on the surface meant that it was not accurate

I don't know yet I was thinking of a base with infrared and a receiver on the robot

photoresistor detects infrared ?? as its with the values ​​we can estimate the distance from the base

Even if you determine the distance from the base(how ?) it will not give you an X/Y position. You need at least 2, preferably more, angles from known locations in order determine the X/Y position

All of this is possible but it sounds difficult and inaccurate. What sort of environment would the robot be operating in ? Indoors, outdoors, what size ?

indoors no climb / descent on tiles

I don't know if it's possible to do its (X position of the robot
O starting base
)

in has a reference (very green at the top and according to the reference in calculates the angle

or with a compass or gps it calculates in relation to the base

or even why not make it the robot calculates the distance from the base and each wall as it will be or it finds the base and gives the base at ref X = 0 Y = 0

and after it calculates according to the displacement it makes a cadriage
(high X + 1 low -1
right Y + 1 left -1

If there are solid walls and no obstructions then the robot can determine its position in relkation to them and, hence, calculate how to get to any other position, but it must have a means of turning precisely through an angle and obstructions within the space will complicate things, to say the least

for the angles I will do with a stepper motor and give it less choice than to turn at +90 -90 or 190 °

Good luck with that

What sort of surface will it be running on and will there be obstructions in the area and if so, how will you distinguish between them an the walls ?

Im a very experienced video game programmer who got interested in arduino a couple years back. and what you are talking about was my first failed project. of course you can calculate exact math based on position and rotation and speed. you can calculate anything you could imagine in trig. it's easy enough to calculate a point based on rotation and distance. I can even give you path finding code. but there is a reason you dont see this sort of code in arduino like you do in video games. the problem in position is the inacuraccy of sensors. the problem in speed calculation is the slipping of wheels. problems with rotation beacuse of all of the above. along with small unexpected differences in motor speeds changing as batteries wear down. the only method to do this would be with some sort of "markers" on the floor or in the room so your bot could confirm his location.