Build a 6 key keyboard from scratch?

rafaeljnelson

30 Mar 2014, 13:11

Does anyone know where I can find a way to get the details on how to build a 6 key keyboard from scratch.

I'm looking for something simple that is not re purposing an old keyboard. I'm talking about Getting the resistors and Micro controller and programming it.

all I want is 6 keys that will q.w.e.a.s.d for gaming that can be plugged into a usb port.

Any Ideas or directions would be awesome!

User avatar
Muirium
µ

30 Mar 2014, 13:19

Some good reads from the master of customs:

http://deskthority.net/workshop-f7/buil ... t5761.html

And this:

http://deskthority.net/workshop-f7/brow ... t6050.html

A group of us are doing another build this year.

User avatar
Grendel

31 Mar 2014, 00:36

Like this ?

Image

Based on this little guy and a Teensy 2.0:

Image Image
Image

Don't really have a "how-to" out but I could get you the source code of its firmware if you are interested.

rafaeljnelson

31 Mar 2014, 03:21

Grendel! That is pretty close to what i am looking for! anything would help! I am a super noob to all of this.

User avatar
Grendel

31 Mar 2014, 04:52

In a nutshell -- what you need:

- Teensy 2.0
- CM Storm Demo Tester
- 5 switches of your preferred color (the tester comes w/ 6 different switches, so one of that color will be there ;))
- 6 LED's and 6 resistors for the LED's (if you want it backlit)
- double sided sticky foam (3M, found some at Staples) to fix the Teensy to the plate
- wire (I used 26g wire, realy should have used wrap-wire)
- something to cut a hole in the case for the USB connector (drill, file, dremel, whatever.) It's ABS, easy to work with.
- a drill to shorten the top-right post of the bottom case (interferes w/ the Teensy)
- soldering equipment and (ideally) soldering experience

The case opens like all CM Storm cases, the top hooks into the bottom w/ two hooks on the back and front of the case. It comes apart in three pieces, the top, bottom, and the plate w/ the switches. The switches snap into the plate, remove the ones you don't need, replace them w/ the five of your favorite color. Turn them around 180° if you want LED's on top (like in the pic above.) Insert LED's and bend their legs so they stay in the switches when turned over. The shorter leg on an LED goes to GND, the longer one to its resistor. The other end of a resistor goes to a pin of the Teensy. One pin of each switch goes to GND as well, the other one to another pin of the Teensy.

Teensy pins I used:

PF0 - Switch BL, PB7 - LED BL
PF1 - Switch BM, PD0 - LED BM
PF4 - Switch BR, PC7 - LED BR
PF5 - Switch TL, PB6 - LED TL
PF6 - Switch TM, PB5 - LED TM
PF7 - Switch TR, PD7 - LED TR
GND - to all switches and LED's

After wiring it up (give the wires some slack, need to go around the posts), cut the hole for the USB connector in the bottom case. Place the plate on it and make sure everything works after loading the firmware. Cut a hole for the connector into the top case and close it up. Firmware is here, tools used to compile it are AVR Studio 4.19 and avr-gcc 4.7.0 + avr-libc 1.8.

Post Reply

Return to “Keyboards”