Jump to content

faeryty's control panel adventure


faeryty

Recommended Posts

So having not played KSP for months due to lack of time, I decided to give myself some motivation to do so by building my own control panel/simPit (we'll see how far I get as to what to call it).

I'm really just approaching this hapharzadly with no real plan. I've collected a bunch of components from ebay ranging from necessities like resistors and potentiometers through 7 segment and thumb-joysticks up to gLCD. Not really got any concept of how I'm using most of it yet. I also have clones of both arduino uno and arduino mega to drive things and will be using zitroenen's plugin to drive things. And have some dibond to make my panels from.

I'm a developer by trade, mostly a full stack web dev but do a bit of everything using various languages like C, python, Delphi and java for my job so I'm reasonably competant at switching between languages and picking up new ones. On the other hand, I failed electronics in school so this is going to be fun.

Here's the current state of my project:

DSC_0183_zpsoxb2sdn7.jpg

Yep. It's a breadboard with two x 4 digit 7 segment displays driven by a max7219 that shows altitude. I feel accomplished.

And here's the link to the github repo of my code.

Edited by faeryty
Link to comment
Share on other sites

Well, it is not as if the hardware needs to be terribly complicated to be hugely useful. Replace altitude with radar altitude and add a throttle with a rotary potmeter, and you have the most important stuff. You will wonder how you ever managed to land without it once the system is up and running.

Link to comment
Share on other sites

Thanks for the replies :)

I have some slide pots sitting around that I'll probably use for a throttle, but I do have an off the shelf HOTAS that I can use for input for now anyway, so at the moment I think I'm on a display all the telemetry kick and will come to controls later on.

Actually no, now I've understood how a rotary pot would work as a throttle that's what I want to do. Note to self: krewmember has the right idea.

I vaguely have a design for my first panel, which will have 3x 8 digit seven segment displays, LEDs for K, M and G for each of those displays (until I get some 16seg displays that I can use to display the actual letter) and a switch or 3 to control what mode the panel is in. Planning on having 3 modes that match in game - orbit: showing Alt, Ap and Peri, surface showing rAlt, vert speed and time to suicide burn, and rendezvous/docking showing distance, relative velocity and something else.

That's the plan for this first panel at the moment. But I suppose software can always change that without too much hassle...

Edited by faeryty
found some throttle inspiration
Link to comment
Share on other sites

Okay, so this is where my complete lack of electronics understanding comes into play.

Each segment of my 7seg displays require around 20mA. So a fully lit digit, i.e. an 8 ignoring any decimal points for now, 140mA. Am I right in thinking the max7219 only actually lights one digit at a time, just looping through them so quickly that they look as though they're constantly on?

My understanding is that the +5V pin of the arduino can supply up to 500mA. Given i'm currently powering by USB and that itself can only supply 500mA, the max current sourced from the +5V pin is less than that nominal value since I assume the atmega and other components on the arduino also consume some current. If I want to hook up all three 8 digit seven segment displays, that would require 420mA being available, plus around 20mA x 3 for the multiplier indicators, and another 20mA for the mode indicate. There's 500mA right there. I'm definitely going to need some external power, but have no idea where to start with that. I have absolutely no understanding of elementary electronics but I don't want to fry my circuits.

I guess I need to take into account voltage of a power supply, max current and AC/DC (and I assume DC is what I need for the vast majority of things) and but what else? Do I need to do anything special to protect my circuits if I hook up an external battery for example? Do I need to do anything special because there will not only be an external power supply but a usb as well?

I'm just gonna store a link to this here, because I want to be able to reference it. Good old stack exchange, a developers best friend.

Edited by faeryty
Link to comment
Share on other sites

There is a very informative page on the Arduino website detailing the power consumption of MAX display drivers. Basically, if you need more than one 8 digit display, you need external power. I use a 12 V 1.2 A DC power supply I had lying around, it plugs directly into the drum connector on the Arduino. It then limits the voltage to 5 V. There is quite some waste there, but it actually handles a bit more within safety margin. http://playground.arduino.cc/Learning/WhatAdapter

Link to comment
Share on other sites

Thanks for the info. I shall have to seek out 12v wall wart. Surely, surely I have one lying around the house somewhere.

In other news, I officially hate soldering. I evidently cannot think in mirror images or follow my carefully drawn out circuit diagrams. I think I need to invest in some acetate and coloured markers for it so I can draw it, colour code the wires then turn it over and not end up desoldering half of my wires when i realise I've reversed some of them but not the others.

Or maybe Ill just get some supplies to etch my own pcbs.

Link to comment
Share on other sites

I think that soldering is the one thing I really learned by doing prototyping for my second controller. I always draw my diagrams solder side up, so I can follow them as they are drawn, and use ten different color wires (although I am running out). For complicated projects, I tend to cross out the wires on the diagram as they are soldered, and go about slow and systematically.

It is also a place where the quality of hardware really makes a difference. I switched soldering iron twice before I settled on a 12 W with a tiny tip, and a good solder with lots of rosin to make it stick. I got a "third hand" (actually, two sets because one has the tweezers too far apart) to keep things in place while I solder. When I started, I had been doing a little bit of electrics, but it was my first adventure into electronics, so I had to learn to use veroboards. I found some with same layout as breadboard that are highly useful, as well as ones with 3 hole strips that I cut up for mounting connectors on my panel. Further, shrink tube wrapping have some commonalities with close air support, making your connections a lot more robust than they would otherwise have been.

If you have difficulties making the solder joints hold, try to watch a couple of youtube videos for hints. I made a world of difference for me, as well as a lot of practice on now discarded boards while trying to figure my controller.

Link to comment
Share on other sites

  • 2 weeks later...

I've given up on point to point soldering now. I have some copper clad and etchant on their way, and have designed my PCB in fritzing. So I'm going to have a play with toner transfer and etching soon.

I now have a concept for my controller though. I'm going steampunk. Steampunk TARDIS console to be specific. I have various ideas floating around in my head, elements that have crystalised into solid plans include lots of nixie tubes. I even have my first set of IN-14 tubes to make a steampunk version of my altimeter. I'm also planning a peripheral DSKY with a load of little nixies, which will plug into each panel (6 of them of course, given it's a TARDIS console).

Panels I'm planning are listed below, subject to a lot of change. I'll be making them one at a time, so things may well get shifted around a lot. Still, it should be fun.

Main flight controls

----------------------

Altimeter - nixie tubes

SOI Display - I have a plan but no idea how to describe it. Basically a rotating display attached to a servo.

Throttle - large lever

Stage - not sure yet - possibly some sort of flush like device, possibly a foot pedal. Possibly both, connected mechanically.

Flight stick - undecided as to how to approach it

DSKY port

Steam gauges for useful things like fuel remaining, battery status, velocity. I say steam gauges. I'd love to actually run them on compressed air, but for now they'll just be pretty ammeters mounted on copper tubing.

Docking

---------

Array of 6 levers for translation and transformation.

Docking Port Alignment Indicator - I'm dreaming of a small monochrome CRT with a display kinda like the eponymous app.

Some edgewise meters for telemetry.

DSKY Port

Auxilliary Systems

---------------------

Atmopheric flight

--------------------

Roving

--------

Panel 6?

--------

Edited by faeryty
Link to comment
Share on other sites

I just put together a nicely comprehensive compilation of info on some of the nicest edgewise meters for the application. Rather than repost the same data, I'll just link the thread. OP had specifically asked about the Apollo/Shuttle edgewise fuel meters, and was wondering if there were similar meters.

http://forum.kerbalspaceprogram.com/threads/104969-Custom-Controller-Parts?p=2098492#post2098492

Haha! Another nixie fan! :D

As much as I LOVE nixies, they wouldn't fit the look I'm going for.

It's okay though, my computer has nixies to make up for it! :sticktongue:

Edited by richfiles
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...