Go to Post This is one area where you want an old hand in the room to show you how to work on this thing. .... If you survive it, electricity hurts really bad. - ebarker [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-03-2009, 09:53
cau.denny cau.denny is offline
Registered User
None #1234
 
Join Date: Feb 2009
Location: israel
Posts: 6
cau.denny is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 17-03-2009, 12:15
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,846
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 17-03-2009, 12:51
cau.denny cau.denny is offline
Registered User
None #1234
 
Join Date: Feb 2009
Location: israel
Posts: 6
cau.denny is an unknown quantity at this point
Re: encoder code for 18f8520

thanks
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encoder Code dboisvert C/C++ 11 20-01-2011 18:57
Encoder Code Kevin Watson Programming 47 18-02-2008 12:56
Gear encoder code Demothesis Programming 8 20-07-2007 17:15
Vex Encoder Code CircularLogic FIRST Tech Challenge 7 09-08-2006 22:12
Updated Encoder Code Available Kevin Watson Programming 2 04-01-2005 01:00


All times are GMT -5. The time now is 10:04.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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