Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by hugopeeters

  1. Like I said on the Instructables website: fantastic result! I am honored to have inspired you to make this. And happy that you’ve actually succeeded.
  2. Oh boy! I hope it runs on Macos. Otherwise, I'm gonna have to buy a PC again...
  3. I'm trying to help Tabb out here, but I forgot how to set Visual Studio up with the proper library references. I'm missing Unity (although installed) and Assembly-CSharp. Anybody on here with a tip for me? EDIT: I copied over my Includes folder, which I was smart enough to save way back when I built my KSPIO fork and added the required files to the references. It builds! Now let's hope it works.
  4. MDF sucks up paint like crazy. You need to use primer. I used a high gloss spray paint which worked fairly well.
  5. Hey @Roland108, that's cool! The LED gauges have 680 Ohm resistors (blue, grey, black, black, brown) for all colours except for the yellow LEDS, those have what appear to be 510 Ohm resistors (green, brown, black, black, brown). It's best to test it out on a breadboard first, so you can change them around until you are happy. The Arduino code? I don't get any warnings.
  6. No, all I am saying is that the code you are looking for (how to register the joystick button press) is not specific to KSP, but to your OS. In your example script you do the same thing. "using System.IO" means you are loading the libraries from your OS that manage input and output. You detect the keypress with "Input.GetKeyDown(_keybind)", this is code relevant to your OS that works because you loaded the library. So you are looking for the code that registers joystick presses. I think it is something like this: "Input.GetKeyDown(KeyCode.JoystickButton0)"
  7. The part you are missing is how to listen for joystick inputs in a mod. That would be dependent on your Operating System. That part has little to do with KSP, you can search the internet for code examples for your OS. I think the programming language for KSP mods is C# (somebody correct me if I'm wrong).
  8. Wow did this thing blow up... like a Kerbal rocket with not enough struts. Standing on the shoulders of giants here, thank all of you for the inspiration and the majority of the code!
  9. Wow, this is taking off like a pair of S1 SRB-KD25k's! Hackaday.com is featuring my build now too. And it will be on makezine.com this week or next as well.
  10. You can read more on how to build it here: https://www.instructables.com/id/KerbalController-a-Custom-Control-Panel-for-Rocket
  11. They put the blue screen in the IVA view in stock as a placeholder for mods that can display stuff on those screens. Pretty cool that they pay tribute to the kOS mod like that. On seconds thought: maybe the blue screen was there first, and the mod used the name... <-- hey look there _is_ a blushing kerbal emoji!
  12. Can you please call my manager and get me a raise? Seriously, thanks so much for the great compliments. I've done it all for the love of Kerbalkind. And buttons. I like buttons.
  13. Thanks! Great suggestions. I already have the smaller black switch as a debug mode though. I am thinking about writing a demo routine that can be toggled with the power switch. That way I can show it off without running the game... SAS Modes: yes! I would love that. It's stock on KSP 1.2.2. Only two mods installed are KSPSerialIO and Chatterer. That's also stock. Really funny though! Thanks richfiles! I can use all the tips and tricks regarding construction... Is there a blushing kerbal emoji? Thanks for the compliments guys!
  14. IT. IS. DONE! More details here: If there is any details missing from my thread, let me know. I'd be happy to explain things in more details.
  15. Assembly complete! Whoohoo! Up, up and away! You can tell from the pics I damages the boards a bit trying to assemble it. The screw holes are not in the correct places and screwing or nailing into the ends of the boards causes them to split. I solved the mounting of the front plate by hammering in two nails slightly further in, so the catch insode the board. Pressure from the cables bending inside, and the USB cable being fixed in the hole, keeps it securely in place. You can also tell the unpainted MDF becomes darker where you touch it a lot. I'm fine with a worn out look it will get quickly, but you might want to use a clear coat of paint if you want to keep it neat. Now it is time to play a full campaign with the controller, tweak the code along the way and maybe add some software-based improvements. If anybody has any suggestions for the "power" switch, let me know. It's hooked up to the Arduino, but not used yet. Same goes for the button on the translation joystick. What's going to be my next project? An add-on module maybe? Sell or give away this unit and rebuild it from scratch (with improvements)? ... Who knows. A little detail I added, just in case it ends up in a goodwill store one day
  16. Finally, after another missed-delivery-while-I-was-home-stupid-mailman-grrr, it is time for the final assembly! I'm not great at woodwork and stuff, so lot's of glue, some screws, and hope for the best. I'll let it dry for a while before I fix the front panel to it and show off those vanity shots.
  17. Nice result! PS: did you run out of caliper batteries? Running it off the bench power supply?
  18. I was curious about the exact cost for my controller. I bought plenty of excess parts during the build, as well as invested in some tools, but somebody that might want to recreate my controller could try to limit cost and buy only the following: Item USD EUR amount TotalEUR TotalUSD Metal pushbutton $ 4,95 € 4,16 1 € 4,16 $ 4,95 LCD $ 24,95 € 20,96 1 € 20,96 $ 24,95 Slide pot knob $ 0,95 € 0,80 1 € 0,80 $ 0,95 Slide pot $ 2,95 € 2,48 1 € 2,48 $ 2,95 Toggle switch $ 1,95 € 1,64 2 € 3,28 $ 3,90 Safety switch $ 2,95 € 2,48 2 € 4,96 $ 5,90 Shift registers $ 0,64 € 0,54 7 € 3,78 $ 4,50 LED bars $ 0,93 € 0,78 5 € 3,90 $ 4,64 4-axis joysticks $ 17,52 € 14,72 2 € 29,44 $ 35,05 Buttons with LED $ 3,57 € 3,00 10 € 30,00 $ 35,71 Rocker switch $ 0,60 € 0,50 1 € 0,50 $ 0,60 Rocker switch small $ 0,54 € 0,45 1 € 0,45 $ 0,54 protoboards $ 0,95 € 0,80 4 € 3,20 $ 3,81 Toggle switch small $ 0,71 € 0,60 1 € 0,60 $ 0,71 arduino mega $ 45,95 € 38,60 1 € 38,60 $ 45,95 lasercutting faceplate $ 48,24 € 40,52 1 € 40,52 $ 48,24 lasercutting box $ 52,38 € 44,00 1 € 44,00 $ 52,38 Total € 231,61 $ 275,73 UPDATE: lasercutting designs uploaded here: https://github.com/hugopeeters/KerbalControllerLasercut
  19. Thanks! And thank you for the great plugin that makes it all work. I am now diving into the details of your work so I can make my own tweaks. I have some coding experience, but I am by no means a software developer.
  20. I was able to get the last two metrics to display (maxoverheat and time to next maneuver node) using dtostrf(). Thanks for the tip guys! In other news, I have drawn the rest of the panels for the enclosure and am getting a quote from the laser cutter. These should feature the KSP logo as an engraving!
  21. Thanks! My first basic prototype was probably half a year ago, so the posts are going faster than the actual progress. It also helps that I did similar tinkering before so I didn't have a cold start. And thanks for the suggestion! I did think about solving it that way, but didn't get I right the first try, so I used a workaround :D. I have saved your suggestion as an issue in my github, so I won't forget to try it out. Oh by the way, I have decided to get the side panels for the enclosure laser cut also. It's really affordable (for me) and I would never be able to saw something myself so accurately. Also, it gives me the opportunity to get a logo engraved this time around! Stay tuned for the result!
  22. Some of the prices are per part, so need to be multiplied by 2 or 5 or 10. And the cost of the Arduino and the lasercutting are not listed, nor the shipping cots. But all in all, it's not too crazy. I surprise myself with the progress I am making. I am usually very good at the first 70% of learning new things or making something. And than I lose interest and it sits in a corner collecting dust. Not with this, though! I can wait to work on it, I sometimes have a hard time getting to sleep because I am thinking about the next steps. I have "written" the code in my head multiple time before I got the time to sit down and type it out. Your build is taking a bit longer, but it is sooo much more complex! It is going to be amazing once it is done. I'd be happy to help you with the coding.
  23. So @mr. engino, tell us more about your plans for the KONPAN! I have almost completed the physical building part of my controller and am now working on the final bugs and features in the code. Time to get more inspiration for an expansion module!
  • Create New...