Delay of turning either left or right

Excuse me Sir LMRians,

I already have the needed materials here for a robot like what Mr. OddBot's https://www.robotshop.com/letsmakerobots/node/29105 . and I'm planning to have the design that wouldn't like a puppy, but it may look like wall-e...and also, im using 2 IR range sensors instead of IR Compound light sensor(cause i still dont know how to use IR Light sensors),and i would like to do the same thing what the puppy bot of Mr. Oddbot...

 

inorder to let the bot follow a human, i would like to do like this

 

Read left sensor
Read right sensor
If left reading closer, turn right until readings are equal
If right reading closer, turn left until readings are equal
Then Stop if left = right
Repeat

 

But the problem is, the delay time of turning the bot... How would I do that?

 

By the way, Thanks to Sir Birdmun, Sir OddBot, and Mr. Dan M.

They gave me a lot of ideas.. and i need to make the bot before our recognition day, march 20, 2014...cause the girl that i admire would vist us from japan, and i would like to give it to her, cause the robot seems cute after making it..

 

I'm asking for the delay sir LMRians..!!!! :D

 

-VerDe

yes sir!!

actually…it would work like Ms. Wales Unfinished Sumo bot https://www.robotshop.com/letsmakerobots/node/39784 … But her bot didn’t have a fix distance away from the ojbect…since i would like the robot to work like sir Oddbot’s bot I would put a constant variable (ex. Y = 500) at which the robot should mentain its dist away from an object, and a combination of the code

Read left sensor
Read right sensor
If left reading closer, turn right until readings are equal
If right reading closer, turn left until readings are equal
Then Stop if left = right
Repeat

to let it work like Mr. Oddbot’s Puppy bot

and also… im studying robotics not for her…but im trying to gain at least enough experience and just wanted to be advance from our lessons…and i also wanted to become a robot builder…!! :smiley:

and the finished sumo bot that Ms. Wales is here

http://www.youtube.com/watch?v=3hzL-QBf1UI