|
Re: Want to learn PIC Programming? Good deal here!
Rick,
Thanks for the link. I bought one and it's been kind of fun playing around with it. I got to thinking that one of the small PICs would probably be great at identifying direction on a Gear Tooth Sensor (GTS) and after a little trial and error, had one of the 12F series easily detecting the difference between a 39 microsecond pulse and an 83 microsecond pulse (as generated by a timer on another pin). Since we don't use a GTS on our robot, I'll have to dig one up from storage and try this out on the real thing. I was thinking that if you just change state on two other output pins (one for forward, one for reverse), you could wire these to DIO 3-6 on the RC and interrupt on change (or you could make your own quadrature output for that matter). Easy forward/reverse counting for a couple of bucks.
Thanks again.
Mike
|