Shop OBEX P1 Docs P2 Docs Learn Events
Encoder pulse counting — Parallax Forums

Encoder pulse counting

NickMNickM Posts: 2
edited 2009-05-30 15:55 in General Discussion
Hello,

My boebot is programmed as a linefollower with IR sensors. While this program is running i want to get the distance travelled (with·2 encoders).
In a test program i use the code: CPU.count(6,CPU.pin14,true) in a constant while to count the encoders output.

My question is: how can i get the distance travelled while executing the linefollower program?

is there any way to use a VP with the encoders while the linefollower program runs? or do i need an external counter?

thanks in advance!
Sign In or Register to comment.