Close

Wiring

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 04/01/2015 at 05:400 Comments

Not much to report. I wired a bunch of harnesses up to the buttons. This will work better than the quick disconnects I had been using. While the connection between the disconnect and the button was okay, I was having problems with the wire falling out of the disconnect. No amount of crimping was helping, I think it's because the wire is simply too small.

Anyway, I got all the LED buttons and switches wired up. The only thing left are the 10 action buttons. Those I'll get to tomorrow. After that it's mostly a waiting game until the boards arrive.

In code news, I implemented some extra display options for the bargraphs. Most were simple variations on how the colors are selected, but I also implemented one which projects increases/decreases and marks those in a separate color. I'm particularly proud of this one. It's got a configurable projection duration as well, since I imagine I'll probably have to tweak that as I go.

While I did that, I also added code to the bargraphs and displays which check whether the display will change by comparing to the previously used values. This should cut down on unnecessary display updates.

Discussions