Go to Post You can usually pick out the kids who will grow up to be engineers. They're the ones tearing apart their nintendo, their vcr, their minibike, and their parents' cars. - Tom Line [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-03-2008, 09:12
beefy23 beefy23 is offline
Registered User
no team
 
Join Date: Mar 2008
Location: Israel
Posts: 9
beefy23 is an unknown quantity at this point
Question Question about Encoders

Can someone explain me how to use Binary encoders which has one signal?
I use MPLAB with kevin`s code.
Thanks
  #2   Spotlight this post!  
Unread 30-03-2008, 15:15
Code Monkey Code Monkey is offline
Registered User
FRC #1622
 
Join Date: Dec 2007
Location: San Diego
Posts: 10
Code Monkey is an unknown quantity at this point
Re: Question about Encoders

you can put the output of a single signal on either the 1-2 dig_io (Encoder1 and Encoder2 in Kevin's code) in which case you will treat them just like gear tooth counters, or, to reduce interrupts, use the 3-4 dig_io (Encoder3 and Encoder4)
and tie the corresponding phase B either high or low so you always get + counts. (Always having + counts lets you use unsigned long int to double your counts before reset).
Make sure you enable the interrupts and the encoders at the top of your code following Kevin's readme and remember the output is a long!

I never have tried to use the rising edge detection to determine direction from a single output encoder or gear tooth counter.

I hope this is still of any value to you. Sorry for not getting this sooner.
Closed Thread


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
Question about Outriggers stevo2k Kit & Additional Hardware 6 10-01-2005 22:17
Question about groups Mike Ciance Chit-Chat 1 14-06-2004 12:50
Question about encoders with detents... Dmitri Electrical 5 08-02-2004 17:45
Question about picture CaptainPlaid Electrical 10 22-02-2002 18:00
Question about scoring.... Katie Reynolds Rules/Strategy 2 06-01-2002 10:37


All times are GMT -5. The time now is 00:56.

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