Going to try to build helicopter pedals that appear to X-Plane as a Joystick.
I had to purchase a Arduino Leonardo, because only this model can appear to a Windows machine as a Joystick. Arrived today from Amazon (keyestudio), about $15.
Tom Stanton did something similar, using Hall effect instead of a potentiometer.
Arduino Joystick 2.0 Library Shows use of Arduino Joystick library, including means to rename device to allow multiple USB devices
How to Build a Button Box Shows how to wire 4 rotary encoders and how to multiplex switches to allow more buttons than input pins.
Purchased 3 Arduino Pro Micros from Amazon - HiLetgo 3pcs Pro Micro Atmega32U4 5V 16MHz Bootloadered IDE Micro USB Pro Micro Development Board Microcontroller Compatible to Arduino Pro Micro Serial Connection with Pin Header
I purchased these because they appear to Windows as a Joystick, and are smaller than Arduino Leonardo. Since I only need one axis, via Hall Effect sensor, this device should suffice.
According to the diagram, this can be converted between 5V and 3.3V device by shorting the J1 pads on the PCB.
Description:
Features: * ATmega32U4 running at 5V/16MHz * Supported by Arduino IDE v1.0.1 * On-Board Micro-USB connector for programming * 4 x 10-bit ADC pins, 12 x Digital I/Os * Rx and Tx Hardware Serial Connections
Note:
Package included: