Jump to content

Starting my own control board, just how do I do this?


Rassa Farlander

Recommended Posts

Hi folks!

Im looking to build something of my own after being inspired here and in my electronics classes in college. Im just not quite sure how to go about starting. I have an old compaq keyboard with a PS/2 cord I could use for the guts. What I cant figure out is how I can get the keyboards microcontroller think that Im pressing W and S for pitch when Im using a 4 position switch joystick, Or turn my RCS on and off with a momentary toggle switch. I would need to know the pin-out of the microcontroller somehow I figure.

OR Would I just be better off and go the aurdino route? I know nothing about them.

Thoughts?

Link to comment
Share on other sites

A four position joystick has four little microswitches in it. When you push the joystick up, one of those switches closes.

Your keyboard does some multiplexing magic, but you don't need to worry about it. What you need to know is that the W key is just a switch. When you press it it shorts two contacts together.

All you need to do is take the top off your keyboard, find the contacts the W key hits, and solder leads from those contacts to the up switch on your joystick. The exact same principle applies to momentary buttons for SAS, RCS, etc.

You can build a pretty great controller just doing that. For displays, or for doing things like controlling toggle switches, you'll want to learn your way around an arduino. For that I'd start with a starter kit and a good book.

- - - Updated - - -

Oh, I forgot the most important part of building a controller. Start a thread here, and post lots of pictures in it. Love seeing how other people do this stuff.

Link to comment
Share on other sites

Ok, so Ive taken the keyboard apart. Inside of it is what appears to be two transparencies with circuits printed on them. How should I go about this? If it was an actual PCB under there Im sure I could figure out the circuit paths and solder away. With this new development Im not sure where to go from here. I can post pics tomorrow if it would be helpful :)

Link to comment
Share on other sites

The keyboard is what's known as a membrane keyboard. Basically, the keyboard is still switches connecting two wires together. The wires are in the form of a matrix, laid out logically as columns and rows. So if a wire from column A touches a wire in row 3, the keyboard controller detects that, coverts it to the correct keycode, then sends it to the PC.

You can try tracing the wires back from the membranes to where they connect to the controller (often a small PCB, possibly with a regular chip on it, possibly with a chip under a blob of epoxy on it) and figure out the matrix. Here's an example of a matrix diagram:

http://www.sharpmz.org/mz-700/kbmatrix.htm

You can also just figure out which connections are the columns and which are the rows (it doesn't matter for your purposes which is which, just figuring out that one set is for one group and the other are part of the other group.) Then you can plug it into a PC, open an editor, start shorting connections and figure out the character map that way. For example, let's say you've divided the connections into two groups, plus determined which lines carry the modifier keys like Alt, Ctrl, and Shift. Mark the connections somehow if they're not already marked.

Then, say, connect one end of a wire to what you've decided to call contact row1, and touch the other end to what you've called connection column1, then column2, column3, etc until you have noted all the keys on row1. Then go to row2 and do the same thing.

Then, when you want to wire up SAS, you look at your chart and see that T is, say, row5 to column3. Bingo. Wire your switch between those two points and you're good.

Link to comment
Share on other sites

Excellent! Saudby,that is just what I needed :D Its a PCB with the dab of epoxy. The contacts that meet up with the membrane are 7 on one side and 19 on the other. I think Ill hook it up to the PC and try that method. I was thinking of using my multimeter to trace the circuits from key contact to pin, I tried it on an obvious key and it works like I was hoping. Time to dig in to this and see what I can come up with.

Any suggestions of where I could get some good deals on switches and buttons?

Thanks for making your first post one helping me :D +Rep!

Link to comment
Share on other sites

Switches and buttons are tough to get really cheap but there are loads of reliable vendors from China on ebay that usually sell without shipping costs. It takes time to get the stuff though, thats the only downside.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...