As requested in the Firehouse thread, here's a quick parts list/instruction guide for this switch panel:
TODAY'S RECIPE: ARMAMENT HUD CONTROL PANEL (serves one)
Ingredients:
[PCB]
XRay version:
http://btos.jp/index.php?main_page=product_info&products_id=58Your version: http://groovygamegear.com/webstore/index.php?main_page=product_info&products_id=235[Switches]
4 x normal size ON-OFF-ON switches
1 x small size ON-OFF-ON switch
3 x normal size ON-OFF switches
2 x small size ON-OFF switches
(these can be ON-ON, in which case you just solder one side only)
[Wire]
Enough wire for 15 connections between your switches and your PCB, PLUS a different colour for daisy-chaining ground wire between each switch and the GND socket on your PCB.
(In my case, my PCB only had 12 input sockets/pins, so I used 12 connections and left two [useless] switches non-functional)
[Box]
Google "plastic project enclosure", etc. Or ask an old man in Akihabara, who will point you on a path of magical adventure to a project box seller.
I used a 9x6x17cm ABS box with a simple unscrewable lid. MAKE SURE YOUR PCB WILL FIT IN THE BOX! Mine did because it's tiny. Yours may not because it's huge.
[Also]
Heatshrink tubing if you need to insulate soldered connections to your switches. I mostly didn't, but it was vital for the smaller HUD DAY/NIGHT switch, etc.
Tools:
Wire stripper, screwdriver, plus soldering iron and tiny tiny bird pliers if you have to solder anything to your PCB or switches.
Buy a cheap & cheerful clamp if you need to solder switches - makes it easy to hold them upside down.
Let's get started!1)Cut your wires long enough to be able to comfortably take the lid off your box without tugging on the PCB when it's all put together.
2) Strip off about 15mm from each end.
3) If you bought screw-terminal switches, just screw the wires in place. If not, it's solderin' time. Take care:
- On two-way switches, one terminal (ON) goes to the PCB input. The other (OFF) is your ground. We'll cover that in a second.
- On three-way switches... you get the idea by now I'm sure, but the middle terminal is your ground.
4) Daisy-chain a wire across all your ground terminals. This means, your first switch will have just one wire going from the ground terminal. Then you twist that wire together with the next for your second switch (so you have two wires going together to the ground terminal on your second switch) and so on until you reach your last switch. This one also has two wires, but the second goes to the GND socket/pin on your PCB. Simple!
(To make it easy to arrange the switches in the box, I ordered my ground wires MASTER ARM -> GUNPAC -> LASER -> TGP and so on down the switch panel.)
5) But XRay... is this really a circuit? One wire to the switch output... and a ground wire? Well, that's what I thought, and the answer is... it's magic, okay. Just magic.
6) Connect all your ON terminals to the PCB inputs. Don't worry about the order since these can be easily configured later in DCS.
7) Set your switches in your box, being mindful of what direction they are. You may have drilled holes in your box. Well done! You are not a failure. If you burned holes in your box with the soldering iron, welcome to the failure club! It's cosy and full of wrecked soldering irons. (Breaking off the resulting plastic ridges is easy with a fine pair of pliers... but it will take an hour or more.)
8) Mount your PCB in your box. Mine came with handy sticker-bottomed mounting pads. You may need some "circuit board standoffs." Get googlin'!
9) Close the box, and insert a USB cable through the hole in the side you hopefully remembered to make.
Your switch panel is now complete!
Programming:
Your PCB may need proprietary software (mine did) but it's bound to be very simple. The Groovy Game Gear board I think doesn't need anything.
Just head into DCS and you'll notice your new switch panel has been recognized by the sim and added to the list of input devices. Set your switches to their off positions, and start adding commands!
Now the (only slightly) tricky part: download Notebook++ so you can edit the .lua for your switch panel. Find the .lua in Users/Saved games/DCS/Config/Inputs/[Your board name]. Then, follow the examples here:
http://forums.eagle.ru/showthread.php?t=65998&page=26...to double up the inputs so that when your switch is NOT on, the in-game switch reverts to "OFF" or "TEST" or whatever.
Basically, you'll look for the "down = bla bla KablammoSwitchOn" command, and add in an "
up = bla bla KablammoSwitch
Off" command. Even an ape like me can do it! Save your .lua, and when you go back to the sim, it should all be working correctly.
Congrats! You are... as cool as me, I guess! Congrats?