Use external keyboard with laptop1/5/2023 ![]() For connectors with less than 26 pins, solder starting at pin 1 and leave the unused pads at the other end blank. A connector with up to 26 pins can be soldered to these boards based on your needs. For those that don't want to solder surface mount connectors, I created the board shown on the right for thru-hole FPC connectors. I created a second circuit board for keyboards that have a 0.5mm pitch. I designed a circuit board using Eagle for the Teensy LC that routes its 26 I/O pins to 26 surface mount pads for an FPC connector with a 1mm pitch or a 0.8mm pitch. These keyboards will not be the focus of this Instructable but a few examples will be given. There were some old keyboards in the bins with rigid printed circuit board connectors and some other keyboards with specialized connectors soldered to the end of the FPC cable. The number of signal traces and the pitch are the parameters you will need when ordering. Connectors for 24 to 34 pin keyboard cables are readily available from companies like Aliexpress or Digikey. I have included support for all of these variations. There were also keyboards with dual FPC cables. ![]() Pitch = Total width / (N + 1) where N is the number of pinsĪ few of the keyboards at Re-PC had 30 to 34 traces and some had a 0.8mm or 0.5mm pitch. It can be difficult to measure the pitch between traces so another method is to measure the width of the entire FPC cable and use this formula: If there is a number pad, then it’s common to have 26 traces with a 1 mm pitch. A typical keyboard without a number pad has 24 or 25 signal traces with a 1 mm pitch. The plastic backing plus the FPC material typically measures about 0.30 mm thick. About 75% of the keyboards have FPC cables that end with exposed metal traces on one side and a plastic backing on the other side. The two bins of laptop keyboards shown above are from Re-PC, a local recycling store. The keyboard controller drives each row low, one at a time while reading the columns (with a pull up resistor) to see if any switch is pushed. Laptop keyboards use a flexible printed circuit (FPC) that connects all the key switches in an array of rows and columns as shown above. I will include download buttons for many of the files in the Instructable but all the files are located at my GitHub repository. The touchpad code described in step 22 can be added to the keyboard routine to create a composite USB device. After every key has been pressed, the results can be transferred to a row-column matrix and used by the TMK keyboard controller software or a home-brew Teensyduino routine. The Teensy will report over USB, the two pin numbers that are connected when you press a key. Instead of taking the keyboard apart or using an ohm meter, this Instructable will load the Teensy with an automated continuity tester. An Instructable from alpinedelta disassembles the keyboard in order for the connections to each switch to be visually traced back to the connector. ![]() I did this when I converted a Sony Vaio into a Raspberry Pi laptop. One approach, (that I never want to do again) is to exhaustively check every connector pin combination with an ohm meter while holding down each key. Whatever software you decide to use, it will require a key matrix that maps out how your keyboard is wired. If you would rather write your own keyboard software using Arduino, the Teensyduino functions give you total USB control. The TMK code is a bit of an overkill if you just want a simple USB keyboard but it will certainly provide all the features you could ever need. Teensies are often used by the mechanical keyboard enthusiasts at Geekhack and Deskthority and the TMK software is the most popular controller code. I use a Teensy microcontroller mounted on a connector board to take over this function. A typical laptop keyboard relies on the motherboard for the keyboard scanning and touchpad interface. I created this guide and video to hopefully make it easier for people to re-purpose an old laptop. This Instructable will provide a step by step procedure for building a USB laptop keyboard and touchpad controller.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |