Shop OBEX P1 Docs P2 Docs Learn Events
QTI Line Following Kit — Parallax Forums

QTI Line Following Kit

busdriverbusdriver Posts: 1
edited 2009-12-05 23:04 in BASIC Stamp
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.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-12-05 23:04
    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.
Sign In or Register to comment.