program

Sir,

please help to guide for code...

In my loop, about 60 seconds motor is running, then it will turned off.

During the 60 seconds of motor ON, i want to show the elapsed time in the LCD display.

also i do not know the code for how to reset the millis() for next process to take the start time as zero .

Thanks.

You need to post your program if you want help with it.

The demo Several Things at a Time illustrates the use of millis() to manage timing. It may help with understanding the technique.

...R

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.

What model Arduino are you using?

Thanks.. Tom.. :slight_smile:

samrajD:
Sir,

please help to guide for code...

In my loop, about 60 seconds motor is running, then it will turned off.

During the 60 seconds of motor ON, i want to show the elapsed time in the LCD display.

also i do not know the code for how to reset the millis() for next process to take the start time as zero .

Thanks.

samrajBhai, show us what your code looks like. try the blink without delay in the arduino IDE examples. That should give you an idea from where to start.