Page 1 of 1
T61 Laptop Keyboard USB Controller
Posted: Sun Nov 25, 2018 5:05 pm
by thedalles77
I created an “Instructable” and YouTube video that provides step by step instructions for converting a typical laptop keyboard to USB. The Lenovo T61 keyboard was 1 of the 12 keyboards I converted and it was by far the most complicated. The T61 needed a special circuit board that routes the signals from its 44 pin keyboard connector to a Teensy microcontroller. I have designed two different solutions for making a T61 keyboard controller. One design uses the Teensy 3.2 and the other design uses the Teensy LC. The T61 discussion is near the end of both the video and the Instructable. If you have good software skills, you can download and modify the TMK keyboard controller routine to work with the T61 key matrix. As a TMK alternative, I have provided a simple Arduino keyboard and trackpoint routine for both boards.
The Instructable is at
https://www.instructables.com/id/How-to ... ontroller/
The YouTube video is at
https://www.youtube.com/watch?v=Z1PheqSNNP8
My GitHub repository is at
https://github.com/thedalles77/USB_Lapt ... Controller
I hope you find this information useful.
Cheers
Frank Adams
Re: T61 Laptop Keyboard USB Controller
Posted: Tue Dec 04, 2018 10:46 pm
by thedalles77
The folks over at Hackaday had a lot to say about my DIY Thinkpad keyboard project. It seems there's a lot of people that love the feel of the old Thinkpad keyboards.
Of course the people on this forum are already big fans. Here's the Hackaday link
https://hackaday.com/2018/12/04/teensy- ... ore-335250
Re: T61 Laptop Keyboard USB Controller
Posted: Wed Dec 05, 2018 2:32 am
by axur-delmeria
Great work!
I'd like to ask: how easy/difficult would it be to adapt the Teensy code to support other Thinkpad keyboards that use the same connector? I have an X60 and X220 (along with a few spare keyboards).
Re: T61 Laptop Keyboard USB Controller
Posted: Wed Dec 05, 2018 8:04 am
by Thinkpad4by3
Great work.
I think I might make my own USB laptop keyboard now
Re: T61 Laptop Keyboard USB Controller
Posted: Wed Dec 05, 2018 9:22 pm
by thedalles77
To adapt the Teensy code for a different Thinkpad keyboard would be easy as long as the signal pins on the connector are the same as the T61. I checked the schematics and confirmed the connector pin-outs for the X60 and X220 are the same as the T61. You'll have to check the schematics for the other keyboards you want to try. Follow the steps outlined in the "Instructable" but use this Lenovo_Thinkpad_T61 link to select the Teensy 3.2 or LC folders from my repo.
https://github.com/thedalles77/USB_Lapt ... inkPad_T61
There are PDF files in the LC and 3.2 folders that you should read. Among other things, they describe how the Digikey connector has issues that force you to plug and unplug the connector until you get the pins aligned. Once aligned, they work fine. I wish there was a source for the original connectors so I wouldn't have this issue.
The steps to modify the code are:
Create a key matrix table by running the 3.2 or LC Matrix_Decoder_T61 code.
Modify the 3.2 or LC Lenovo_T61_KBandTP code by adjusting the key names in the arrays to match the new matrix. If you have any problems, I can help you once you've run the Matrix_Decoder code.
If you or anyone else decodes other Thinkpad keyboards, I'll be curious to hear how the matrix is different. There are 3 keyboard ID pins on the connector that tell the motherboard controller which keyboard is connected. I didn't bother to bring those 3 ID signals into the Teensy because I wanted to save I/O pins.
I've got an extra LC and 3.2 board for the Lenovo controller so send me an email if you're interested.