r/DIY • • Mar 21 '15

electronic I retrofitted a Raspberry Pi 2 inside a mechanical keyboard. Details inside!

http://imgur.com/a/EzOrn
5.2k Upvotes

411 comments sorted by

437

u/b10nik Mar 21 '15

I had fallen in love with mechanical keyboards, but since I am fine using the keyboard on my laptop, I created an excuse to buy me one. I decided to retrofit a Pi inside my keyboard.

It has two modes, it works as a regular keyboard, or it can be used as a computer.

Full project log here: http://sneek.co/blog/project-kiiboard/

70

u/[deleted] Mar 21 '15

Can we get a video of this working?

51

u/b10nik Mar 21 '15 edited Mar 22 '15

I'll post one later :)

Edit: Here: https://www.youtube.com/watch?v=oqYqBkmrhO8

→ More replies (25)

9

u/soundShinobi Mar 21 '15

This is an awesome mod! Great job! What 3d printer you have? I think I might need to purchase on in the future!

13

u/b10nik Mar 21 '15

This was printed on my friend's reprap.

4

u/[deleted] Mar 21 '15

Do you still have the file for the part? Would be appreciated

→ More replies (1)
→ More replies (1)

5

u/CaptainRuhrpott Mar 21 '15

Your site gives me a Database Error :( Error establishing a database connection

4

u/b10nik Mar 21 '15

Yeah, you guys DDOSsed it down. Should work now, installed a better cache. :)

4

u/VexingRaven Mar 22 '15

Good guy Reddit helping Good God OP improve his website!

14

u/Omnilatent Mar 21 '15

Might be a stupid question but how did you manage to connect your keyboard to the pi in order to use it with it?

0

u/[deleted] Mar 21 '15

[deleted] — view deleted comment

31

u/b10nik Mar 21 '15

No, the keyboard is wired internally, and in Pi mode it uses the usb for power.

→ More replies (4)

8

u/CLT_LVR Mar 21 '15

hahahaha

sorry, that caught me off-guard with it's relevance

→ More replies (2)

4

u/_scape Mar 21 '15

site is dead :/ what keyboard is this? wasd?

3

u/b10nik Mar 21 '15

Fixed the site. The kb is WASD v2 TKL

20

u/potatoworld Mar 21 '15

Can you use it as a keyboard for the pi?

159

u/Kitchenfire Mar 21 '15

Nah, that's why there's the usb ports. Gotta plug a second keyboard into the modded keyboard.

4

u/b10nik Mar 21 '15

I hope this was sarcasm :)

→ More replies (1)

93

u/potatoworld Mar 21 '15

Can you just plug it into itself?

39

u/fr3ddie Mar 21 '15

you would need a double ended male usb cable which is illegal and highly dangerous!

→ More replies (3)
→ More replies (13)

38

u/nplus Mar 21 '15

I believe that's the point.

5

u/b10nik Mar 21 '15

Correct :)

10

u/JimboLodisC Mar 21 '15

Nope. Pi's are only compatible with external keyboards.

29

u/beckertastic Mar 21 '15

This is an exoskeletal keyboard, so that's external too.

→ More replies (3)
→ More replies (1)

166

u/HiimCaysE Mar 21 '15

Finally, my Commodore 64 is back in style!

41

u/Mr--Beefy Mar 21 '15

My first thought: I wonder if my TRS-80 is still sitting in a box somewhere.

Awesome project, OP!

16

u/chubbyhorse Mar 21 '15

Please be a model III... Fact: I still have a trsDOS 6 disk on my desk.

19

u/[deleted] Mar 21 '15

Nice. I still use my Commodore 64, since 1983.

→ More replies (1)
→ More replies (7)

22

u/[deleted] Mar 21 '15

what kind of chip you got in there? A Dorito?

18

u/cybercobra Mar 21 '15

Your Windows boots up in, what, a day and a half?

6

u/-poop Mar 21 '15

Arduito?

→ More replies (2)

30

u/dre__ Mar 21 '15 edited Mar 22 '15

You should edit your address out of the image. You might get a shit load of glitter bombs.

→ More replies (3)

5

u/xmagusx Mar 21 '15

A good resource for you would be geekhack.org if you're not already a member. And those guys I'm sure would love to see this project!

10

u/insertusPb Mar 21 '15

Not quite a Fairlight Excalibur but still really cool! Bonus for the mechanical keyboard, old school cool!

11

u/Bashasaurus Mar 21 '15

wow I never expected those neurons that remembered cyberdeck names in shadowrun to fire again. Cheers!

8

u/Booblicle Mar 21 '15

Not just old school cool. They are still the best keyboards on the market.

2

u/txzen Mar 21 '15

which

Null sweet in you're struggles.

→ More replies (2)

3

u/[deleted] Mar 21 '15

I'm getting a database error when I try to visit your website.

3

u/theLine7 Mar 21 '15

Error establishing a database connection... too bad :(

2

u/awuerth Mar 21 '15

Next step. Attach a small 3 inch screen to the keyboard.

→ More replies (9)

57

u/Zaxous Mar 21 '15

I'd like to see it run!

25

u/[deleted] Mar 21 '15

I'd like to see a vanity shot of it running an Amiga emulator.

2

u/stankbucket Mar 21 '15

Wouldn't it run just like any other pi?

46

u/deiphiz Mar 21 '15

Where does the power for the pi come from? Can you still use an AC adapter or does it share power from the keyboard's USB connection?

32

u/b10nik Mar 21 '15

USB power adapter, using the usb cable, in either one of the modes.

8

u/Senojpd Mar 21 '15

So if you want to use the keyboard for the Pi you plug it into itself :D?

The Pi needs an external power supply always right?

3

u/jordan042 Mar 21 '15

Or just plug it into a wall outlet. No need to plug it into itself.

4

u/Senojpd Mar 21 '15

If he wanted to use the keyboard with the Pi he would need to plug the keyboard into the Pi no?

20

u/jordan042 Mar 21 '15

The keyboard's already hardwired to the Pi, and there's a switch on the back for switching between keyboard and computer modes so you don't have to do all that.

→ More replies (3)

4

u/grape_jelly_sammich Mar 21 '15

VERY nice keyboard. Where did you get it from?

EDIT: also, could you share the file of the 3D printed parts?

good job with this dude!!

4

u/squeezeonein Mar 21 '15

I don't see a power jack for the pi. And don't tell me you can power it from usb.

1

u/b10nik Mar 21 '15

Of course you can :)

→ More replies (1)

2

u/[deleted] Mar 21 '15

USB comes in several flavors now, [most do support as much as 500mA of current draw] (http://www.ti.com/lit/an/slyt118/slyt118.pdf).

18

u/0d1 Mar 21 '15

I don't understand what i'm seeing. Can someone maybe explain in what way this can be used?

18

u/froughty Mar 21 '15

A Raspberry Pi is a really small computer. The OP just integrated a computer into his keyboard. He can use it for almost anything you use your computer for.

4

u/b10nik Mar 21 '15

That's right :)

19

u/Marilynnn Mar 21 '15

So it means he'd just need the keyboard and a monitor?

→ More replies (4)

134

u/ImLyingToYouRightNow Mar 21 '15

I made this detailed diagram to explain how it works.

Sorry if it's too technical.

http://imgur.com/AWkrU1m

21

u/0d1 Mar 21 '15

Finally an answer I can understand.

6

u/astheriae Mar 21 '15

The eyes are terrifying

3

u/Sexsellz Mar 21 '15

I love you for this picture!

3

u/fipfapflipflap Mar 21 '15

It has two modes, it works as a regular keyboard, or it can be used as a computer.

3

u/foobar5678 Mar 21 '15

That is a beautiful keyboard.

1

u/b10nik Mar 21 '15

Thanks :)

3

u/[deleted] Mar 21 '15

Ive now ordered all the parts to make this. Thanks!

1

u/b10nik Mar 21 '15

Nice! Please share the results :)

3

u/bitbang Mar 21 '15

That's awesome! One question (or suggestion?) though - does it work with a mouse when being used as a keyboard?

As in, to use it as "the Pi", you'd presumably have a mouse plugged into the keyboard/Pi to use - when you use it as "the keyboard", does it have USB passthrough of the mouse? Or do you need to plug the mouse out and back into the PC?

1

u/b10nik Mar 21 '15

I didn't implement a USB hub, unfortunately.

1

u/bitbang Mar 21 '15

It's really cool regardless :) thanks for replying!

1

u/b10nik Mar 21 '15

No problem :)

3

u/GeminiCroquette Mar 24 '15

Why does every hipster nowadays have to use shitty filters on their photos? Jesus man.

2

u/b10nik Mar 24 '15

Relax a little

2

u/GeminiCroquette Mar 24 '15

I AM RELAXED.

::relaxing intensifies::

2

u/Marilynnn Mar 21 '15

Sorry for the off-topic comment, but may I know what camera you're using?

3

u/b10nik Mar 21 '15

Sony NEX-3 with 50mm f/1.8 OSS

2

u/DearLunar Mar 21 '15

suomi mainittu...

2

u/b10nik Mar 21 '15

Torilla tavataan!

2

u/DearLunar Mar 21 '15

huomasin vielä paketista että humalistonkatu 8b :3

2

u/nog00der Mar 21 '15

where do you find those surface mount USB ports? or are they part of the PII? i cant find them, i want to put some in my car to charge stuff.

2

u/Angelus333 Mar 21 '15

How did you create two modes? Did you use a "single throw double pole switch" of some sort?

1

u/b10nik Mar 21 '15

It's explained in the build log: http://sneek.co/blog/project-kiiboard/

2

u/Dolphintorpedo Mar 21 '15

I'm confused, is this a WORKING keyboard and computer? or just a computer in a keyboard

3

u/b10nik Mar 21 '15

I have a switch to choose between a keyboard which I can connect to my pc, or use the included computer with the same keyboard connected to it.

2

u/trshtehdsh Mar 21 '15

Missing the money shot of it in action, but super cool.

23

u/reddeth Mar 21 '15

I would love to see this with a Tex Yoda. Everything integrated with a keyboard and mouse, that would be pretty awesome.

3

u/Harbec Mar 21 '15

That would be epic. Might have more room with a Unicomp though.

15

u/iismatthew Mar 21 '15

What I've leaned from /r/diy

I need a 3d Printer.

→ More replies (1)

14

u/jeffbingham Mar 21 '15

How powerful is the Pi 2? What can you do on it? What would you compare it to? Tablet, phone?

18

u/nphekt Mar 21 '15

A phone. Comparable with a Samsung S2.

2

u/UselessBread Mar 21 '15

Can you compare it to old desktop hardware? I never used a phone for anything productive, so that is a bit difficult to judge...

5

u/Intentt Mar 21 '15

Roughly the same as the original Xbox. Kinda in between the Intel P2/P3. Hard to do a direct comparison though as the Pi has multiple cores.

8

u/theidleidol Mar 21 '15

It's hard to compare ARM to desktop processors but I'd ballpark it as similar to a low-end Core 2 Duo (from ~2007).

4

u/Widdershiny Mar 21 '15

I am using the previous version of the Raspberry pi, which is maybe half as powerful or less to run a web server and stream a webcam. It's slow to use, but does the job. I can imagine an RPi2 being a very productive device

8

u/motsanciens Mar 21 '15

All good questions. Too bad the answers aren't easy to find.

→ More replies (1)

2

u/lennyoliy Mar 22 '15

Don't really know a good comparison (others have made better ones than what I could do) but I know specs. The RPi 2 has a gigabyte of RAM and a 900MHz processor. For comparison, a mid-range computer could have 8GB RAM and maybe 3-4 GHz processing. I'm terrible at ELI5 :/

10

u/GrammarNaziABC Mar 21 '15

So cool, imagine doing something like this in a Model M, that would make so many people jealous and surprised. I'm jealous as well.

I need to do this.

19

u/[deleted] Mar 21 '15

We've gone full circle.

→ More replies (3)

17

u/ClearPepsi Mar 21 '15

You had me at mechanical keyboard and 3D printed backplate. Thanks for not just cutting an ugly square hole and letting the port protrude.

37

u/beckertastic Mar 21 '15

Sometimes, after a long day of work, I like to just veg out on the couch and let my port protrude.

8

u/everything_is_penis Mar 21 '15

Yes, like penis. I get.

7

u/[deleted] Mar 21 '15

The comments on imgur are so hilarious and clueless, it's entertaining... Anyways, this is friggin awesome, I thought about doing it while looking at Commodore online for sale, you could totally gut one and put some decent hardware in it now. Thanks to rpi's and arduino's so many old pieces of hardware can live new lives!

7

u/hyoooooooooooooooooo Mar 21 '15

Wait, so......the files are IN the keyboard?

[monkey sounds]

[loud banging]

4

u/333-onlyhalfbad Mar 21 '15

Just an FYI, your address and make are clearly visible on the picture of the package. You may want to redact it.

5

u/[deleted] Mar 21 '15

But how else would we subscribe him to gay-porn and the likes?

0

u/[deleted] Mar 21 '15

[deleted] — view deleted comment

1

u/b10nik Mar 22 '15

Welcome :D

13

u/TotesMessenger Mar 21 '15

This thread has been linked to from another place on reddit.

If you follow any of the above links, respect the rules of reddit and don't vote. (Info / ^Contact)

8

u/[deleted] Mar 21 '15

Nice 'deck, chummer.

1

u/allen_abduction Mar 21 '15

OP, nice work. How's the static?

1

u/b10nik Mar 21 '15

No problems, I had some static on HDMI but I put the wires tighter together and it was gone.

1

u/[deleted] Mar 21 '15

Did you get those keycaps with your WASD or are they from a custom set? I really want a set of those keys for my WASD now!!

1

u/b10nik Mar 24 '15

I designed the colors when I ordered the keyboard, but you can order a custom keycap set from WASD, too.

6

u/D4rkM4gic Mar 21 '15

DUDE!

That is AWESOME :D

3

u/FormerlyGruntled Mar 21 '15

It looks like you may be able to rig up a battery pack to run the thing when you're roaming. From there, you may be able to do some sort of screen share to a cellphone and use it as a remote on-the-go deck to do whatever nefarious tasks may be required of your skills.

3

u/ehobax Mar 21 '15

You just made a VIC-20!

→ More replies (1)

3

u/mahsub Mar 21 '15

How many money would you like in exchange for one of this?

5

u/complex_reduction Mar 21 '15

1980's me just exploded from joy.

I'm not sure how the new Pi stands up to traditional CPU's exactly but I'm willing to bet it's a sight faster than the AMIGA I used to game on, massive beige clunker.

What a time to be alive. If only you could install Windows on it, these would sell by the million.

5

u/Jerry_Hat-Trick Mar 21 '15

It remind s me of a C64!

8

u/worldspawn00 Mar 21 '15

Microsoft announced official support for windows 10 on the newest Pi model. :)

5

u/karmahawk Mar 21 '15

While that sounds all well and good you're really just getting the operating system. Because none of the software was written for it's CPU architecture, so its not like you can run an application written for a previous version of Windows. Technically speaking there could be Windows RT support. Although that bit of fragmentation doesn't really fit with Microsoft's push for universal software.

In other words, you're installing it for more stable OS experience and to support a vision that's yet to happen. Porting applications, cloning software that's in demand, and writing new stuff is likely going to be a drawn out process. Lots of individual/collabs and startups trying to make a name for themselves are likely going to be the only ones in the space for a couple years.

→ More replies (1)

3

u/Graham110 Mar 21 '15

I believe you can install windows on it with a few extra steps

→ More replies (12)

3

u/pirateninjamonkey Mar 21 '15

Starting in the summer you can. Also Microsoft is giving windows 10 for it for free.

2

u/sudo-intellectual Mar 21 '15

They've sold them by the million, before there was even a pi that could take windows.

2

u/complex_reduction Mar 21 '15

Sorry, I meant specifically the idea of a keyboard + Pi. Every single office in the world would want one.

4

u/sacesu Mar 21 '15

That's going to make IT go insane.

"My email won't load."

"Ok, have you tried restarting your computer."

"Yeah I keep pressing the button but it just says, 'No input, going to sleep.'"

"Ok, that's just the monitor. Is the computer turned on and connected?"

"The keyboard is on my desk."

"But is it plugged....ah fuck it I'm walking up."

→ More replies (1)

3

u/xanxer Mar 21 '15

Windows 10 will run on it.

2

u/ericanderton Mar 21 '15

Nice build!

I considered doing this with an old Model-M keyboard. Tons of room inside those.

2

u/PradaLoci Mar 21 '15

It's finished! Amazing work, honestly this is so cool. Thanks for posting on /r/mechanicalkeyboards aswell, we appreciate it. :)

Next step: Fit this inside a mouse. ~.^

6

u/birdgoestweet Mar 21 '15

Next step: Fit this inside a mouse

Or even inside a phone! A computer in a phone, he should call it the piPhone.

2

u/[deleted] Mar 21 '15

Why?

2

u/DAN991199 Mar 21 '15

awesome job

2

u/TwistedBlister Mar 22 '15

Why doesn't somebody just make and sell these?

3

u/random_name_pi Mar 21 '15

R/raspberrypi

1

u/froughty Mar 21 '15

Amazing!

1

u/Neshgaddal Mar 21 '15

Very nice project. Something to keep in mind if i ever decide to replace my 1994 Cherry G80.

1

u/[deleted] Mar 21 '15

So legit, all you need to do is plug into a screen and run! Brilliant.

1

u/[deleted] Mar 21 '15

This is beautiful! I am no maker myself but am really interested in making such things! I am a Raspberry Pi enthusiast, though never have owned one. But i am surely gonna buy one this summer and make something.

I am just so impressed by the minimalistic looks of this keyboard!

1

u/[deleted] Mar 21 '15

Very cool! I'm impressed. But the wire routing?! yikes!

1

u/Hotblack_Desiato_ Mar 21 '15

Quite frankly, I'm disappointed that we haven't seen a picture of the keyputer operating whilst plugged into itself.

1

u/strategicfish Mar 21 '15

This is amazing!! I need this in my life.

1

u/shentheory Mar 21 '15

Definitely going to do this. Now just go one step further and 3d print the keyboard itself!!!

1

u/memory_card Mar 21 '15

That's the most... reddit-headliniest thing in the world to do with your technical skills.

1

u/TheCarpetPissers Mar 21 '15

so, what can you do with this?

→ More replies (1)

1

u/swashlebucky Mar 21 '15

I've been thinking about doing something like this and wondered why nobody seems to have done it before. Props to you OP!

1

u/[deleted] Mar 21 '15

Sometimes you just need to put a computer into your keyboard.

1

u/[deleted] Mar 21 '15

Damn dude I thought my plan was original. You did a killer job though, this is gorgeous.

1

u/916253 Mar 21 '15

Awesome work op. I have a rpi model b that I haven't plugged in in over a year, I kind of feel bad about not using it

1

u/paingawd Mar 21 '15

RemindMe! One Week "Mech Pi Keyboard Mod"

→ More replies (1)

1

u/Rrraou Mar 21 '15

It's like you built a modern commodore 64 :)

1

u/AkirIkasu Mar 21 '15

Your next task is to build a screen into it.

1

u/d2xdy2 Mar 21 '15

This is pretty awesome. Nice retro vibe, and very functional/usable. Good work with the 3d printed part, too-- i'd have hacked the back of the keyboard up with a soldering iron or a cutting wheel or something.

1

u/toastedjelly_ Mar 21 '15

This is VERY cool

1

u/Kirlyn Mar 21 '15

Where is the pie that I was promised!?

1

u/karafili Mar 21 '15

do you sell this?

1

u/he_must_workout Mar 21 '15

This is a really cool project.. I might try my hand at something like this soon.

1

u/skunkybomont024 Mar 21 '15

where is the raspberry pi software available??

→ More replies (1)

1

u/EasyPanicButton Mar 21 '15

VIC-20. Wish I kept it.

1

u/Wowtcg12 Mar 21 '15

I'm so confused as to what you actually did

1

u/[deleted] Mar 21 '15

Ahhh back to the 80s

1

u/makeFunOfYourGayShit Mar 21 '15

What the hell would you use this for...?

1

u/SirDolphin Mar 21 '15

Cherry Pi?

1

u/poopybeard Mar 21 '15

I solder wiring a lot in automobiles at my job, but I am so envious of your work. I thought of a delicious treat when I read 'raspberry pi' but this is an awesome project. Great job!

1

u/noob-smoke Mar 21 '15

so wtf happened

3

u/Furah Mar 22 '15

They now have a keyboard, with a credit card-sized computer in it. When the Pi is turned off, the keyboard will function as a regular keyboard. When it's turned on, it functions as a keyboard for the Pi, meaning that you could plug it into a TV through the HDMI port, and use it like you were plugged into a computer. In a way, you could think of it as a DIY Commodore 64.

→ More replies (3)

1

u/drpestilence Mar 22 '15

That is fucking slick.

1

u/machete_io Mar 22 '15

an iso enter key, what kind of monster are you?

1

u/Okiah Mar 22 '15

Reminds me of my Amiga A1200 back in the 90s.

1

u/FingFrenchy Mar 22 '15

I would buy this. Really well done!

1

u/darkjedi1993 Mar 22 '15

This is genius! I really do love this mod! I would play the shit out of Quake 3 Arena with this build!

As much as I LOVE ARM processors, I'm really hoping the next iteration of the Raspberry Pi uses a small Intel processor. It would be REALLY cool if they had a fork of the RasPi made by the same company with an Intel processor (one having an ARM processor and one having the Intel processor, both with the same amount of RAM, maybe a GB more...).

1

u/dogenado Mar 22 '15

I've been wanting something like this for awhile. Reminds me alot of the Commodore VIC slim from the now defunct Commodore-USA

1

u/qwerpoiu43210 Mar 22 '15

Awesome! That would be fun walking around with a keyboard then plugging it to a monitor/projector to surprise people.

1

u/[deleted] Mar 22 '15

This is fucking awesome.

1

u/cha5m Mar 22 '15

Ah you must be a vim user

1

u/m0nde Mar 22 '15

new age C64! good job!

1

u/85218523 Mar 22 '15

Wow, this looks super clean. Great job!

1

u/watchtouter Mar 22 '15

this is brilliant. how does the new pi handle?

1

u/KxDow Mar 22 '15

Wow this is insane 10/10 would buy.

1

u/meat_popscile Mar 22 '15

Hmmm, I've got an Atari 600XL I should try to mod a Pi2 into.

1

u/tinyzor Mar 22 '15

C64 forever!

1

u/The-infamous-lampy Mar 22 '15

What a brilliant idea! By far the neatest solution to a Raspberry Pi case that I have seen.

1

u/Dr_SnM Mar 22 '15

OP you are rad. This is a nice little project.

1

u/VrooM3 Mar 22 '15

Okay, so after Googling, I'm still not sure what a Raspberry Pi 2 is. But this did make me decide that I want to mod my keyboard. But I just want to have better USB ports. Like... ones I can charge phones off of and stuff. Which seems easy to do and I'm not sure why companies don't do it.

1

u/recludo Mar 22 '15

came looking for Xzibit. theres gotta be a Yo Dawg in here somewhere.

1

u/[deleted] Mar 26 '15

This is fantastic.