geekhack

geekhack Community => Keyboards => Topic started by: reidpr on Mon, 25 April 2011, 16:31:58

Title: Testing keys without connecting to a computer
Post by: reidpr on Mon, 25 April 2011, 16:31:58
Suppose I'm tinkering with a keyboard. How can I test keyswitches (installed or not) without soldering them in and connecting the unit to a computer? In particular, I'd like to distinguish between working 100% of the time and 99% of the time. (I currently have some keys that intermittently give duplicate key events.) Is this a job for an oscilloscope?

Thanks,

Reid
Title: Testing keys without connecting to a computer
Post by: Dox on Mon, 25 April 2011, 18:12:50
It's a job for a multimeter.
(http://readings.redwebmaster.com.ar/images/1-digital-multimeter-readings.jpg)

edit: This should get you started. (http://www.ladyada.net/library/metertut/resistance.html)
Title: Testing keys without connecting to a computer
Post by: The Solutor on Mon, 25 April 2011, 18:28:39
Quote from: Dox;337191
It's a job for a multimeter.

 

Not exactly a job for a multimeter

Quote
Well, if you are talking about whether a switch is chattering it would be a LOT easier to solder it in. Spam the key 100 times. And then count if you got 100 characters out.


He can use an old mouse with one of the original switches removed, an two crocodile* clips to quickly test the switch.

(*)I hope they are called crocodiles also in the US.
Title: Testing keys without connecting to a computer
Post by: alaricljs on Mon, 25 April 2011, 18:30:39
Quote from: The Solutor;337204
(*)I hope they are called crocodiles also in the US.

Oddly enough we call them alligator clips...
Title: Testing keys without connecting to a computer
Post by: The Solutor on Mon, 25 April 2011, 18:33:39
Quote
Oddly enough we call them alligator clips...


Hahah

I presume that every continent chose the nearest reticle...
Title: Testing keys without connecting to a computer
Post by: The Solutor on Mon, 25 April 2011, 19:15:46
That was the my forbidden dream for almost a decade, then I got one a "cheap" 20Mhz dual trace one.

It is still alive, but is in the hands of my ex coworker, which later bought some more expensive models (something like 6/7K$)
Title: Testing keys without connecting to a computer
Post by: dr/owned on Mon, 25 April 2011, 19:17:29
Yep you'd need an oscilloscope.  The analog ones you can find for cheap nowadays are just junk but would probably work fine for you.  You just need visual inspection more than actual accuracy of measurement.  If you happen to be an EE now would be a good excuse for buying a $3000 Tektronix digital :)

Edit: I also get the feeling you could do something clever with an LED and semi-high speed camera at 60 fps.  Won't show you microsecond voltage hysteresis but would give you a general idea.
Title: Testing keys without connecting to a computer
Post by: Keylamity on Mon, 25 April 2011, 21:36:15
Quote from: The Solutor;337204
Not exactly a job for a multimeter

He can use an old mouse with one of the original switches removed, an two crocodile* clips to quickly test the switch.

(*)I hope they are called crocodiles also in the US.


Actually the American term for them is "roach clips".
Title: Testing keys without connecting to a computer
Post by: The Solutor on Mon, 25 April 2011, 21:51:50
Wikipedia seem differentiate between crocodile and alligator clips

http://en.wikipedia.org/wiki/Crocodile_clip

Quote
that's the american stoner term.


Yes wikipedia says also you are right...

http://en.wikipedia.org/wiki/Roach_clip
Title: Testing keys without connecting to a computer
Post by: Keylamity on Mon, 25 April 2011, 21:55:50
 (http://cgi.ebay.com/60pc-ALLIGATOR-ROACH-CLIP-BATTERY-CHARGING-CLAMP-ASST-/220775015701?pt=LH_DefaultDomain_0&hash=item3367376515#ht_1041wt_907)
Quote from: kalrykh;337283
that's the american stoner term.


Used to be, but it's worked it's way into regular parlance...see for example American ebayers selling electrical-use crocodile clips:

here (http://cgi.ebay.com/4-SETS-30-WIRE-TEST-LEADS-ALLIGATOR-ROACH-CLIP-POS-NEG-/300520194420?pt=LH_DefaultDomain_0&hash=item45f8664174#ht_856wt_962)

and   :smokin:

here (http://cgi.ebay.com/6-ALLIGATOR-STAINLESS-STEEL-CLIPS-ELECTRIC-CLAMPS-ROACH-/380230133896?pt=LH_DefaultDomain_0&hash=item58877b6888#ht_1160wt_962).

We used to occasionally call them roach clips in our electronics class but our (Canadian) instructor would, ahem, correct us.
Title: Testing keys without connecting to a computer
Post by: dr/owned on Mon, 25 April 2011, 21:57:21
Proper term I've ever heard used as an EE is alligator clip.  Mouser seems to follow the Wiki standard where croc denotes large car jumper stuff.
Title: Testing keys without connecting to a computer
Post by: The Solutor on Mon, 25 April 2011, 22:01:42
Hahaha

In Spanish is caiman clips

http://www.proz.com/kudoz/spanish_to_english/chemistry%3B_chem_sci_eng/892860-pinzas_caiman.html
Title: Testing keys without connecting to a computer
Post by: What is X? on Tue, 26 April 2011, 05:00:47
in australia we have crocodiles but still call them alligator clips :/
Title: Testing keys without connecting to a computer
Post by: Soarer on Tue, 26 April 2011, 05:25:19
Quote from: reidpr;337127
Is this a job for an oscilloscope?


Yes. Either the switch bounces for too long (most likely), or contact is not maintained consistently while it is depressed. Cherry switches are specified to have less than 5mS bounce time, and typically it only lasts a couple of mS.

(http://www.micahcarrick.com/files/atmega8/tutorial_3/debounce.png) (http://www.micahcarrick.com/avr-tutorial-switch-debounce.html)

Quote from: The Solutor;337292
Wikipedia seem differentiate between crocodile and alligator clips

http://en.wikipedia.org/wiki/Crocodile_clip


That page needs more pedantry! 'Standard clip' indeed.
Title: Testing keys without connecting to a computer
Post by: The Solutor on Tue, 26 April 2011, 07:16:09
Quote from: Soarer;337403

That page needs more pedantry!

 
Italian wikipedia seem a good example.

It provides three variations in Italian and two in English.:happy:

http://it.wikipedia.org/wiki/Connettore_a_coccodrillo