View Single Post
  #2   Spotlight this post!  
Unread 10-04-2006, 11:25
Mike Bortfeldt Mike Bortfeldt is offline
Registered User
FRC #1126 (& 1511)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Rochester, NY
Posts: 119
Mike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud of
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
Reply With Quote