Left for archival purposes.

User avatar
By bubnikv
#21872 Hi gang.

I would like to build a responsive WiFi tuning knob for a software defined radio receiver. I would connect a high resolution rotary encoder to the ESP8266 board, I would track the rotary encoder and send the updates over WiFi. The knob needs to react very quickly and precisely, and the state has to be sent to the radio control software with a low latency, otherwise the user experience will suffer. I am afraid, that handling the rotary encoder state in LUA would not work reliably if overlapped with the WiFi processing, which is mandatory.

Would it be possible to integrate a rotary encoder routine into the firmware? Ideally, I would enable the rotary encoder on two input pins and then I would either register for a rotary encoder state change event, or poll for the change. Then I would get either an absolute value (a 16bit int with wrap around would be ok), or an increment since the last call.

Thank you,
Vojtech