Programming assistance is needed

hello,

my robotics club is doing a show case next week and I am having problems writing the codes for them. over all we want the robot to roll forward until the infrared sensor detects an object. after which it will stop the arm will then reach down pick it up, and move it out of the way. after a short delay it will then do a 180 and come back to the start point.

I have had a lot of problems with programming the arm and we have decided to try and get a new board. so for now the wheel base is pretty much golden except for one thing. my club president wants me to pretty much have the board count the seconds its out. after the stop and 180 it will return to its start position without having programmed distances. can anyone help me with figuring out how to write this code.

please help this has been driving me nuts for days.

Hi,

What kind of platform (microcontroller, motor controller, robotic arm, etc.) are you using? Also, what programming language and libraries are you using? Do you have any restrictions on what can be used?
Please provide as many details as possible and possibly attach some pictures (you can find the Attachments bar above the Preview/Submit/Save draft/Cancel buttons in full editor mode).

If you are using an Arduino-compatible platform, these may help you:

]Arduino Time library/:m]
]Arduino millis() function/:m]
]Arduino HMS example/:m]
Sincerely,