Close

Fly by wire

A project log for KAPCOM

Yet another hardware controller for Kerbal Space Program. Leveraging Telemachus, Python and Arduino to drive joysticks, buttons and displays

lawnmowerlattelawnmowerlatte 02/09/2015 at 21:130 Comments

I finally got around to troubleshooting the joysticks. It was actually much easier than I'd feared. The worst of the issues were introduced by the calibration. The main problem was that I wasn't using pullup resistors. Since I started using pullup inputs, the values are good enough not to need to calibrate anyway.

I did a bit more work to make axes investable to compensate for mounting and preference. I also required the joystick buttons to ground rather than 5v.

Now the joysticks work are tested and work great in game. The refresh is definitely fast enough.

While demoing this to some coworkers (shoutout to Jon for the inspiration for this project) I had a problem with the script thinking the antenna was disconnected. I think I might have to add some reconnect logic rather than waiting for user input.

Very pleased with progress thus far. Next up: buttons with indicators. This will be my first foray into displaying any sort of game output.

I was looking at other projects and I'm starting to like the idea of using a DSKY interface to interact with the displays (both 7-segment and bargraph). It should be fairly easy once everything is done, basically I would have a keyboard interface that would program which API token to use for a given display. I'm not thinking of going really overboard with realism like KK4TEE did, but I was planning on making some kind of input to select what is displayed. Originally, I was going to use a rotary switch, but the DSKY interface would be much more versatile. And cool. Perhaps something for version 1.5.

Discussions