Cleric-K / vJoySerialFeeder

Feed Virtual Joystick driver with data from a serial port
GNU General Public License v3.0
252 stars 55 forks source link

Rotatory encoder implementation #69

Open Prabh11 opened 1 year ago

Prabh11 commented 1 year ago

Hey dev, I want to know if there is any way to add a rotatory encoder in Vjoy serial feeder because the rotatory pot has its limitation it can't rotate more than 180 degrees. I want to use a rotatory encoder to accomplish this but I didn't find any way.

Cleric-K commented 1 year ago

What is the exact type of the rotary encoder that you use? To use the encoder first you should get it working in Arduino (I assume you're using Arduino). Can you make it work there?

Prabh11 commented 1 year ago

I am using Arduino Leo, Right now there are two options. In your code, you can take input from the potential meter and buttons. I wanted to use a rotatory encoder but didn't find any way to use it.

The encoder I used - KY-040

Cleric-K commented 1 year ago

Have you tried this: https://peppe8o.com/ky-040-and-arduino-rotatory-encoder-wiring-and-code/