buddynawer.blogg.se

Kerbal space program game demo
Kerbal space program game demo







kerbal space program game demo

Once you've set the COM port number and have a space in the textbox, you're ready to try it out!.

kerbal space program game demo

Since the staging button in Kerbal Space Program is the spacebar, we want a single space in this textbox. The listener will simulate keypresses for whatever is typed in this box. Next, position your cursor in the textbox and press the spacebar once. If you don't know what COM port your Arduino is using, open the Arduino editor program and check the bottom-right corner. Now, set the COM port number to that of your Arduino. Download, unzip, then launch the program.

kerbal space program game demo

Now we need to set up a listener on the computer to translate the "1"s coming from the Arduino into key presses that Kerbal Space Program will recognize. Now we have a physical button that sends a message to the computer every time it is pressed. For this project, the demo version works fine so if you don't own the game yet you can still make and test this button. Of course you will also need a copy of Kerbal Space Program.

  • Jumper wires or several lengths of 22 AWG wire to connect the components.
  • A momentary pushbutton switch (Any pushbutton will do.
  • Arduino with corresponding USB cable (I used an Arduino Uno).
  • Here are the things you'll need to get your own button up and running: You could make a button that brings up a specific tool in a photo editor or maybe one that refreshes the webpage in your browser. It's really quite simple, and the whole project could easily be adapted to any other purpose by changing the desired keypress. On the computer, a lightweight program listens for the signal from the Arduino and sends a simulated spacebar press to Kerbal Space Program (or whatever program is currently active on the computer). The Arduino waits for the button to be pressed and then sends a small message over USB to my computer. Here's a basic overview of how my setup works.Ī pushbutton switch is wired to one of the pins on an Arduino.









    Kerbal space program game demo