Arduino Uno Question

Hey guys,

Can you program the reset button on the Arudino Uno to do something else? If so, what do I need to do?

Thanks

More information please.

.

I need it to start and run the following code and the only button on the board is “reset button”

#include <Servo.h>
//Defines Wheels
Servo servoLeft;
Servo servoRight;

//Declares global variable and functions
String readString;
void sendInfo(int time, int speed);
void Setup();
void loop();

//Tells the computer which ports on the robot to use
//Wheels set to the at rest position
void setup()
{
Serial.begin(9600);
servoLeft.writeMicroseconds(1500);
servoRight.writeMicroseconds(1500);
servoLeft.attach(13);
servoRight.attach(12);
}

void loop()
{
//Tells the user that the program ran through setup()
Serial.println(“Wheel are Set”);
int time;
int speed;
delay(1000);

//Gets the time
Serial.print(“Please enter the time in seconds:”);
int k;
//Clears the words in the readstring variable so there are no errors
readString="";
//Collects user input
while ((k = Serial.read()) != ‘\n’)
{
if (k != -1)
{
readString += (char) k;
Serial.print((char) k);
}
}
Serial.println();

//Sets user recieved time equal to the variable time in ms
if (readString.length() > 0)
{
Serial.println(readString); //so you can see the captured string
time = readString.toInt(); //convert readString into a number
time = time * 1000;
Serial.print("Time: ");
Serial.print(time);
Serial.println(“ms”);
}

//Gets the speed
speed=0;
Serial.print(“Please enter the speed in microseconds :”);
int x;
//Clears the words in the readstring variable so there are no errors
readString="";
//Collects user input
while ((k = Serial.read()) != ‘\n’)
{
if (k != -1)
{
readString += (char) k;
Serial.print((char) k);
}
}
Serial.println();

//Sets user recieved speed to the variable speed
if (readString.length() > 0)
{
//Serial.println(readString); //so you can see the captured string
speed = readString.toInt(); //convert readString into a number
}

//Sends the info and tells the robot to run at a certain speed
Serial.print("Sending information to the robot: ");
Serial.println(speed);
servoLeft.writeMicroseconds(speed);
servoRight.writeMicroseconds(-speed);

//Makes the robot stop
delay(time);
servoLeft.writeMicroseconds(1500);
servoRight.writeMicroseconds(1500);
}

MeganLiz:
I need it to start and run the following code and the only button on the board is "reset button"

Your program will start running as soon as the Arduino is powered up. Pressing the reset button will cause the program to restart.

...R