Wednesday, April 29, 2009

Obstacle Course: Day 2 - Program

today, I will work on the section of touch sensor and ultrasonic sensor. My robot is right now able to complete the tasks until sensing the black line, and staying inside the box for 5 seconds. \

I will write the program for my robot, of bump into the wall, go backward, turn right, sense the wall before bumping, and stop.

For the task, which robot bumps to the wall, and goes backward. I will use touch sensor. Touch sensor can sense object by hitting to it. I will make the robot to go backward, and turn right, after when the touch sensor is bumped by the wall.

For the task of sensing the wall without bumping to it, I will use ultrasonic sensor. Ultrasonic sensor can sense the object in front without hitting to it. And then I will make the robot to stop and turn right, after the ultrasonic sensor sense the object near.

No comments:

Post a Comment