I have a Line following kit and I was wondering if there was any way to put a timer within the line following program. Can you put a counter on the sensors as well if you can't put a timer.
There's no accessible independent timer in the Stamps. Generally you do timing by establishing a control loop that executes relatively quickly (in a fraction of a second) and then include a PAUSE to make the loop take a (roughly) known amount of time (like 1/4 sec). You add a counter to the loop which now keeps track of the number of loops and that gives you an approximate elapsed time.
Comments