Close

Things I've learned about analog human input devices.

A project log for Kerbal Spaceship Potato

This is an input focused control panel for Kerbal Space Program.

matthew-peverillMatthew Peverill 11/24/2019 at 16:090 Comments

Lots of troubleshooting these past few weeks. Learned some good things and some dumb things:

1. Just say no to parts without datasheets (my throttle slider did not have a linear taper as advertised).

2. Don't test analog without ALL the pins being hooked up or grounded. Doing it piecemeal will just lead to confusion, because you won't be able to tell what's a floating input and what's an actual control.

3. Lots of people will tell you to use an ADC instead of a multiplexer. They are mostly talking about applications where more speed is required than we need for <20 human controlled inputs. The multiplexer can work just fine.

4. Joystick controllers typically don't have a very precise 'center'. So when you plug everything in without touching it, everything will have a slightly different 0 mark. This can be controlled in software.

5. Don't try to get fancy with hard wired switches if you need to switch inputs. Just do it in software - the switches will introduce spikes in the signal, and the wiring is a pain. (For my project at least) there are enough extra inputs to do this without trouble.

Discussions