geekhack

geekhack Projects => Making Stuff Together! => Topic started by: ezrahilyer on Mon, 08 December 2014, 21:05:42

Title: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: ezrahilyer on Mon, 08 December 2014, 21:05:42
I built a Raspberry Pi inside an Apple Extended Keyboard. This is my project:

http://straypoetry.com/project/raspberry-pi-inside-a-vintage-mechanical-apple-extended-keyboard/ (http://straypoetry.com/project/raspberry-pi-inside-a-vintage-mechanical-apple-extended-keyboard/)


I also did a model M, and probably will make some more, I am thinking of making a dedicated Emacs machine with one of the smaller ALPS boards that has Control where the caps lock button usually is.

(http://straypoetry.com/wp-content/uploads/2014/12/IMG_2122.jpg)


Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: MGH on Mon, 08 December 2014, 21:12:27
Got any pictures of the internals?
Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: ezrahilyer on Mon, 08 December 2014, 21:13:44
Got any pictures of the internals?

I do, follow the link above the picture, and you can see how I did it.
Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: MGH on Mon, 08 December 2014, 21:15:40
Got any pictures of the internals?

I do, follow the link above the picture, and you can see how I did it.
Oh wow, the Pi is way smaller than I thought it would be :eek:
Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: ezrahilyer on Mon, 08 December 2014, 21:36:19
Got any pictures of the internals?

I do, follow the link above the picture, and you can see how I did it.
Oh wow, the Pi is way smaller than I thought it would be :eek:

It is pretty small, but actually pretty capable. There is plenty of room inside the AEK case, I am surprised there is so much empty space in there.
I was even thinking of putting a Macbook Air logic board in there to make it come full-circle. I am about 90% sure I could pull it off with no trouble.

Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: rowdy on Mon, 08 December 2014, 22:26:58
Very well done!

And probably at least 100 times faster than the original Apple computer the keyboard was connected to.
Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: ezrahilyer on Sat, 20 December 2014, 20:44:41
Made it onto Hackaday.com : http://hackaday.com/2014/12/10/vintage-apple-keyboard-revived-as-standalone-computer/ (http://hackaday.com/2014/12/10/vintage-apple-keyboard-revived-as-standalone-computer/)

and the Adafruit blog: https://www.adafruit.com/blog/2014/12/19/raspberry-pi-inside-a-vintage-mechanical-apple-keyboard/ (https://www.adafruit.com/blog/2014/12/19/raspberry-pi-inside-a-vintage-mechanical-apple-keyboard/)

And Cult Of Mac: http://www.cultofmac.com/306106/turn-apples-best-keyboard-fully-functional-pc/ (http://www.cultofmac.com/306106/turn-apples-best-keyboard-fully-functional-pc/)

Geek.com also : http://www.geek.com/chips/raspberry-pi-turns-one-of-the-most-famous-keyboards-ever-into-its-own-computer-1611464/ (http://www.geek.com/chips/raspberry-pi-turns-one-of-the-most-famous-keyboards-ever-into-its-own-computer-1611464/)

Now I feel famous! :-) lol
Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: rowdy on Sat, 20 December 2014, 21:02:30
I saw it linked somewhere too, but the linking page said it was a Model M.

Congratulations :)
Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: ezrahilyer on Sat, 20 December 2014, 21:31:32
I saw it linked somewhere too, but the linking page said it was a Model M.

Congratulations :)

I did one in a Model M too. Less room in there than the AEK! I had to cut off the rear display ribbon connector to get it to fit under the plate of the M, but I used a HDMI bulkhead connector to get the HDMI out so I didn't need it anyway.

I have one of the new Raspberry Pi A+ models on the way, I want to experiment with making my own direct matrix input onto the GPIO pins so I don't need the Atmega 32u4 next time.
I want to build it into something really small, I am thinking about one of these: (http://speedgraphics.sakura.ne.jp/sblo_files/speedgraphics/image/apple2gskbd.jpg)
Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: rowdy on Sat, 20 December 2014, 22:52:51
Actually that might be an interesting use for the A+ Pi - keyboard controller :))
Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: ezrahilyer on Sat, 20 December 2014, 23:13:51
Actually that might be an interesting use for the A+ Pi - keyboard controller :))

As far as I can tell, it wouldn't be possibly to actually use the Pi as a controller to connect a keyboard to another computer since the GPIO pins would only report the key inputs to the Pi when it was booted up and running, and then would have to be passed to the desktop computer somehow, but for one thing, the Pi doesn't have the ability to act as a USB HID device, and the other is that it draws a little bit too much power to run off a computer USB port reliably. I have tired it and it will work sometimes, but only on high amperage ports.

You could however possibly SSH into the Pi from your computer and redirect the keyboard to your computer... Or even use a program like Synergy running on the Pi to takeover the keyboard input on your primary computer........ Possibly possibly......

Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: rowdy on Sun, 21 December 2014, 03:14:09
Actually that might be an interesting use for the A+ Pi - keyboard controller :))

As far as I can tell, it wouldn't be possibly to actually use the Pi as a controller to connect a keyboard to another computer since the GPIO pins would only report the key inputs to the Pi when it was booted up and running, and then would have to be passed to the desktop computer somehow, but for one thing, the Pi doesn't have the ability to act as a USB HID device, and the other is that it draws a little bit too much power to run off a computer USB port reliably. I have tired it and it will work sometimes, but only on high amperage ports.

You could however possibly SSH into the Pi from your computer and redirect the keyboard to your computer... Or even use a program like Synergy running on the Pi to takeover the keyboard input on your primary computer........ Possibly possibly......



The death of another idea :rolleyes:

One of my long term plans is to get hold of an old terminal, preferably with the keyboard and screen in one case, and mod it to have a small flatscreen monitor, mechanical keyboard and RPi inside to act as a "dumb" terminal.

The Pi could be running something like cool-retro-term (https://github.com/Swordfish90/cool-retro-term) for that old-skool look.
Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: suicidal_orange on Sun, 21 December 2014, 06:00:27
As far as I can tell, it wouldn't be possibly to actually use the Pi as a controller to connect a keyboard to another computer since the GPIO pins would only report the key inputs to the Pi when it was booted up and running, and then would have to be passed to the desktop computer somehow, but for one thing, the Pi doesn't have the ability to act as a USB HID device, and the other is that it draws a little bit too much power to run off a computer USB port reliably. I have tired it and it will work sometimes, but only on high amperage ports.
I don't know about the A+ but the original model A could act as a USB slave as it has a direct connection from the SoC to the USB A port where the model B has a USB hub/LAN chip in the way - see here (http://www.raspberrypi.org/forums/viewtopic.php?f=63&t=15696).

As for power the model A uses less because it doesn't have the extra chip - I've used one extensively (actually mine's a B with the USB chip removed - extra RAM means slightly more power needed than a real A) in command prompt on USB power and never had a crash, but I may just have good ports everywhere.

What you'd have to do to make it work I have little idea so I asked about it here (http://www.raspberrypi.org/forums/viewtopic.php?f=29&t=92335), but as you can see the idea was met with less than helpful replies so I quickly gave up on it and got a Teensy.  Seems the comments improved.

I'm busy now but I think this is a project for next year.  Now I don't have a keyboard to fix though... :))
Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: rowdy on Sun, 21 December 2014, 13:15:47
Kinda linked from somewhere else that some people might notice:

https://twitter.com/Raspberry_Pi/status/546399965656797184
Title: Re: Building A Raspberry Pi Inside An Apple Extended Keyboard
Post by: MOZ on Sun, 21 December 2014, 13:42:42
That is super cool, I've wanted to do this with my Model M for such a long time. Perhaps one day.