|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Can someone explain me how to use Binary encoders which has one signal?
I use MPLAB with kevin`s code. Thanks ![]() |
|
#2
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |