ShinyThinks
Projects Blog About

Star Citizen Custom Controller

After seeing a couple posts of people's custom button boxes on reddit I knew I had found my next project. I've been doing quite a bit of Arduino and small electronics lately, and this was the perfect fit. So off I went to Amazon, ordered a bunch of stuff I thought might be cool / useful and started piecing things together.

Designing the layout I wanted to use with some rough idea of what they were for.

Got all the holes drilled, components mounted, and soldered. Ended up having to change some of the wiring due to splitting the inputs between the Arduino's pins and the expansion modules.

Put some cable wrap on after being informed my wiring was a bit of a "rat's nest," this is before I had solidified how I was mounting the Arduino and IO expanders.

Made a second smaller plate to mount the Arduino, terminal board, and PCF8574 IO Expansion Boards. Hot glued them in place, ran one row of inputs to the Arduino, and the other two rows to the expansion board. Had to strip off most of my wire cover, but the couple inches left makes for a nice flex point between the two plates.

The Arduino Micro and terminal adapter board. Only the Arduino Micro (and the Leonardo I believe) can be used to emulate a USB input device on Windows. I got the terminal adapter board to make it easier to move inputs around originally, but since I ended up soldering to the IO expanders they are still pretty fixed. I did have to unsolder and remove the four rightmost pins on the Arduino to make it fit since the board is designed for a nano. Other than having two extra analog pins the rest of them line up and work fine.

Some good ol' cable management. Much cleaner and less likely to put undue stress on the solder connections while I wrangle it into some sort of enclosure.

And the working product! Was originally going to set it into some sort of project enclosure, but ended up getting impatient and just mounting it to two pieces of plywood with some feet. It added enough heft to it that I can lift the switch guard and rotate the somewhat stiff selector without issue.

Eventually I'll get a better enclosure for it, probably grab one off of Hammond mfg or get someone with a larger 3D printer to make one. The engine start and black/red button (that I'm going to use for quantum jump) have leds in them that I don't currently have hooked up to the Arduino, but once we get some sort of API into Star Citizen hopefully I can tie them to engine state and jump spool/ready state.

The controls are:
Power on switch, flight ready button, 3 misc buttons, zoom rotary encoder, 3 misc buttons, quantum spool switch, quantum jump button
Hat switch + center for shield distribution and reset, engine, shield, and thruster power switches, power distribution profile selector, misc selector
Flare fire button, flare select, 7 misc toggle switches, self destruct switch, eject switch.

It works! I mapped everything to a button in the Arduino code (no rotary encoder as zoom in this screenshot) so that I can easily bind to functions in Star Citizen. Unfortunately without an API this means the switch positions can get out of sync with the actual ship status easily. If by the time of release / they make an API there still isn't a way to read / set state by API then I'll probably make a new version with only toggle buttons. 

And the proof that windows recognizes everything!

Project Materials

1 Terminal Expansion Board www.amazon.com
3 PCF8574 IO Expansion Board www.amazon.com
1 Rotary Encoder www.amazon.com
1 4 Position Rotary Selector www.amazon.com
1 Red Ring Momentary Push Button www.amazon.com
1 Engine Start Momentary Push Button www.amazon.com
5 Heavy Duty Toggle Switch www.amazon.com
1 12 Position Rotary Switch www.amazon.com
1 5-Channel Rocker www.amazon.com
1 Arduino Micro www.amazon.com
7 Red/Black Momentary Push Buttons www.amazon.com
2 Red Cover Toggle Switches www.amazon.com
8 Small Toggle Switches www.amazon.com

Project Tools

PCF8574 Instructables www.instructables.com
Joystick Instructables www.instructables.com

Image Gallery

1 Comments

Derekbropy
Aug. 5, 2019, 3:54 p.m.
A writer is essential to take the thoughts mentioned in the outline and expound them. Feelings that will save you from writing your book. Writing an essay is a tough issue to perform for a student and also for a standard man who doesn't possess the specific understanding of the language and the grammar that ought to be utilised within an essay. Every story should have conversation. As a student, you should not just think about taking a look at classification essay, in addition, it is wise to consider composing a sample essay that could possibly be considered a sample paper by other students. You shouldn't be worried because our faculty essay writing company is the best way to buy college essay services that are perfectly tailored. Online services are somewhat more reliable and affordable too. You might also need to indicate more study or comment on matters that it wasn't possible that you discuss in the newspaper. Before writing really good article, one needs to clearly understand what sort of essay he or she's meant to write whether it's a journalism article, professional post, review article or post for a blog because each one of these kinds of articles have their private defined writing styles. In case you have any financial essay writing difficulty, let us know for we shall aid you with all writings which are quality and which are free of plagiarism. Another aspect to consider is that by applying an essay service like this you, you also run the danger of your instructor having a look at the article and finding that it seems nothing like your prior efforts. After the student doesn't have a private opinion, then they ought to simply earn a option to choose a subject, and select pro or con. Very good essay writers have the capacity to give aid to their students if it's required. Regardless of what the impacts, the expression paper writing service industry will nonetheless grow. Internet isn't only alternative technique to conventional processes of music supply, but additionally a fantastic prospect for artists and music-recording businesses to expose those goods to broad public. Many writing companies won't turn off clients if they're just under what they're asking. <a href=http://damayab.com/%d8%af%d8%b3%d8%aa%d9%87%e2%80%8c%d8%a8%d9%86%d8%af%db%8c-%d9%86%d8%b4%d8%af%d9%87/do-my-essay-cheap-no-longer-a-mystery/>buy masters dissertation</a>