ping sensor and bracket kit help
brownaus14
Posts: 2
http://www.parallax.com/downloads/roaming-ping-simple-basic-stamp-code
I used this program but it doesn't work for the maze it identified the walls to quickly what would I have to do to make identify the walls at a closer distance and not as far away so it can navigate the maze with ease
I used this program but it doesn't work for the maze it identified the walls to quickly what would I have to do to make identify the walls at a closer distance and not as far away so it can navigate the maze with ease
Comments
In the example program you pointed out, take a look at the GetSonar subroutine. The first IF statement has the condition "IF (rawDist < 600) THEN." It translates to "IF the raw distance value measured by the PING sensor is less than 600, then..."
So, the value 600 in this statement controls the distance at which the robot identifies a wall. Try experimenting with different values in place of 600 to see if it gets you the result you want. You may find that you need to adjust the maneuvers too.