geekhack

geekhack Projects => Making Stuff Together! => Topic started by: Charger on Sat, 13 July 2013, 22:29:39

Title: First diy keyboard in progress
Post by: Charger on Sat, 13 July 2013, 22:29:39
It seems that this site is rather addicting as with in a week of finding it I had already started thinking about making a mechanical keyboard(because I'm cheap and can make things lol). To start with i bought a m2c-tg3-tp keyboard off ebay and took off the splash guard and used it for a few days. Knowing that i bought this for parts i wasn't to annoyed when i found anti ghosting stopping me from doing things when playing games like using 3 keys at the same time so i got to work tearing it down.

I am to cheap to buy a de-soldering iron and the solder wick I have didn't work so i had to do it the cheap way of heat the solder and pop the switches out. This worked relatively well for most if not all of it. I  did however pull one lead out of a switch but pushed it back in and tested with a multimeter to make sure it worked (hope it really does as i don't know what switch it is anymore). Then i cut up the plate that was on the keyboard and made a bent piece of 1/8" aluminum to hold it that I spray plastidiped black. To attached the plate to the case i used small socket head cap screws. This is to allow me to remove the plate and change the base if i don't end up liking it without having to remove anything other then the space bar keycap that blocks one of the screws.

I have now put the switches and keycaps in place with it sitting in front of me and I keep trying to type on it without thinking even though it isn't done. I have yet to wire up the matrix or figure out how to code the tmk keyboard firmware for a 6x15 matrix. I have the 1n4148 diodes and the teensy so I am almost done or that is what i think anyways lol.

(http://i.imgur.com/UC1j9zB.jpg)
(http://i.imgur.com/wZRLwxb.jpg)
(http://i.imgur.com/eWFTjl6.jpg)
(http://i.imgur.com/cHMTccH.jpg)
Title: Re: First diy keyboard in progress
Post by: MOZ on Sun, 14 July 2013, 10:19:27
Excellent work elcheapo!
Title: Re: First diy keyboard in progress
Post by: domoaligato on Mon, 15 July 2013, 00:15:13
I just bought one to farm switches/led's from.
great job!
Title: Re: First diy keyboard in progress
Post by: ITzNybble on Mon, 15 July 2013, 09:33:53



Nice Job!
Title: Re: First diy keyboard in progress
Post by: funkystuhero on Tue, 16 July 2013, 20:16:25
Had a nearly identical idea last night, but you beat me to it ahah. Will definitely follow your progress, good work so far!
Title: Re: First diy keyboard in progress
Post by: Charger on Tue, 16 July 2013, 20:46:36
I have now wired the matrix and i think programmed the teensy with a properly modified TMK firmware all i have to do is figure out how I am going to connect the teensy to the matrix and mount the teensy to something and it should be good to go.

(http://i.imgur.com/i7f6wLn.jpg)
Title: Re: First diy keyboard in progress
Post by: domoaligato on Tue, 16 July 2013, 21:11:07
have a look at this...
http://geekhack.org/index.php?topic=45587.0
Title: Re: First diy keyboard in progress
Post by: Charger on Tue, 16 July 2013, 21:33:23
I posted in that topic but I am thinking about using perf board (I had a piece but i just cant find it) but i also want to see if i can find some black ribbon cable to wire it up as i don't want a lot of free wires.
Title: Re: First diy keyboard in progress
Post by: domoaligato on Tue, 16 July 2013, 21:43:43
I used a black asus floppy cable in my build but I would not recommend it. the wire is very fine and not the easiest to work with.
24 or 22 gauge solid core wire might work better.
Title: Re: First diy keyboard in progress
Post by: Charger on Tue, 16 July 2013, 21:56:20
22 gauge is what i used for the matrix as that is what i had on hand but it seems a little overkill however i may end up using it in the end. I have done stuff with ide cable before and never really had a problem with it but i wouldn't mind a thicker gauge ribbon cable but i don't think i can find that for cheap.
Title: Re: First diy keyboard in progress
Post by: Charger on Thu, 18 July 2013, 15:18:50
Well i finally just said f it and direct wired it to the teensy i view this as a temporary set up until make a new case for it in the future where u am smart enough to think through where to mount a pcb to something but for now i have it working and am typing on the now. As it turns out programming the matrix isn't as hard as it seems i just took me looking at a few of them to understand what it was saying and then i was able to program it and have it working just fine and right first try after soldering the matrix to the teensy. i did program the teensy 2 times the first just to see if i could even get it to work before hooking it up to the matrix the second to change all the pins again so that its just in line going around the teensy instead of jumping all around like it was set up before.

only problem now is to get a usb cable that is longer then 3 feet as i cant run it to the back of my computer. I think I will also add head phone and mic jacks to the next case i make for it as well as my front audio on my pc buzzes so I may as well add pass through for them as well. If I ever get off my ass and go to the scrap yard by my house to get a block of aluminum i will take photos of me milling it on my manual mill as I'm sure people will get a kick out of that.

it ended up costing 50$ no joke i added it up and it was really 50$ no change lol
Title: Re: First diy keyboard in progress
Post by: Thimplum on Thu, 18 July 2013, 15:41:28
Show Image
(http://i.imgur.com/i7f6wLn.jpg)


Very clean looking! I love the 1337 idea of using the diode pins to connect the switches.
Title: Re: First diy keyboard in progress
Post by: esoomenona on Thu, 18 July 2013, 15:45:42
TBC, it wasn't anti-ghosting, bu 2KRO that caused your initial problem.

But good job!
Title: Re: First diy keyboard in progress
Post by: Charger on Thu, 18 July 2013, 15:54:16
TBC, it wasn't anti-ghosting, bu 2KRO that caused your initial problem.

But good job!
but is that not a way of controlling ghosting?
Title: Re: First diy keyboard in progress
Post by: esoomenona on Thu, 18 July 2013, 16:41:38
No, it's a limitation in the design of the keyboard, or in the controller. Ghosting is, in general, a gaming term.
Title: Re: First diy keyboard in progress
Post by: Charger on Thu, 18 July 2013, 17:34:35
Good to know i have have to remember that and disregard what I have read before. Seems i have ran into my first not real problem that valve or tf2 anyways doesn't seem to support f13 that i set caps lock to be so i need to change that and I may as well work on a layer set up as well if i changing some stuff anyways.
Title: Re: First diy keyboard in progress
Post by: domoaligato on Thu, 18 July 2013, 17:49:47
Good to know i have have to remember that and disregard what I have read before. Seems i have ran into my first not real problem that valve or tf2 anyways doesn't seem to support f13 that i set caps lock to be so i need to change that and I may as well work on a layer set up as well if i changing some stuff anyways.

you might look at creating a gaming layer.
this is what I have done with hasu's tmk firmware.
I actually just change the dvorak mode to my custom layout for gaming in the keymap.
when I am gaming I just change to that layer.
I map my capslock key to be Scroll lock and you can use that inside any source engine game.
I am a cs:go junkie. ENFORCER in the Geekhack steam group if you ever want to play.
Title: Re: First diy keyboard in progress
Post by: Hellmark on Wed, 28 August 2013, 15:39:56
I am thinking about buying one of those keyboards to play with at work.

It kinda sucks on the 2nkr with the stock stuff for it, so I am thinking may do something like what you did with it.
Title: Re: First diy keyboard in progress
Post by: Charger on Wed, 23 April 2014, 07:16:58
I thought i would update this with what the keyboard looks like right now.

I spent some time and finally made a new case for the keyboard it is machined out of 2 pieces of 1/2" plate that bolt together. Also you can see a key cap i made some time back out of a stainless bolt.

(http://i.imgur.com/7K1Dm9H.jpg)
(http://i.imgur.com/gZuPlsj.jpg)
Title: Re: First diy keyboard in progress
Post by: metalliqaz on Wed, 23 April 2014, 07:18:25
Nice machining.  That thing looks hardcore!
Title: Re: First diy keyboard in progress
Post by: WONDERBRIGHT on Wed, 23 April 2014, 07:24:05
nice , love it :)
Title: Re: First diy keyboard in progress
Post by: CPTBadAss on Wed, 23 April 2014, 08:05:08
Whoa, nice case. Did you machine that yourself? Found your previous post where you said you had a mill. I'm jealous, wish I had my own mill. Did you ever get around to taking some pictures?

Title: Re: First diy keyboard in progress
Post by: Charger on Wed, 23 April 2014, 12:20:19
Whoa, nice case. Did you machine that yourself? Found your previous post where you said you had a mill. I'm jealous, wish I had my own mill. Did you ever get around to taking some pictures?
Sorry I didn't end up taking photos because I didn't have my good camera so I didn't take photos. Plus it wasn't all that interesting just some milling, cutting on a table saw, some cutting on a band saw, drilling on a drill press, oh and some turning on a lathe to make the cap head screws heads a little smaller and make a filler piece to fill a hole in the bottom aluminum plate (now that i type out the things i did it may have been interesting lol).
Title: Re: First diy keyboard in progress
Post by: CPTBadAss on Wed, 23 April 2014, 12:20:48
But I love machining porn :(
Title: Re: First diy keyboard in progress
Post by: Charger on Wed, 23 April 2014, 12:27:47
But I love machining porn :(
LOL don't we all. It would not have been the best machining porn it would have been like 70s machining porn lol (by that i mean all manual no cnc... Im guessing its to late for this as you are already thinking of porn from the 1970s arn't you...)
Title: Re: First diy keyboard in progress
Post by: metalliqaz on Wed, 23 April 2014, 13:35:26
He likes it hairy :p
Title: Re: First diy keyboard in progress
Post by: Melvang on Wed, 23 April 2014, 22:10:11
Machining porn in awesome.  For a way to mount the teensy check this link (http://geekhack.org/index.php?topic=45587.msg955666#msg955666).  On the second page there is a second version where the mount holes are on the sides instead of the ends so that the break out board puts the teensy port at the edge instead of inside the board.  This was done for people using it as an external converter for terminal boards.

I love the simplistic feel and the look of the raw metal.  By the looks of things I am guessing aluminum?  What grade if I may ask.

Sending you a PM regarding machining questions.

You should have a look at my project.  Check the M-64 link in my signature.
Title: Re: First diy keyboard in progress
Post by: Charger on Wed, 23 April 2014, 23:48:58
Machining porn in awesome.  For a way to mount the teensy check this link (http://geekhack.org/index.php?topic=45587.msg955666#msg955666).  On the second page there is a second version where the mount holes are on the sides instead of the ends so that the break out board puts the teensy port at the edge instead of inside the board.  This was done for people using it as an external converter for terminal boards.

I love the simplistic feel and the look of the raw metal.  By the looks of things I am guessing aluminum?  What grade if I may ask.

Sending you a PM regarding machining questions.

You should have a look at my project.  Check the M-64 link in my signature.

I ended up doing the diy home version of the board that was shown in that thread. Just like I posted in that thread about making on out of perf board. I originally directly wired to the teensy so I had to desolder it and remove the old solder to put it on headers pins to solder it to perf board though.
(http://i.imgur.com/TXwNKA4.jpg)
It has a removable usb cable but you have to remove 6 screws to get to it.
(http://i.imgur.com/zzyfnu7.jpg)

Yes it is made of aluminum I thought i posted that, however i don't know what grade it is as it was just scrap I got for free and I tend to not question free metals unless we are talking tool steels.

the keyboard only cost me $50 usd total and that was just the original keyboard and the teensy. It also weighs 4.064 lb as a completed keyboard so it sure isn't the lightest keyboard around lol.
Title: Re: First diy keyboard in progress
Post by: Melvang on Thu, 24 April 2014, 00:18:52
Nice work.  I would love to see that thing with a proper brushed finish.
Title: Re: First diy keyboard in progress
Post by: Charger on Thu, 24 April 2014, 00:42:18
Nice work.  I would love to see that thing with a proper brushed finish.

So do I but after switching back to my $9 logitech keyboard for 2 weeks I just wanted to put this on back together for a bit. I don't view it as done by any means its just on its 3rd stage of usability until I decide to work on it again. As it sits right now i just did some sanding with 180 grit also known as what was next to me at the time and wiped it down and put some wax on it to keep it look like it does for a bit. It has some deeper marks that will take some work to sand out of the top as it looked about as bad as the bottom does in the photo of the teensy
Title: Re: First diy keyboard in progress
Post by: Melvang on Thu, 24 April 2014, 00:46:55
Nice work.  I would love to see that thing with a proper brushed finish.

So do I but after switching back to my $9 logitech keyboard for 2 weeks I just wanted to put this on back together for a bit. I don't view it as done by any means its just on its 3rd stage of usability until I decide to work on it again. As it sits right now i just did some sanding with 180 grit also known as what was next to me at the time and wiped it down and put some wax on it to keep it look like it does for a bit. It has some deeper marks that will take some work to sand out of the top as it looked about as bad as the bottom does in the photo of the teensy

A good hard anodization will help with keeping it from scratching.
Title: Re: First diy keyboard in progress
Post by: Charger on Thu, 24 April 2014, 01:27:22
A good hard anodization will help with keeping it from scratching.

I'm not really sure how it is going to be finished in the long run. I'm guessing it is some kind of cheap extruded aluminum so i don't know how well it will take anodizing. I do have the equipment on hand however to paint it with automotive paint so that may end up being the way it goes unless I just keep it raw and do it as brushed or engine turned pattern. Powder coat or anodizing would be better options though depending on how much  they would end up costing.   
Title: Re: First diy keyboard in progress
Post by: arbit on Wed, 07 May 2014, 19:21:28
so cool!

I thought i would update this with what the keyboard looks like right now.

I spent some time and finally made a new case for the keyboard it is machined out of 2 pieces of 1/2" plate that bolt together. Also you can see a key cap i made some time back out of a stainless bolt.

Show Image
(http://i.imgur.com/7K1Dm9H.jpg)

Show Image
(http://i.imgur.com/gZuPlsj.jpg)

Title: Re: First diy keyboard in progress
Post by: Charger on Wed, 17 September 2014, 05:41:53
my keyboard now has some new friends to hang out with
(http://i.imgur.com/0oNly33.jpg)

More
(http://i.imgur.com/lrP7STJ.jpg)
(http://i.imgur.com/OI1kq16.jpg)
(http://i.imgur.com/Z1J5hDi.jpg)
(http://i.imgur.com/ymgeb6R.jpg)
(http://i.imgur.com/MBegezf.jpg)
(http://i.imgur.com/3Ac59Vo.jpg)
(http://i.imgur.com/DYOF2kh.jpg)
(http://i.imgur.com/wf4Vguo.jpg)