Author Topic: Laptop keyboards  (Read 6054 times)

0 Members and 1 Guest are viewing this topic.

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Laptop keyboards
« on: June 02, 2013, 10:05:30 pm »
Hello, i have a small netbooks keyboard here and i am unsure how it works?

Its a nice small and compact keyboard with a little ribon cable with k6107 writen on it.

How does it determin what keys are being pressed and how would i go about connecting it to a microcontroler to send serial data to it?
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7765
  • Country: de
  • A qualified hobbyist ;)
Re: Laptop keyboards
« Reply #1 on: June 02, 2013, 10:17:06 pm »
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Laptop keyboards
« Reply #2 on: June 02, 2013, 10:31:37 pm »
Thank you :)

So in my case:


The first 10 pins could be inputs and the pins on the right could all be the outputs correct?
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7765
  • Country: de
  • A qualified hobbyist ;)
Re: Laptop keyboards
« Reply #3 on: June 03, 2013, 12:38:21 am »
The first 10 pins could be inputs and the pins on the right could all be the outputs correct?

Might be possible. Check some keys with your DMM and you'll know.
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Laptop keyboards
« Reply #4 on: June 03, 2013, 05:47:52 am »
Thats fine i was thinking maby have a small micro to decode it and output a serial to the main micro, that was i can get something like an atmeltiny with enough inputs that this needs and juat output it there ^.^
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Laptop keyboards
« Reply #5 on: June 03, 2013, 10:46:57 am »
I have tried doing a continuity test on te space bar but none of the lines connect. Could it be that there is too high of a resistance and that i would have to send a voltage down to find out?
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7765
  • Country: de
  • A qualified hobbyist ;)
Re: Laptop keyboards
« Reply #6 on: June 03, 2013, 01:11:25 pm »
I have tried doing a continuity test on te space bar but none of the lines connect. Could it be that there is too high of a resistance and that i would have to send a voltage down to find out?

Most keyboards are based on switch contacts of some sort. High quality keyboards got microswitches and cheap/small stuff got conductive pads. Of course there are other technogies too, like capacitive, but those are rarely used for computer keyboards. Please try another key too. Or put something on the keyboard to have several keys pressed. If you still don't get anything it could be some other technology.

BTW: Atmel got a nice application note for matrix keyboards at http://www.atmel.com/Images/doc2532.pdf.
« Last Edit: June 03, 2013, 03:40:47 pm by madires »
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Laptop keyboards
« Reply #7 on: June 03, 2013, 02:45:33 pm »
I tried the link but it does not exist :D, im going to give the keyboard another go in a bit.
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline deephaven

  • Frequent Contributor
  • **
  • Posts: 796
  • Country: gb
  • Civilization is just one big bootstrap
    • Deephaven Ltd
Re: Laptop keyboards
« Reply #8 on: June 03, 2013, 03:14:17 pm »
I tried the link but it does not exist :D, im going to give the keyboard another go in a bit.

It's the dreaded full stop at the end of the URL syndrome. Try http://www.atmel.com/Images/doc2532.pdf
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Laptop keyboards
« Reply #9 on: June 03, 2013, 07:57:59 pm »
I have been probing the ribbon cable on the graphite uaing my multimeter. Is it better to have it connected to a pcb connector and then the metal contacts on there?
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7765
  • Country: de
  • A qualified hobbyist ;)
Re: Laptop keyboards
« Reply #10 on: June 03, 2013, 08:52:26 pm »
I have been probing the ribbon cable on the graphite uaing my multimeter. Is it better to have it connected to a pcb connector and then the metal contacts on there?

The end of the cable facing the laptop should be tinned. Aren't you probing at that end?
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Laptop keyboards
« Reply #11 on: June 04, 2013, 07:41:42 am »
There is no tinning, its still ot the conductive black traces
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Laptop keyboards
« Reply #12 on: June 04, 2013, 08:59:26 am »
I did truly to do a continuity teat on a different ribbon keyboard (NSK-HAA0U) from a hp g60
But i could not get any continuity readings from any of the contacts. Do i have to apply a voltage down the ribbon cable or it to work?
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline C

  • Super Contributor
  • ***
  • Posts: 1346
  • Country: us
Re: Laptop keyboards
« Reply #13 on: June 04, 2013, 09:16:17 am »
matrix, like x horizontal and y vertical  lines. where lines cross is a possable switch location.

if you are testing two x lines you will not see a one button press.
connect to two pins, press all keys
only shift one connection until you have tested all pins an only then shift the other connection
repeat
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Laptop keyboards
« Reply #14 on: June 04, 2013, 09:18:15 am »
I was doing it the other way round, hold one key and test all pins to eachother, i shall try your way now :)
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Laptop keyboards
« Reply #15 on: June 04, 2013, 09:45:10 am »
Ok after further testing i have found out that the resistance over the ribbon cable and keys is too much for my multimeter to make a sound but it does return a reading on the screen when its got a connection, i found the number pad 5 digit and ; with readings but no sound :)

Im going to be here a while to figure out the connections now :)
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline C

  • Super Contributor
  • ***
  • Posts: 1346
  • Country: us
Re: Laptop keyboards
« Reply #16 on: June 04, 2013, 04:43:12 pm »
Strong hint,

Some times they make it easy for the software side to decode the matrix.
Some times they make it easy for the PC board to be setup as a matrix.
Some like nice logical pin-outs on the connectors.

I would not be surprised for one of the two pins you found connects to the 5 to also connect to the other numbers.

C
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Laptop keyboards
« Reply #17 on: June 04, 2013, 05:50:11 pm »
Ok i have another keyboard which i have found which has 8 power lines to switch and 20 data lines to read.

Thats probably not the right names for both of them but yea.

What atmel controler would be good for this? It needs to output the key press via a serial connection.
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline C

  • Super Contributor
  • ***
  • Posts: 1346
  • Country: us
Re: Laptop keyboards
« Reply #18 on: June 04, 2013, 06:56:43 pm »

There are many ways to do a keyboard matrix with a micro. With external shift registers you can get down to a very low pin count on the micro. As the need for speed increases a parallel choice may be better.

Read app note and look at link to wikipedia
http://www.atmel.com/Images/doc1231.pdf

C
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf