I could re-create the stellapator
I looked into that, too.
The ATmega32U2 can handle joysticks (standard encoder), keypads (matrix encoder), and driving (
optical rotary gray-code encoder) controllers -- all features (except gray-code) already implemented in KADE.
Haven't confirmed Atari driving controller compatibility on the KADE optical firmware, though. The only Stelladaptor feature you wouldn't be able to include with this AVR is support for analog paddles. (analog encoder)
A/D conversion is needed for an analog encoder -- the ATmega32U4 (KADESTICK used this AVR) and higher have A/D conversion capability.
The other challenge is that the Atari paddles are 2-wire (variable resistor) configuration instead of the more commonly used 3-wire potentiometer (voltage divider) configuration.
Scott
EDIT: D'oh! Forgot that the
driving controller (4th diagram, Atari 2600 Accessories, top center) actually outputs gray code for a rotary encoder from a 16-position rotary switch. What was I thinking?
Thanks for the reminder, Howard.
Writing/adapting a gray-code encoder shouldn't be too hard for someone who knows how to write code.
EDIT2: Successfully tested the Atari driving controler with an Arduino Pro Micro mouse firmware. The 2-bit gray code encoder pattern is the same as a quadrature waveform -- connect the white (pin 1) and blue (pin 2) wires as data lines, and the black (pin 8 ) wire to ground for a typical active-low encoder
or to logic high voltage if you have an active-high encoder.