so ive done a few projects on an arduino but this is my most challenging yet. I want to make it so multiple rotary encoder modules send their data multiple times a second into flight simulator x (me and my dad are building a plane sim). I probably dont need help with the code, but i just want to know how you guys would approach this project. ive never had to send data anywhere but serial monitor, but have looked into making a keyboard and know that you have to flash an HID firmware, im wondering if this is a similar situation.
No.
You just need two pins for each encoder. It is better if at least of one of those pins can generate an interrupt. Best results with both being able to generate them.
Otherwise you have to make sure you can get to read each one of them at about 1000 times a second to avoid missing any pulses.
have a look at QEI Encoder library for the ESP32 using interrupts
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.