Shop OBEX P1 Docs P2 Docs Learn Events
PULSOUT and COUNT — Parallax Forums

PULSOUT and COUNT

Duane BDuane B Posts: 2
edited 2007-09-03 05:12 in Robotics
Hello everyone,

I'm sure I'm getting ahead of myself here, but here goes. I bought a Boe Bot about a month ago. I got the the part where you are finding the 'magic' set of numbers that make it drive straight. During that time I ran across something called WheelWatcher for CR servos, sold by Nubotics. I bought a pair, installed them, and had a , what I thought, was a great idea for their use. I was thinking that I could write a little routine that would count the pulses coming from Channel A in a given time period and compare that with the reading I got from the other servo. Based on the result, slow the faster wheel down to a point where the counts are the same for both wheels. The thing I'm not sure about is how to pulse the servos and count the pulses at the same time. With a pulse duration of 850, the pulse train coming out CHA is around 13.5 mS. I'd like to get a couple of seconds worth of counts before I do the comparison.

Thanks,
Duane
Sign In or Register to comment.