Forums » Technology » Pit Builders » Tutorial - Easy and Inexpensive Panel


Page 1 of 6 1 2 3 4 5 6 >
Topic Options
Rate This Topic
Hop to:
#2367911 - 10/31/07 09:52 PM Tutorial - Easy and Inexpensive Panel *****
LazerPotatoe Offline
Member

Registered: 03/13/06
Posts: 262
Loc: Toronto, Canada
Hi Guys,

Here is a quick tutorial on creating a simple, inexpensive USB panel.

This panel is based on the Ultimarc A-PAC USB controller, which is cheap (US$39+ship) and easy to
use -- it has screw-terminals rather than requiring ribbon cables/electronics knowledge.
It can handle up to 28 buttons/switches (switch toggles are converted to momentary keypresses in software - see end of tutorial).
http://www.ultimarc.com/a-pac.html
[UPDATE 2009-01-18 - fixed link]




First I bought some SPST switches and a sheet of Lexan (plexi-glass). Here I was playing with some possible layouts.




Second, I bought a 1/4 inch "glass bit" for my drill at the local hardware store.
I marked out where I wanted the holes on paper, taped it to the lexan, and clamped it down.
Then I used a finishing nail and hammer to make a starting notch for drilling each hole.
NOTE: it's better if you leave the protective sheet of coating on the lexan, as it can help make it more resistant to cracking.
You don't have to push very hard on the drill -- just let the bit do the work.
Drill away! Smash




Then I did a little test just to see how the switches looked, when they were mounted. They
just screw on with a nut on the back.




Of course, at this point I couldn't resist testing it out ahoy, so I did a bad job of temporarily wiring up the switches.




At this point I had tested it and it was basically working (except when the wires
were shorting-out because they weren't soldered/fastened properly biggrin )

Finally I had the basic panel done, but I needed an enclosure to house it in.
A brainstorm lead me to gut the insides out of an old CD-ROM drive that was no-longer working.




I cut down the size of the lexan with a plexiglass knife (be careful with these!!)
And I added some black paint to give it the glossy look.
At this point, I had to go and buy a very small drill-bit for the mounting screws.




Then it was time for the serious soldering. It had been a while, but it all
came back -- like riding a bike! LOL




And finally...

band







the finished product!!
bananadance




All that remains is to come up with a labelling solution. I am considering using
plastic transparencies with labels on top, so I can have swappable templates
for each simulator.




As far as programming...
The A-PAC shows up as a pair of game controllers in windows.
I'm using a program called SVMapper to convert the on and off toggle switches into momentary keypresses.
(thanks to Sokol1 for letting me know about this utility)



You can get that utility program here:
http://forum.sukhoi.ru/attachment.php?attachmentid=70479&d=1173468799


For more complicated mapping, I recommend using the free AutoHotKey scripting language:
http://autohotkey.com

Thanks to GrizzlyT, Kimchoc1 and others for their encouragement!




Hope this helps someone to save some cash, or simplify their pit!
cheers


Cheers,


Edited by LazerPotatoe (01/18/10 06:26 PM)
Edit Reason: fix link to APAC
_________________________
LazerPotatoe
http://www.samlaunch.com
Sim Panel tutorial
new EECH ATC voice

Top
#2367948 - 11/01/07 01:15 AM Re: Tutorial - Easy and Inexpensive Panel [Re: LazerPotatoe]
GrizzlyT Offline
Member

Registered: 11/22/05
Posts: 528
Loc: Sterling Heights, Michigan
Our little Lazer's not a virgin anymore.......Oh, they grow up so fast.

Seriously, nicely done.
Very clever using the CD drive enclosure, too. I just love that kinda stuff!
Your sitting around thinking, "How the hell am I going to do that?", then the lightbulb in your head lights up...."What if I try this?"......
In the end, 0% cost and 100% ingenuity.

Keep up the good work. You're well on your way to a complete lack of disposable income. \:D
_________________________
Grizzly's Comanche Simulator
"Fear is the mind killer. - Frank Herbert"

Top
#2368337 - 11/01/07 12:13 PM Re: Tutorial - Easy and Inexpensive Panel [Re: GrizzlyT]
HitchHikingFlatlander Offline
Senior Member

Registered: 09/21/06
Posts: 2804
Loc: California
Very cool, I need the extra inspiration right now, trying to get back to my control box project. Does that board support rotary encoders?

EDIT: NVM I checked the link! \:D


Edited by HitchHikingFlatlander (11/01/07 12:13 PM)
_________________________
www.DCS-Mercenaries.com

A casual west coast Black Shark/A-10C Squadron always looking for extra pilots and good times!

Top
#2369639 - 11/03/07 12:25 AM Re: Tutorial - Easy and Inexpensive Panel [Re: HitchHikingFlatlander]
GrizzlyT Offline
Member

Registered: 11/22/05
Posts: 528
Loc: Sterling Heights, Michigan
There are plenty of encoder boards out there (Opencockpits, Hagstrom, etc.) but most are kinda pricey, for what you get.
Unless you need it to control an axis (or to respond to acceleration) and you're just mapping key presses, you can get away with using a simple pulse switch.
(Sometimes referred to as a "knitter" switch, too.)

A pulse switch is dual-pole, momentary contact, rotary switch that sends out a different stream of switch pulses, as it's rotated CW or CCW. Your controller sees it as two momentary switches and it doesn't require a control voltage either. The key feature being that unlike a standard dual-pole rotary switch, when you rotate CW, it sends out only CW pulses. The same for the CCW rotation.

I get mine here: @ Mouser

A very easy way to get rotaries, into the cockpit!


_________________________
Grizzly's Comanche Simulator
"Fear is the mind killer. - Frank Herbert"

Top
#2370686 - 11/04/07 04:37 PM Re: Tutorial - Easy and Inexpensive Panel [Re: GrizzlyT]
Coot Online   smile
Gooood Morning SimHQ!
Senior Member

Registered: 08/30/05
Posts: 4535
Loc: !!USA!!
That is great looking! I love seeing folks make stuff like that and being creative. So does this guy have a usb wire and plug that comes out of it now? And now it can be programmed? Neat stuff.
_________________________
" Without morals a republic cannot subsist any length of time; they therefore who are decrying the Christian religion, whose morality is so sublime and pure...are undermining the solid foundation of morals, the best security for the duration of free governments." Charles Carroll - signer of the Declaration of Independence

Core i5 750 2.66
ASUS P7P55D PRO
Coolermaster Hyper 212 Plus CPU cooler
8 gig Corsair Vendeance DDR3 RAM
EVGA Nvidia GTX570
Windows7 Home 64bit

wave

Top
#2373095 - 11/07/07 11:13 AM Re: Tutorial - Easy and Inexpensive Panel [Re: Coot]
LazerPotatoe Offline
Member

Registered: 03/13/06
Posts: 262
Loc: Toronto, Canada

Yes, there is a 6-foot USB cable coming out the bottom of the panel.

You just plug it in to your PC, and it shows up like a joystick. (in Control Panel->Game Controllers)

Then you run the SVMapper program that I mentioned above and setup your mappings.

So for example, I flip the top-left switch up. SVMapper sends an 'f' key to the Sim, which turns the flaps on. I flip the top-left switch down and SVMapper sends another 'f' key to the Sim, which turns the flaps off.

Thanks for the questions.

I think I will add more detail about wiring to the tutorial, and maybe make a video of the panel in action.

Cheers,
_________________________
LazerPotatoe
http://www.samlaunch.com
Sim Panel tutorial
new EECH ATC voice

Top
#2373513 - 11/07/07 08:57 PM Re: Tutorial - Easy and Inexpensive Panel [Re: LazerPotatoe]
Coot Online   smile
Gooood Morning SimHQ!
Senior Member

Registered: 08/30/05
Posts: 4535
Loc: !!USA!!
I'd love to try something like this out. I've never done any electronic soldering before but maybe with some patience and taking my time I could do something like this. I've never done anything with electronics before but I do small wood working projects and other things and love working with my hands and tools. Do you have to have electronics know how for something like this?

I wonder if I could find some pre-fabricated electrical boxes or something to that affect at home depot for the actuall houseing. That's what's neat about this though, I'm sure there are several things you could come up with.
_________________________
" Without morals a republic cannot subsist any length of time; they therefore who are decrying the Christian religion, whose morality is so sublime and pure...are undermining the solid foundation of morals, the best security for the duration of free governments." Charles Carroll - signer of the Declaration of Independence

Core i5 750 2.66
ASUS P7P55D PRO
Coolermaster Hyper 212 Plus CPU cooler
8 gig Corsair Vendeance DDR3 RAM
EVGA Nvidia GTX570
Windows7 Home 64bit

wave

Top
#2373543 - 11/07/07 10:29 PM Re: Tutorial - Easy and Inexpensive Panel [Re: Coot]
LazerPotatoe Offline
Member

Registered: 03/13/06
Posts: 262
Loc: Toronto, Canada
I really don't know much about electronics, and I didn't use any electronics knowledge to build this.

All you need to know is:
how a basic single-pole, single throw switch works
how to use a drill
how to solder


Here's a good video intro to soldering:
http://youtube.com/watch?v=BLfXXRfRIzY

For enclosures, also consider Radio Shack -- they have different sized metal and plastic enclosures specifically for electronics projects.
http://www.radioshack.com/family/index.jsp?categoryId=2032276&cp=2032058.2032230

Or just use a tupperware type container. Paint it black -- no-one will know ;\)


If you DO want to learn more about electronics, I recommend "Getting Started with Electronics" by Forrest Mims.
http://www.amazon.com/Getting-Started-El...94503283&sr=8-1
(no affiliate crap)

Also, this guy also has some good introductory videos on electronics:
http://youtube.com/user/electroninstructor

You can do it. Just do some research, and take it one step at a time.

Cheers,
_________________________
LazerPotatoe
http://www.samlaunch.com
Sim Panel tutorial
new EECH ATC voice

Top
#2373629 - 11/08/07 04:38 AM Re: Tutorial - Easy and Inexpensive Panel [Re: LazerPotatoe]
GlynD Offline
Member

Registered: 02/02/07
Posts: 388
Loc: Shropshire UK
Cheers for this excellent tutorial. I do have a couple of questions regarding switches...

If the switch is not "momentary" (i.e only sends a single pulse when switched to the on or off positions)can the SV Mapper just send a single keypress command instead of a stream (i.e. like if you were holding down a particular key)?

Also am I right in my understanding of switches that there are 2 basic types i.e. momentary and not?

Cheers

Top
#2373962 - 11/08/07 09:46 AM Re: Tutorial - Easy and Inexpensive Panel [Re: GlynD]
LazerPotatoe Offline
Member

Registered: 03/13/06
Posts: 262
Loc: Toronto, Canada

 Originally Posted By: GlynD
If the switch is not "momentary" (i.e only sends a single pulse when switched to the on or off positions)can the SV Mapper just send a single keypress command instead of a stream (i.e. like if you were holding down a particular key)?

Exactly -- that's the beauty of it. You use software to change from "always on/always off" into momentary keypresses.

Otherwise we would be stuck with only using momentary switches with this board.

_________________________
LazerPotatoe
http://www.samlaunch.com
Sim Panel tutorial
new EECH ATC voice

Top
Page 1 of 6 1 2 3 4 5 6 >
Topic Options
Rate This Topic
Hop to:


Forum Use Agreement | Privacy Statement | SimHQ Staff
Copyright 1997-2012, SimHQ Inc. All Rights Reserved.