interfacing rotary encoder with i.mx8mini evk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

interfacing rotary encoder with i.mx8mini evk

457 Views
Krutika_95
Contributor I

Hello,

I want to interface E33-VT032-M01T rotary encoder with dart mx8m mini based on  i.mx8m evk. Can it be used without using the rotary encoder driver available in yocto build by just reading the values of GPIO in user space? if yes can you please let me know any sample is available for the same?Or does it require the driver to use it?

 

0 Kudos
2 Replies

452 Views
igorpadykov
NXP Employee
NXP Employee

Hi Krutika_95

 

I believe it is necessary to use linux driver, using gpios not possible to read

encoder data.

 

Best regards
igor

0 Kudos

448 Views
Krutika_95
Contributor I

The driver itself is generic driver for rotary encoder with gpio. For the application in user space do i need to export,set direction and read values of GPIO ? I am not able to find any reference regarding the same.I have implemented an application where i have exported gpio,have set its direction as in and reading gpio value but i am getting an error while doing it.Can you please send me an sample or reference regarding the same if you have any idea about it?

0 Kudos