Pages

Sunday, October 28, 2012

Converting Macbook keyboard/touch pad into USB keyboard/touch pad

For those finding the title not overly helpful, this post is about adding a USB cable to a Macbook keyboard/touch pad for use with other computers.

The inspiration for this came about as I scoured the house for any trace of a USB keyboard, which led me to the Macbook featured in my previous post, creating a mini DVI to VGA adapter. A quick Google search led me to Cryozap, who had already done the heavy lifting with this project by finding the pinouts of the connector used by the keyboard, as seen in the post MacBook Core Duo Logic Board Keyboard Connector Pinout. Here is how I managed to attach a USB cable!


First thing you want to do is peel the sticker off the back of the touchpad.


Here's a closeup of the touchpad. The four pins we are going to be using are the three closest to the top right header, and one of the grounds on the centre far left.


For stress relief, you probably want to hold the cable onto the keyboard somehow. As I didn't intend on putting this back into the laptop I just used a bit of wire and "crimped" the USB cable to one of the places for a screw.


Here's the fun part. Solder down the wires, trying to minimise how much of the actual conductor is exposed. The ground (black) goes to any of the three vacant pads on the far left. Positive (red) is the rightmost pad, with data positive (green) the centre of the three, and data negative (white) the left of the three. See the picture below for clarification.



And there you have it, a cheap and dirty USB keyboard from a Macbook!

Hope this was helpful. Once again, credit for the pinout goes to Cryozap. Constructive criticism or general comments are welcomed below.


12 comments:

  1. i guarantee at least one other person tried this and succeeded, with your help. thanks for the info.

    ReplyDelete
  2. Make it three!!!!! Thanks.. I wish in future someone can make a connector for trackpad wire to usb... that would be A+...

    ReplyDelete
  3. Make it 11. Several MacBook top cases re-used as KB/mouse for Raspberry Pi's.
    Thanks, works awesomely fine!

    ReplyDelete
  4. I cannt seam to get the touchpad to work in windows or raspberrypi. The keyboard works with no issues.... and help?

    ReplyDelete
  5. You used a macbook a1181 third version keyboard. The schematics for the first version (macbook from early 2006) is quite different.
    This is the pinout that I found out with an electrical tester. I hope it could help!

    https://41.media.tumblr.com/3339fe0e1cd21331ca47308beb3a748d/tumblr_no0z6kqjEF1qe9c6go1_540.jpg

    ReplyDelete
  6. I just followed the pictures- I have never soldered Before Today, I followed the Pics and it worked perfectly. Working to convert My Trashed Motherboard Black Macbook from 2006 to A Rasberry Pi Enclosure. Step One Done- Thanks for sharing

    ReplyDelete
  7. I am trying to do this project with a mid 2009 macbook air. Does anyone know the pinouts for the keyboard and touchpad controller board?

    ReplyDelete
  8. Does anyone use a macbook LCD on a raspberry Pi? Would be a goal!!!

    ReplyDelete