Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   encoder code for 18f8520 (http://www.chiefdelphi.com/forums/showthread.php?t=75925)

cau.denny 17-03-2009 09:53

encoder code for 18f8520
 
hi guys,
im using first 18f8520 and i need to read a encoder.
my encoder have 90 slits on it.
can eneyone help me with the code?
thanks :)

Mark McLeod 17-03-2009 12:15

Re: encoder code for 18f8520
 
Take a look at: http://kevin.org/frc/2005/frc_encoder.zip

Kevin Watson did an example of a quadrature encoder. If you have a single phase wire coming out of your Vex encoder (new ones are quad encoders, old ones are single phase) then you can still use this, but it will only count up.

cau.denny 17-03-2009 12:51

Re: encoder code for 18f8520
 
thanks :)


All times are GMT -5. The time now is 16:27.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi