On 9/24/2016 1:29 PM, Sag ich Dir nich wrote:
> the encoder has pins GND, VCC, A and B. Pin A of the encoder needs to go to 
> P9.42,1 (thats what the pinmux says, 42,1) and pin B of the nncoder goes to 
> P9.27, is that correct?

Yes.  Note that pin 42 has two physical CPU pins connected to it, so
you need to make sure the unused pin (P9.42) is set to input mode so
it isn't driving a signal, and the encoder pin (P9.42.1) is set to
encoder mode.

> Am Samstag, 24. September 2016 20:14:13 UTC+2 schrieb Sag ich Dir nich:
> 
>     thank you,
> 
>     i got a HEDS-5500 H14 encoder, which is a 2 channel 400cpr (cycles/rev)
>     encoder with 5 pins (one of them is not used, so it is a 4 pin encoder). 
> The
>     data sheet says:
> 
>     supply current 17ma (typical), 40ma (max)
>     low level output voltage 0.4v (max)
>     high level output voltage 2.4v (min)
>     supply voltage 5v
>     maximum count frequency 100khz
> 
>     will the eQEP be fast enough to safely count up to 9000rpm? that would be
>     like 3.6mhz if i calculated correctly

The encoder itself only goes up to 100 KHz, but that should be fast
enough:

9000 rev/min * 1/60 min/sec * 400 counts/rev = 60,000 counts/sec

...so you only need to run at 60 KHz.  The PRU software based encoder
can run this fast if you shorten the PRU task cycle time to 3 uS or
so.  The eQEP hardware encoder inputs can handle up to MHz count
frequencies, so 60 KHz will work easily.

-- 
Charles Steinkuehler
char...@steinkuehler.net

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to