@ hamid
Jeroen pointed me to your questions in the GPIO thread, i’ll post my answer here to keep the encoder stuff in this thread.
The encoder i used is a quadrature encoder, most common available are made by keyes or xinda but there are many more. these encoders have 2 10k resistios Some also have a 10k pullup for the SW pin (pushbutton function when you press the encoder shaft)
First of all i’m glad to hear that you know a bit more about the kernel stuff i hope you can explain a bit (or all) that has to be checked and set. On the openWrt forum i could not find much on the topic, and even less in the wiki. I hope i can collect enough info to make a basic but useful wiki article on this.
Alzhao has compiled the kernel for us and so this should now be enabled in the kernel though its not yet clear to me how to make this work. it seems we should be able to configure the GPIO with a script that tells the software what pins to use. But i still can’t figure out how.
Meanwhile i have played a bit with arduino and encoders and there it’s not too hard to make it work, however Arduino is a different animal in this regard.
this is the most common rotary encoder so it should not be too hard to find. (in what part of the world do you live?)