tsaven Posted September 17, 2019 Share Posted September 17, 2019 (edited) 4 hours ago, BamBam said: ok, so i have belatedly come to realize that i cannot simply copy somebody's code without having their exact setup. So, I will be starting from the Demo17 code. That Demo17 code works just as it should. Here is my rough plan... I have a USB-HID interface board that I will be using for the actual input into the game. that lets me keep the input functionality separate and simple. I plan to use serialIO to drive my indicator LEDs and a set of 7 segment / 8 digit displays to show altitude, apoapsis, periapsis, velocity. and some analog guages to show fuel levels, and atmosphere density. It means that i will have to have two USB cables connected but that is no big deal. So, instead of somebody to solve my problem for me, what i need is a really basic tutorial on how to make the starter code in Demo17 to do what i tell it. My programming skills are all from 1994 when we did Turbo Pascal in High School. Since then i have not done anything more than write batch files and a few really simple if/then operations. So I have basically zero experience with Arduino. My 3D printer ran briefly on Marlin but even that code was already setup and you just had to define a few variables. Dipping into some major wishful thinking here, I saw on this or maybe on the subreddit /r/kerbalcontrollers that somebody had made a sort of DSKY display that used a small LCD panel. That was beautiful, and if I could figure out how that was implemented that would be a major upgrade to my sort of simplistic plan at the moment. Taking the demo code and building on it is exactly what I'd recommend, that's how I've gotten started. Take a look at my starter controller a few posts up, I've gotten something very similar to what you're describing. 7-seg displays for the Ap/Pe/Alt/Velocity, some analog gauges, and nice big buttons for staging. As for learning the Arduino environment, I wholeheartedly recommend the Sparkfun Inventor's Kit as well as the matching Guidebook. It's exactly how I got started into the world of micro-electronics, and will give the building-blocks to start learning the Arduino language (which is really just C++ with some additional functions/subroutines built in). Sparkfun (while they are expensive) also has a bunch of add-ons and products that will make your life much easier, such as their Serial 7-Segment Display and the matching Hookup Guide which makes hooking up a lot of 7-segment displays vastly simpler. Their support and guides on how to hook things up have basically saved my ass, almost all of my controller is built off of chunks of their demo code that I've modified to work with my own variable names. Edited September 17, 2019 by tsaven Quote Link to comment Share on other sites More sharing options...
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.