Jump to content

My KSP Gizmo (Arduino, Serial_IO)


-ctn-

Recommended Posts

Hey everyone! I've seen tons of awesome hardware projects floating around here, and since I have a couple of Arduino Uno boards and some components sitting around (from the A.A.T.L.A.S. Short Film, which is in hiatus...) I thought I would try my hand at doing some type of hardware gizmo for KSP.

I'm very much a newbie at all of this - Arduino programming, wiring ect - however, I have in the past built an electric guitar, several effects pedals and even refurbished a big ol' tube amplifier - so electronics aren't TOO unfamiliar to me; however this is my first Arduino project.

So the original idea was to make a tiny display box - that is, without any inputs or switches. It is meant to display information that is helpful at a glance - and as such, I've tried to incorporate things that would have helped me not fail previous missions...

Here is the preliminary design:

ksp%20companion.jpg

So on the left side is the classic annunciator panel, or warning lights. To the bottom right are LED bar-graphs that will display current fuel levels and electric charge, and above them is a 7-segment LED digit display that will show altitude to surface (Radar altimeter).

While none of those components are set in stone (particularly the digit display... might change that), that is the basic outline for my little gizmo - small, simple, informative, and neat to look at. Some of the control boards I've seen on here are mighty impressive, but may be way beyond my skill level (so far.)

Anyway, with the help of zitronen's Serial IO code for Arduino, I was able to get the main control LEDs working pretty quickly.

With the help of Sputnix, the alarm system was figured out - when a craft is low on any type of fuel or electrical charge, the ALARM light will turn on. When you refuel (or lose the stage that's low on fuel... such as spent boosters) the light will turn off, unless you are still low on fuel. This combined with the LED graphs will make for a quick way to find out what's wrong. Big red LED turns on? Check your levels!

Later tonight or tomorrow I will probably order the components for the bar graphs and see if I can get those working.

Here's a video of it's functionality so far - (warning, it's a cell phone video!)

https://youtube.com/on4kvQHF-O4

Thanks for looking! When I'm all done I plan to upload the code for anybody who wants to try it or dissect the coding.

Also, thanks to zitronen and Sputnix, without their help I would probably not even have it working yet (or even attempted it.)

And of course, comments/suggestions/criticism is welcome.

Link to comment
Share on other sites

All I can recommend, is use the Thread Display Options at the bottom of the page and search by the [Hardware] prefix. See what others are doing, get ideas, and all around build up a list of all the different features you want to add. Add each one in as you go, and figure out what kind of enclosure you want. This is a GREAT project! I know you'll love it when it's done! :D

As for being a readout display, if you have the funds for some more LED readouts... Consider Ap, Pe, Time to Ap/Pe/SoI/Landing (you can always use one display for this one, as only one can be "next" at a time. The arduino can toggle mode based on the which item has the shortest "time to event" data, and indicate which mode you're in with an LED readout, or a text abbreviation on the display (Ap, Pe, SI, Ld).

Other useful data can include Velocity, Altitude (sea), and Inclination. If you did all the suggested displays, you'd be looking at 7 LED display readouts.

Another cool option is to buy some transparency film compatible with your printer. Print out labels (Ap, Pe, Radar Alt, etc) You can get VERY CHEAPLY at many dollar stores or office supply stores, VERY cheap colored plastic folder and binder inserts. If you get some red green and yellow ones, you can print your text labels, cut them out into little squares, and then cut the color panels for them too. Behind your panel, you can use them as indicators, and light them from behind using LEDs. I have found that to be one of the most ridiculously cheap ways to to the annunciator lamps. That can cover not only your Master Alarm, RCS, SAS, etc... but it can also serve as permanent labels or even mode labels for your LED display readouts. Or, if you want to spend the money, you can add an extra LED digits and hard wire them to light up Ap, Pe, etc.

if you want displays that can change modes, you can control them one of two ways. You can drive them just like the regular displays, or you can drive them like single indicator LEDs, by connecting diodes to the individual segments you want lit, and having a different set of diodes per each indication mode. This is probably cheaper than an LED driver chip of you only have 2-4 modes to display.

Just a few ideas for potential upgrades, if you find them useful! Always keep your options open!

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...