How to interface a rotary encoderenco

Hi,
I would like to interface a rotary encoder. It has a digital A and B signal 90 degrees shifted in phase. To interface this encoder I would need to periodically read the two digital inputs and process the data.
Because of the possible turn speed I would need to do this at a rate of minimal 1000 times per second.

Can I define a periodical interrupt at that rate and being sure no interrupt will be missed?

Hi,
For 1000Hz, you may use PWM pins. If you use Orin Nano developer kit, can use GPIO07 or GPIO13 in 40-pin expansion header.

For more information about developer kit, please check
https://developer.nvidia.com/downloads/assets/embedded/secure/jetson/orin_nano/docs/jetson_orin_nano_devkit_carrier_board_specification_sp-11324-001_v1.0.pdf/

For available PWM pins, please check
https://developer.nvidia.com/downloads/assets/embedded/secure/jetson/orin_nano/docs/jetson_orin_nano_ds-11105-001_v1.0_2.24.pdf/

PWMs are outputs. I’m talking about inputs.

Hi,
Sorry we don’t have much experience about the use-case so did not provide good suggestion. Would need other users to share experience.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.