Today in class we went over what we will be doing for the rest of the semester and what we will be doing after we are done with the ultrasonic sensor. I spent the rest of the class getting the sensor to work. the video below show the robot navigating around and making turns as it finds walls. The robot is supposed to look forward and if it doesn't see anything within five inches it moves forward. When it sees something it stops, the sensor looks left then scans again. If there's nothing, it turns left and goes forward. If there is something it looks right and scans again. If there's nothing it makes a right turn. If there is something in front and to the left and right of the robot it will turn around. My timing on the turns wasn't exactly on, so the turns aren't as precise as they should be.
No comments:
Post a Comment