Slashdot Mirror


Building a Cockpit Setup for Simulator Games?

Milo_Mindbender asks: "For awhile I've been looking at building a cockpit-like setup for playing simulation games. One problem is finding a way to hook up a large number (up to 100) of lighted push-buttons in the thing and interface them to a computer that would poll the switches and control the (Tri-color LED) lights. Since the buttons/LEDs won't be clustered together, it would be nice if each button (or group of 4-5 buttons) could be on some kind of multi-drop network so the thing wouldn't turn into a wiring nightmare. The trick is that you don't want to miss button presses and you want to let people hold down multiple buttons without the setup getting confused. The big problem though, is cost. Anybody got an idea of how this could be done, preferablly with off-the-shelf parts, for under $5-$10 per button including the button?" Combine this idea with the earlier article we did on LCD-screens-for-cockpits, and you might have a kick-ass setup! Networked mech sims, anyone?

33 comments

  1. Gah... by ChiPHeaD23 · · Score: 2, Funny

    You, sir, have won the Too Much Time on Your Hands Award. Congratulations.

    1. Re:Gah... by Anonymous Coward · · Score: 0

      Better yet, how about the most likely to have the FBI pay him a visit award.

  2. Re:That's what the Al-Qeda are trying to do. by isorox · · Score: 1, Troll

    It is worrying, if someone would only think of the children to stop unpatriotic terrorists like this from obviously planning how to cheaply fly a jumbo jet into the side of a large building!

  3. Other uses by isorox · · Score: 2

    Interesting project.

    Wire all the lights to a centralised box, which acts as a keyboard pass through.

    I wonder if you could adapt a system to efficently manage networks?

    OPerhaps you hsould by some LED's with IPV6 intergrated? That would be pretty cool - if they are available.

  4. It's been done by smblion · · Score: 3, Informative

    Your problem has probably been solved, as there's a somewhat decent sized following of people who build their own flight sim cockpits, and I think I even saw one mech cockpit.

    Build Your Own Cockpit

    That has a few links. Plenty more can be found with simple google searching. I had this idea a few months ago, and like any idea I have, I checked to see if it was done already, and sure enough ;)

    As for LCD screens, they've got that stuff figured out. Check it out, you won't be let down.

    1. Re:It's been done by 56ker · · Score: 2

      If you used a joystick, some foot pedals and took apart a keyboard from plenty of buttons - yes you could build your own but I've never seen someone try. Why not just find a real flight simulator instead of going to all that trouble?

    2. Re:It's been done by CrayDrygu · · Score: 2
      Why not just find a real flight simulator instead of going to all that trouble?

      Why build your own computer, when you can buy a perfectly good pre-assembled one? Why build your own book case, when you can go down to OfficeMax and buy one? Why bother restoring a junky car, why not buy one that works fine to begin with?

      The answers are all roughly the same...

      --

      --
      "I personal[ly] think Unix is "superior" because on LSD it tastes like Blue." -- jbarnett

  5. This has a lot of wires, but... by dasunt · · Score: 3, Interesting

    Take apart a standard AT or PS/2 keyboard. Now, inside of most of them are a few layers of plastic with electronic traces, and a small bit of circuit board with one big chip (the encoder). How a keyboard works is that the keys are arranged in a grid of wires, and when you press down on a key, you connect two wires in a grid. With a little bit of work recording the electronic traces, you can figure out what keys connect what pins on the encoder. Congradulations, you now have a 101 button method of input.

    Now, if you want to be lazy, then here's this link: Happs Controls, which has less inputs, and only works on win9x/NT/Mac, but saves you from wiring. Even if you go with the homebuilt solution, Happs sells a variety of buttons, and gives a price discount for large quantities. (I believe the price drops happen at 10 and 100 unit quantities.)

    (Happs, btw, is a supplier of arcade game parts.)

  6. Happ's - wow! by Anonymous Coward · · Score: 0

    I've just been browsing around their site, what a great selection! Thanks for posting that link.

  7. Keep this in mind... by sphealey · · Score: 3, Insightful
    Saw an essay in "Private Pilot" mag about a year ago. The author visited a friend's house, and the friend proudly showed him his super-flight-simulator setup, with everything possible in a home environment except full motion. The author asked his friend how much it all cost, and the friend stated, "Around $8000". The author replied, "You DO realize that you can generally get your private pilot license for around $4000, leaving you with $4000 left over to rent time in a real airplane?".

    Something to think about.

    sPh

    1. Re:Keep this in mind... by checkyoulater · · Score: 1, Insightful

      You DO realize that you can generally get your private pilot license for around $4000, leaving you with $4000 left over to rent time in a real airplane?".

      Yes, but the cost of lessons is only a small part of the licensing process. You need probably close to a thousand hours of flight time before you are officially a licensed pilot. Factor in travelling time to the airport, time away from the family, etc. Not exactly feasible to many. Those hours are most certainly worth more than $4000.

      --
      Is that a real poncho? I mean, is that a Mexican poncho or is that a Sears poncho?
    2. Re:Keep this in mind... by sphealey · · Score: 4, Informative
      You need probably close to a thousand hours of flight time before you are officially a licensed pilot.
      The minimum flight hours required to obtain a private pilot license from the US FAA is 40. Here's a link to one flight training school I just happened to find with Google. At that point you are technically able to rent a plane and fly by yourself, although the rental agency's insurance company may have other thoughts.

      If you want a high-power, instrument, multi-engine, or ATP (airline) certificate many more hours are of course required. However, 1000 hours is close to what you need to get an airline job, not to cruise around on weekends in a 172!

      sPh

    3. Re:Keep this in mind... by jmcwork · · Score: 1

      But does it have sidewinders on it?

    4. Re:Keep this in mind... by Anonymous Coward · · Score: 0

      1000 hours? maybe to get ATP ... but a PPL is 40+ (depending on the pilot's abilities and the instructor's judgement, the hours are +/-)

  8. PIC's your friend by sysadmn · · Score: 2, Insightful

    Look at some of the application notes for the PIC microcontroller. A $2-3 chip could easily debounce 25 buttons and output a serial stream.

    --
    Envy my 5 digit Slashdot User ID!
    1. Re:PIC's your friend by lkaos · · Score: 3, Informative

      This is one of those instances where I really wish I had mod points to mod up the parent.

      Noone else has mentioned this and this is really exactly what you want.

      Without having multiple interfaces, you will not be able to handle 25 buttons and LED without using some sort of controller. I recommend purchasing PROGRAMMING AND CUSTOMIZING PICMICRO MICROCONTROLLERS. This book goes into great details (with good examples) on how to make button debounces. It even comes with a circuit board to build your own programmer (saving you quite a bit of money).

      With a cheap breadboard, and a couple PICS, you could make a circuit that had a serial port that could address any number of buttons.

      If your really ambitious and get the thing to work, you could make a small board run and sell kits on eBay and probably pay for the project while your at it. I'm sure there are plenty of geeks that would pay good money for a flight simulator console.

      --
      int func(int a);
      func((b += 3, b));
  9. Multiple monitor support in flight sims by sphealey · · Score: 3, Interesting
    Are there any home flight sims that support multiple monitors in W2K or WXP? I like flying CSF2, but it always seems to me that if I could get some basic peripheral vision from 2 additional monitors showing left and right views (or to go nuts, a total of 5 monitors: forward, left, right, up, and back) that it would be a LOT more realistic.

    I would think a dual processor Xeon system with 2 GB RAM and 3 video cards should have enough horsepower (sic) to handle this type of setup, but is there any software that can do it?

    sPh

    1. Re:Multiple monitor support in flight sims by joekool · · Score: 1

      X-Plane I believe it works by hooking up other comps running X-Plane, via ethernet, for the other views you want. Also has an instructor station. And apparently is certified by the FAA for getting your commercial instrument rating!

      --

      Slackware: old school feel, new school gear.
    2. Re:Multiple monitor support in flight sims by Anonymous Coward · · Score: 0

      msfs2k2 can ... click on the window/widget you want, 'Undock Window', and drag it to the monitor you want

      also, check out wideview ... it can do some cool stuff too

      --m

  10. The power of Google... by sphealey · · Score: 2
    Here's a guy who is building a replica of an Airbus 320 cockpit in his basement. Talk about too much time on your hands!

    sPh

  11. Check Dallas Semiconductor by Anonymous Coward · · Score: 1, Informative

    Check out what Dallas Semiconductor has for products. Check out there 1-wire items. (www.ibutton.com has a number of related links).

    Basicly, they have modules to do damn near anything you want, they can check the status of a switch, toggle like a transistor/buffer combination, etc. And you can have a number of devices on the same 1-wire network. Each device is individually addressable, and device types can be access in groups.
    (While they call it a 1-wire network, it is 1 wire + ground, can be accessed various speeds depending on the attached devices. (Up to 1 megabit I think.)

    So, basicly what you'll want to do is work out the fastest polling rate you require and figure out if you can adaquatly transfer enough data to meet the worst case scenario. (best case is probably easy, as you can poll to see if devices changed.).

    A rough estimate would be that you could do all this for about $3/[switch|LED] combination.

    1. Re:Check Dallas Semiconductor by lkaos · · Score: 2

      Check out what Dallas Semiconductor has for products. Check out there 1-wire items.

      I've worked with 1-wire technology (and have also used their TINI controller board). Overall, it is relatively useful when dealing with a highly scaleable and robust design but not for something as simply as a collection of pushbuttons.

      1-wire is a mess because to do anything useful, it takes more than 1-wire to deliver power and amplify the singals. The components are more advanced then simply switchs and therefore, are considerably more expensive.

      --
      int func(int a);
      func((b += 3, b));
  12. EPIC board by lungofish · · Score: 2, Interesting

    You need an EPIC board from R & R electronics:

    http://www.mindspring.com/~rrelect/epic/info/tea se r.shtml

    At least, that's what all the hardcore cockpit builder guys I know use. One just bought a cockpit from a little fighter (it's an F-5 or one of it's variants that wound up in a scrap heap) and is in the process of rewiring the whole thing to run off an epic board.

  13. Some Interesting Links... by cr0sh · · Score: 2

    Here are some links that you may find helpful and/or interesting:

    The JoyRider Virtual Flyer

    Homebrew Flight Sim Cockpit

    Full Motion Flight Simulation Platform

    Homemade Flight Simulator

    3 Axis Flight Simulator

    Also, look for something called the "Rock-N-Ride" - it was a commercial low-cost motion platform, that interfaced to a serial port and used a airbrush compressor for power. It wasn't cheap, but it was cheaper than a real 3 axis platform. I have also seen real 3 axis platforms sold on eBay, but be prepared for hydraulic behemoths (in weight, if not size) that will set you back some.

    Now, granted, none of these sites will probably answer your question about what to do in regards to all of the lights, switches, etc. For that, I would suggest looking into PIC or BASIC Stamp interfacing over a "single-wire" serial interface or similar. You could probably also do it with logic circuits and shift register-based systems (to effect a parallel to serial to parallel interface), or use a MAX232 for comm. There is also a guy out there that sells an ethernet -> uPU interface (people have used it to hook old C64's to ethernet, etc).

    You could also hook up to the joystick port - in theory you could hook resistors up to get input from both axis's, a different resistor per switch, two joysticks - plus all of the buttons - that is a lot of buttons!

    There is also the possibility of using the joystick port as a MIDI port, and comm'ing over that. Also, look up joystick info, there is a method of toggling a bit or so on the joystick port to actually gain a certain low-speed output over the joystick port to allow you to "clock" data from the port - supposedly some "digital" joysticks have done this.

    There is always USB - check out Nuts and Volts magazine - there have been articles in the past on the chipsets, etc needed to interface using USB.

    I hope this helps...

    --
    Reason is the Path to God - Anon
  14. Microcontrollers and Serial Communication by subbie · · Score: 1

    A cheap microcontroller and serial communication will get you started. Then it's just a matter of picking up all your LEDs, buttons, etc. from a nice cheap place, like Jameco will get you going. . . gl! --subhuman

  15. Where are all the whiners? by unitron · · Score: 2

    Isn't somebody supposed to get on and complain about this guy asking his question here instead of making google do all the work? All I see (except for the hijacker jokes) are thoughtful, intelligent, and helpful replies. Did I miss the announcement of a "Grown-ups only" day on Slashdot?

    --

    I see even classic Slashdot is now pretty much unusable on dial up anymore.

  16. Build your own Arcade Controls by innocent_white_lamb · · Score: 2, Informative

    http://www.arcadecontrols.com has a lot of information about hooking pushbuttons up to keyboards and so on.

    --
    If you're a zombie and you know it, bite your friend!
  17. be sure to check out by Anonymous Coward · · Score: 0

    http://www.projectmagenta.com

    they did the s/w for BEL

  18. shameless plug by Anonymous Coward · · Score: 0

    You simply MUST add a Thunderseat to your home-brew cockpit. MUCH fun!

  19. Try the EPIC card by nathanm · · Score: 2

    The place I work has full motion F/A-18 flight simulators. Our cockpits use the EPIC card to control ~200 switches & buttons. Also, they have 5 ft dome screens from Elumens that use a special lens on a standard LCD projector, and a 15" LCD panel as the front instrument panel.