r/KerbalControllers • • Jun 18 '26

Controller Complete Finally Finished

Well 99% finished - I still have a few bugs in the code to iron out but everything is physically complete and working. Been slowly chipping away at this one for a long time.

436 Upvotes

25 comments sorted by

6

u/Koddra Jun 18 '26

Wow this looks awesome! Is there any chance you might post some images of the inside as well? I'm really curious how you wired all of that. Also, what microcontroller are you using?

6

u/Night-Caps Jun 18 '26

Yeah I've got a picture but I cant seem to reply with it for some reason? Its got an arduino mega but also four mcp23017 I/O expanders to handle all the buttons and lights. I designed the case to be hinged at the back so its easy to open up and work on

2

u/Koddra Jun 18 '26

That's really nice, did you also solder all of the connections one by one or did you use some connectors? Btw. where did you get those rectangular buttons with the light inside them? I was thinking of building a controller as well but most buttons that I found were made out of metal and were quite expensive.

4

u/Night-Caps Jun 18 '26

Some of the buttons/switched were soldered but I mainly used female spade connectors crimped to the wires to make the buttons easier to swap out if necessary and dupont connectors for all the displays. The buttons come from aliexpress and were pretty cheap, like a couple of dollars each. try searching "square LED button" and it should be one of the first hits, let me know if you dont have any luck and I'll send you a link. Youll find they all say they're designed for 12v but work fine with 5v from an arduino

→ More replies (1)

4

u/the_economy_fools Jun 18 '26

This is awesome. Can I ask about the dials in the top left corner. I am doing a very similar thing at the moment.

Are they volt meters? I am driving mine with a mux into a DAC into the meters. Wondering if you’re doing something similar

4

u/Night-Caps Jun 18 '26

Theyre actually ammeters, 10ma ones. I just run one of the PWM pins through a resistor in series with the ammeter that draws just over 10ma at 5v (390ohm I think I used but easy enough to calculate) then set a max pwm output value so the needle was fully deflected at that value. Then you just map whatever data you want from 0 to whatever max pwm output you set and send it to the pin. Super easy and works great. The reason you want to use a resistor that draws just over 10ma instead of exactly 10ma because the voltage from the PWM pins can dip a little when you add more components to your project and you may not be able to get full deflection at full PWM output

→ More replies (1)

2

u/drkensaccount Aug 28 '26

Hi, great controller. I'm trying to build one myself, but I can't figure out how to use multiple, 8 digit, 7 segment displays. As long as I only need to use one it's not so bad (except for not being able to make the numbers justify right). But, I can't find a library that I can understand well enough to put one variable on each, cascaded device (even if the library states it's for multiple devices). YouTube was no help whatsoever. It appears to work for you, so I'm wondering which library you used and how you got your setup to work? Thanks.

3

u/Night-Caps Aug 29 '26

I actually ran into the exact same problem as you when I was building it. Those 8 digit displays mostly run on 74HC595 shift registers (apart from some ones in red but I didn't want red) which I found does not play nice with kerbal simpit because it introduces all sorts of timing issues (I think). I instead opted for 6 digit displays which run on the TM1637 driver which are far easier to use and only require one separate pin each - the rest can be daisy chained. I used this library by AKJ7, it however only supported 4 digits so I enlisted a little AI help to adjust the library to work with 6 digits. As for justification you just have to do it in your code. Mine wasn't pretty and was brute forced with way too many if/else statements (eg, offset by 5 spaces if value<10 etc) to get it to be right aligned but hey I don't have to look at the code while playing

→ More replies (1)

1

u/accents_ranis Jun 19 '26

Very cool. Can it be utilized for other sims. Like, say, KSA?

1

u/Night-Caps Jun 24 '26

Nah at this stage it only works with KSP. The code could certainly be modified to work with KSA once that comes out however its going to be a matter of whether someone (hopefully the kerbal simpit team!) develops a plugin/arduino library like the one available for KSP - figuring that out is far beyond my programming expertise

2

u/ImprovementOwn3247 Jun 18 '26

Looks amazing!!! Would you sell it?

2

u/Donnchaidh Jun 18 '26

That is a thing of beauty!

Do you happen to have a bill of materials and/or progress pictures?

I keep itching to make something like that, but never know where to start.

1

u/CaptBrick Jun 18 '26

You’re insane! I love it!

1

u/Geek_Verve Jun 18 '26

Awesome job! Love the overall style. Great selections for the various indicators and controls and really nice layout. I've also got a large, complex controller that's been in the works for a looong time, so I know the kind of effort that goes into one of these bad boys.

1

u/Princess_Fluffypants Jun 18 '26

This is amazing, I am so jealous!

1

u/DauphDaddy Jun 19 '26

Looks great but you’re missing a sticky note

1

u/StitchWitch35 Jun 22 '26

Does it make the game better

1

u/Reasonable-Tip-4991 Jun 27 '26

Looks awesome!! Can u tell me about which warning displays you have in top right corner? I can't see it properly

1

u/CranberryNew7723 Jun 29 '26

I would love to replicate this, if you're ok with sharing the files and sourcing for your parts!

1

u/maxic62 Jun 30 '26

Very nice! What 7 segment module so you use here ? 8s that a complete module with 6 digit ? I only found 4 digit modules on Ali. Thanks for sharing