Hi,
Welcome to the forum.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
@slipstick means like this, the variable names are self explanatory.
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
int startbutPin = 8;
int stopbutleftPin = 9;
int stopbutrightPin = 10;
double starttime = millis();
double leftstoptime ;
double rightstoptme ;
double c1 = 0;//left et
double c2 = 0;//right et
void setup()
{
lcd.begin(16, 2);
lcd.clear();
Serial.begin(9600);
pinMode(startbutPin, INPUT);
digitalWrite(startbutPin, HIGH);
pinMode(stopbutleftPin, INPUT);
digitalWrite(stopbutleftPin, HIGH);
pinMode(stopbutrightPin, INPUT);
digitalWrite(stopbutrightPin, HIGH);
}
Tom... ![]()