geekhack

geekhack Projects => Making Stuff Together! => Topic started by: tlem on Thu, 30 October 2014, 22:02:48

Title: k2-mouse
Post by: tlem on Thu, 30 October 2014, 22:02:48
This is k2-mouse. 



Timeline

Ideas and Design
March-July

Shopping
June-August

Assembly
August-October



The initial ideas


As you will see, not everything was realized.  Maybe I will revisit some ideas in the future.



Gallery


The case is made of 3 acrylic layers.  The middle is a 9mm white piece.  The bottom (and top) is a 3mm silver piece.  The middle and bottom layers are glued together.  This picture shows the bottom part of the right-hand case.

More
(http://i.imgur.com/zZNXYrg.jpg)


The top part of the right-hand case.  The white pieces are glued on and tapped (M2).

More
(http://i.imgur.com/V4rMKqh.jpg)


The bottom part of the left-hand case

More
(http://i.imgur.com/jKbwnOu.jpg)


The top part of the left-hand case.  The glue is Weld-On 4.

More
(http://i.imgur.com/rbTre6h.jpg)


The left-hand case and PCB.  Some components have been soldered.  The reset button resets the keyboard, but I have to ground PE2 at the same time to enter programming mode.  Maybe this is only for PJRC's 32U4 chip, which I am using.

More
(http://i.imgur.com/PyQf91U.jpg)


The HDMI connector was difficult to solder with an iron.  The pins are about twice as dense as the ATmega32U4.

More
(http://i.imgur.com/Xqsk7o9.jpg)


The underside of the left-hand PCB

More
(http://i.imgur.com/J2mN23n.jpg)


The right-hand PCB is the same as the left, but I cut off the mini USB part.

More
(http://i.imgur.com/509U96e.jpg)


The bottoms of the cases were filed at the location of the stabilizer screws.  O-rings were added to sit in between the PCB and case.

More
(http://i.imgur.com/GA9h5An.jpg)


The MX leads and support legs were trimmed.

More
(http://i.imgur.com/Q4EuCTT.jpg)


The switches and stabilizers installed

More
(http://i.imgur.com/MIEwUwG.jpg)


Laser cutting 9mm pieces is not the best.  One side of the cuts is nice.  The other side not so much.

More
(http://i.imgur.com/BqqfpQL.jpg)


Keycaps installed

More
(http://i.imgur.com/a5i9CkT.jpg)


The connectors

More
(http://i.imgur.com/QIB2fFa.jpg)


Everything is assembled.  The HDMI cable is from Monoprice.  I would have liked to use thin cables from ebay, but they were missing some of the 19 HDMI wires.

More
(http://i.imgur.com/gI1hOYO.jpg)



CAD files

The PCB and case was designed in KiCad.  Here are the files.

https://drive.google.com/file/d/0B4DQH9OMBEIAaWgxVmhDT2c1ekU/view?usp=sharing (https://drive.google.com/file/d/0B4DQH9OMBEIAaWgxVmhDT2c1ekU/view?usp=sharing)



Cost

The PCB and case cost around $350.  I don't want to add up the rest.



Thanks to

bpiphany's ErgoDox PCB files - has useful footprints
http://ergodox.org/downloads.aspx (http://ergodox.org/downloads.aspx)

komar's GH60 PCB files - BOM has some low price components
http://blog.komar.be/projects/gh60-programmable-keyboard/ (http://blog.komar.be/projects/gh60-programmable-keyboard/)

hasu's TMK firmware
https://github.com/tmk/tmk_keyboard (https://github.com/tmk/tmk_keyboard)

matt3o's guide on how to customize TMK
http://deskthority.net/workshop-f7/how-to-build-your-very-own-keyboard-firmware-t7177.html (http://deskthority.net/workshop-f7/how-to-build-your-very-own-keyboard-firmware-t7177.html)

Ivan for his keycap and stabilizer group buys

7bit for switches

jdcarpe for pointing out the 32U4 being sold by PJRC.  When I was shopping, the chip was not in stock in my preferred shop.
http://geekhack.org/index.php?topic=48851.msg1248125#msg1248125 (http://geekhack.org/index.php?topic=48851.msg1248125#msg1248125)

how a key matrix works
http://pcbheaven.com/wikipages/How_Key_Matrices_Works/ (http://pcbheaven.com/wikipages/How_Key_Matrices_Works/)

learning PWM for AVR
https://www.youtube.com/watch?v=ZhIRRyhfhLM (https://www.youtube.com/watch?v=ZhIRRyhfhLM)
Title: Re: k2-mouse
Post by: jacobolus on Thu, 30 October 2014, 22:09:35
Some of those keycaps are silly big for the context, but in general, looks awesome! Congrats.
Title: Re: k2-mouse
Post by: jacobolus on Thu, 30 October 2014, 22:11:13
What’s the logical layout? I.e. which keys do what, on every layer you use?
Title: Re: k2-mouse
Post by: dorkvader on Thu, 30 October 2014, 22:28:17
Oh my goodness that's awesome! It's like a larger, better, ergodox! That HDMI cable is a little overkill with those two ferrites on it: maybe consider replacing it with a lighter cable if you think it's stessing the jacks too much.

I like the fullsize enter key and the use of shift keys for the thumbs. Spacebar for the palm button bump bar is also great. Lots of good ideas here. I also like how you can use normal keycaps on it.

I'd like to know the layout as well.

How are you adjusting to it? I don't know if I'd like the ?/ key on the middle like that, but I'm more used to dvorak placement with it near its counterpart \|
Title: Re: k2-mouse
Post by: CPTBadAss on Thu, 30 October 2014, 22:35:07
Actually Jacobus, I think that keycap setup makes a lot of sense. It looks like it's minimal hunting for odd ball caps. A TKL set and some spares some EK if I'm not mistaken. Dorkvader of course pointed this out right before me as well. :)

Tlem, this is incredible. I too would love to hear what you're layout is. And I love that your using Cherry/GMK caps. Would it be possible to see a typing test or video?

Regardless, great job and thank you for the build log.
Title: Re: k2-mouse
Post by: nubbinator on Thu, 30 October 2014, 23:26:49
There are very few projects that make me stop and go holy crap. This is one of them.  It looks fantastic and pretty damn easy to use...if I could get used to the new layout in the middle.  It makes sense, but it's still an unusual one.

How is the palm space bar working?  It's an usual concept that I could see potentially causing ergonomic issues from flexing your wrist up and down. 
Title: Re: k2-mouse
Post by: obra on Thu, 30 October 2014, 23:27:31
Very, very nice work!
Title: Re: k2-mouse
Post by: tlem on Thu, 30 October 2014, 23:33:47
Here is my key map.  I am only using 1 layer.  I don't use the ones with red letters, so I will either not use them or remap them later.

(http://i.imgur.com/GU9S06U.jpg)

I would like to get cables without the ferrite cores, but I am not sure where to get short ones with all 19 pins connected.
Title: Re: k2-mouse
Post by: dorkvader on Thu, 30 October 2014, 23:35:46
omg I love it. Please tell me you have a spare set of PCBs available.

Since you have 19-pin HDMI cables, might I assume you are just transposing the matrix from one side to the other?
Title: Re: k2-mouse
Post by: nubbinator on Thu, 30 October 2014, 23:41:03
Oh, I like the space bar as control. The layout looks a lot easier to get adjusted to now, but would make for awkward Ctrl+Alt combos. 

Don't let tp see this though, he may have to give up on his precious ergodox.
Title: Re: k2-mouse
Post by: dorkvader on Thu, 30 October 2014, 23:47:21
Oh, I like the space bar as control. The layout looks a lot easier to get adjusted to now, but would make for awkward Ctrl+Alt combos. 

Don't let tp see this though, he may have to give up on his precious ergodox.

Yeah Some people (myself included) already use CTRL with the palm of their hands (I have flexible fingers, not as bad as paganini though)  so this is an easy step.

B'sides you can use them for basically anything. I love it. I'd probably use them as function or ctrl, depending on what layout.
Title: Re: k2-mouse
Post by: jacobolus on Fri, 31 October 2014, 00:01:07
Actually Jacobus, [sic] I think that keycap setup makes a lot of sense.
I didn’t say it didn’t make sense! I said it was silly. :-)
Title: Re: k2-mouse
Post by: tlem on Fri, 31 October 2014, 21:03:13
omg I love it. Please tell me you have a spare set of PCBs available.

Since you have 19-pin HDMI cables, might I assume you are just transposing the matrix from one side to the other?

Sorry I don't have extras.

The 7 rows on the left are connected to the same 7 rows on the right.  7 unused pins from the 32U4 are connected to the columns on the right.  Then I can configure TMK as if it was a 7 row, 14 column board.  2 unused pins are also connected to leds on the right (F5, F6, F7, and F8 are leds).
Title: Re: k2-mouse
Post by: Coreda on Fri, 31 October 2014, 21:09:29
Came in expecting a mouse I'd never heard of  :)) Is it a reference to something? Either way, very nice work there OP  :thumb:

Edit: I must be blind, didn't notice the trackpoint in the description, although I can't see it in the photos.
Title: Re: k2-mouse
Post by: frosty on Sun, 02 November 2014, 10:54:01
Ya! I thought you made a orb weaver with mouse functions like a mouse keyboard of sorts
Title: Re: k2-mouse
Post by: cinnamonrollz on Mon, 03 November 2014, 20:30:35
Smoking k2 is bad. Dont try it. Won't likely mix with mouse very well