annabunches.net/content/posts/2015-11-06-the-orange-box-custom-usb-flight.html

22 lines
17 KiB
HTML
Raw Normal View History

2016-04-11 22:01:00 +00:00
---
2016-05-04 18:41:25 +00:00
excerpt_separator: <br />
category: technology
2016-04-11 22:01:00 +00:00
layout: post
title: 'The Orange Box: A custom USB Flight Control Panel'
date: '2015-11-06T11:05:00.000-05:00'
author: Anna Wiggins
tags:
- Programming
- electronics
- 'Elite: Dangerous'
- maker
- diy
- Technology
modified_time: '2015-11-06T11:05:16.611-05:00'
thumbnail: http://4.bp.blogspot.com/-DAZG1CkJy9s/VjphmdMmBZI/AAAAAAAAG_s/8R2F-hNYIEw/s72-c/single_switch.jpg
blogger_id: tag:blogger.com,1999:blog-4209116010564764361.post-9195320296970552731
blogger_orig_url: http://www.stringofbits.net/2015/11/the-orange-box-custom-usb-flight.html
---
2016-05-04 18:41:25 +00:00
I play a lot of <a href="https://www.elitedangerous.com/" target="_blank">Elite: Dangerous</a>. And while I use a reasonably nice <a href="http://www.amazon.com/Saitek-X52-Flight-System-Controller/dp/B000LQ4HTS" target="_blank">HOTAS</a>, I've long wanted a flight panel: a bank of toggle switches with LED indicators that would act as a USB joystick. I can only find one company <a href="http://www.desktopaviator.com/Products/Switch_Array/index.htm" target="_blank">selling such a thing</a>, and their solution leaves exposed wiring. (a no-no when you live with cats) Also, their website looks like it is from the 90s and just feels kind of sketchy. (Seriously, guys, if you happen to read this, your website does not inspire confidence)<br /><br />And, anyway, I've been looking for an excuse to learn some basic electronics for a long time. So, I built my own! Several other people have built similar things, but I decided to jump in head-first and not follow any guides, in hopes of learning about electronics and wiring along the way.<br /><br /><h2>Acquiring Gear</h2>First up, a parts list:<br /><br /><ul><li><a href="http://www.amazon.com/gp/product/B00B4ZQ3L0?psc=1&amp;redirect=true&amp;ref_=oh_aui_detailpage_o06_s01" target="_blank">Wire</a>! Stranded, 22 AWG wire is perfect for general hobbyist electronics work.</li><li>An <a href="http://www.amazon.com/gp/product/B00E5WJSHK?psc=1&amp;redirect=true&amp;ref_=oh_aui_detailpage_o06_s01" target="_blank">Arduino board</a>, and an accompanying <a href="http://www.amazon.com/gp/product/B0076FWAAK?psc=1&amp;redirect=true&amp;ref_=oh_aui_detailpage_o06_s04" target="_blank">sensor shield</a>. (But see my lessons learned section)</li><li><a href="http://www.amazon.com/gp/product/B00CO87DD8?psc=1&amp;redirect=true&amp;ref_=oh_aui_detailpage_o06_s01" target="_blank">3-pin dupont connector housings</a>&nbsp;combined with the sensor shield make it possible to wire each switch in a modular way.</li><li><a href="http://www.amazon.com/gp/product/B00X9W87XS?psc=1&amp;redirect=true&amp;ref_=od_aui_detailpages01" target="_blank">Female dupont connector pins</a> or else the housings are useless.</li><li>Some <a href="http://www.amazon.com/gp/product/B010UIW82E?psc=1&amp;redirect=true&amp;ref_=od_aui_detailpages01" target="_blank">LEDs</a>, and accompanying <a href="http://www.amazon.com/gp/product/B00P3FMGP4?psc=1&amp;redirect=true&amp;ref_=oh_aui_detailpage_o06_s00" target="_blank">LED holders</a>.</li><li><a href="http://www.amazon.com/gp/product/B00P3FMGP4?psc=1&amp;redirect=true&amp;ref_=oh_aui_detailpage_o06_s00" target="_blank">Toggle switches</a>, the satisfying clicky heart of the project.</li><li><a href="http://www.amazon.com/gp/product/B003E48ERU?psc=1&amp;redirect=true&amp;ref_=oh_aui_detailpage_o04_s00" target="_blank">Resistors</a>.</li></ul><div><br /></div><div>And a partial list of tools I needed:</div><div><ul><li>A <a href="http://www.amazon.com/gp/product/B00DHCRVSC?psc=1&amp;redirect=true&amp;ref_=oh_aui_detailpage_o06_s01" target="_blank">crimping tool</a>.</li><li>A <a href="http://www.amazon.com/gp/product/B000NPT5TO?keywords=needle-nosed%20pliers&amp;qid=1446664371&amp;ref_=sr_1_1&amp;sr=8-1" target="_blank">wire stripper</a>.</li><li>A <a href="http://www.amazon.com/J-L-SI60-Watt-Soldering/dp/B0006NGZK0" target="_blank">soldering iron</a>, and <a href="http://www.amazon.com/Kester-Pocket-Pack-Solder-0-031/dp/B00068IJNQ/ref=pd_sim_469_1?ie=UTF8&amp;dpID=31-IEj9o8CL&amp;dpSrc=sims&amp;preST=_AC_UL160_SR160%2C160_&amp;refRID=1ACK2379SKPG2V3BA0E0" target="_blank">several</a> <a href="http://www.amazon.com/gp/product/B00FZPGDLA?psc=1&amp;redirect=true&amp;ref_=oh_aui_detailpage_o04_s00" target="_blank">accompanying</a> <a href="http://www.amazon.com/gp/product/B003E48ERU?psc=1&amp;redirect=true&amp;ref_=oh_aui_detailpage_o04_s00" target="_blank">accessories</a>.</li><li>Smallish <a href="http://www.amazon.com/gp/product/B000NPT5TO?keywords=needle-nosed%20pliers&amp;qid=1446664371&amp;ref_=sr_1_1&amp;sr=8-1" target="_blank">needle-nosed pliers</a>.</li><li>A drill. (a Unibit c