The micro's resonator/crystal in the TKB150P keypad doesn't run until a key is pressed. Thus the low current draw while idling. All resistors are 47K and none of the pads for capacitors have caps installed.
There are four resistors, R4..7, diodes D8..5 which are tied to the keypad matrix; another set of diodes, D4..1, with anodes common tied to R3 pullup and connects to 28 pad zone pin 26 (an interrupt/enable??).
PE2 connects to pin 1, PE3 (the serial out line) to pin 2. My guess is PE2 is involved in programming chip on board; possibly PE3 also used then.
Need too many hands to check out the signalling. One to hold the unit so a key can be pressed, one for the press (blindly as unit is upside down), one to hold the scope probe, another to change timebase or sync level, etc. and two sets of eyes (one to see key to press, other to view where to probe and watch scope.
Interesting micro that doesn't 'run' until a key in the matrix is pressed.
In case anyone cares to work out the keyboard matrix circuit, here's some more or less matched photos. The flipped back version is for the convenience of working out the plated through holes.
You got much better lighting than my photos. Mine was only available light, close by a window; better would be lighting from an angle to highlight the traces better than mine was.
Here's a revised m100keyboard, based on Ray's KeyPad_test code and Full Duplex Serial.
Somehow I managed to break his Caps Lock, likely because it was using a repeat and I'm trying to
replicate the .key function in keyboard, otherwise it looks like it would nearly replace the standard
driver wherever .key is used.
Function is one use each time you press it, some of macro keys have been re-tasked.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki (Got the Knowledge? Got a Moment? Add something today!)
I note that Fn key can be released after one or more other keys are pressed, and it will emit the '9E, 9E' bytes (after the Fn key is released). Detecting this condition would allow more than one key to be used as 'upper case/blue key' sequences.
I modified an existing SPIN file which used FDS, so was easy to obtain a quick way to evaluate this mini keypad. Detecting whether code received is less than 80h, it resets the cursor position to the first position on a line. Following bytes (85h, 85h or 9Eh, 9Eh) are displayed to the right. It was then noted that if the Fn key was held after another key was pressed or pressed and released, that the function key would work for multiple key presses.
Man you guys are great. I haven't even had a chance to pick up my keyboards yet from their delivery to my parents' house, and already there will be a driver waiting for them when I get home with them! Unbelievable - how fast this community gets moving. With any luck the same driver will work for my full-size Palm m100 keyboard that I've been keeping around for years. Thank all of you the work you've done with these keyboards.
Can anybody sell me some of these keyboards??.. They seem to be sold out at that link.. I'm really disappointed that I missed out on this $0.39 mini keyboard bonanza. =(.. I would have bought 10 or 15.. Does anyone have 10 to spare?
I don't know about the keyboard circuitry. Can anyone explain about the rubber keys and the matrix? What's the resistance of a keypress? Or is it in effect a capacitor? How is it sensed? (Like I say, I don't know about...)
The reason for asking, it does seem simple to add a couple of those circuit images to a board and cut off enough switches whenever...
The contacts are made up of 'two inter-meshed, forked' pcb patterns and a carbon-filled 'peg' under a key top. When pressed, I measured about 50 Ohms or less, depends on pressure; ranges from higher resistance on first contact to a much lower value on harder pressing. I just used multimeter probes on the carbon filled end for the measurement; the gap may be much higher than in actual use. The pullups are 47K so doesn't take much to change state on a key press.
The whole assembly of 'keys' is one piece (of silicon rubber?) with holes on the back side for the carbon filled pegs. Simple design and quite reliable; don't know about life of the whole assembly. Markings possibly wear off in time on the softer keytops. Design rather keeps 'crud' from getting in the contact area; almost sealed.
Bean, you need a better scanner, I can do 1200dpi and that's old hat these days [noparse]:)[/noparse]
Most likely is that cad would be made for one hole (and the specials) and checked by cutting it out then a scan of the PCB would be used for positioning.
When pressed, I measured about 50 Ohms or less, depends on pressure; ranges from higher resistance on first contact to a much lower value on harder pressing.
Thanks Harley.
Seems like·these buttons can be used as tactile sensors.
At $.39 I think I can afford to try it...
Just an idea... if you were to put some of these in "grab bags" with various clearance items and then sell them at the meeting, you could pay for a cup of coffee and Oldbitcollector's Propeller User group could make a few bucks too. The trick is to make sure that the first buyer gets a lot for his $20. then you can short the rest of the bags[noparse]:)[/noparse]
On the other hand... what you now need is a physical "keyboard expander"... which someone on this forum probably knows how to build[noparse]:)[/noparse]
Rich, · That's not a bad idea. I can take a bunch of stuff from here http://www.hittconsulting.com/miscforsale.html·plus some more goodie I have alot of and put together some decent packages.
I just made a little adapter that connects a keypad to the PS2 port...· Seems to work pretty good.· Just using 3 of the 4 wires of a PS2 cable (not using +5V).· So, I'm getting power from Prop Pin27 and sending the signal to Pin26.
All I had to do is change on line in my code to:
ser.start(26,27,1,9600)
It seems to get started, I need to reboot the keypad by unplugging and replugging...· Other than that, appears to work fine.
Graham Stabler said...
Bean, make them boxes of 10, spread the love [noparse]:)[/noparse]
LOL, I just opened one of the full boxes and lo and behold there are 4 boxes of 6 inside each big box.
So I'm going to offer the keyboard at $12 for 6 keyboards + shipping (probably about $5).
Tim,
In the beginning of this thread Mike Cook posted a table of what values are transmitted for what keys.
It is 9600 baud.
I don't know about using 5V, it might not like that. It is meant to be run from 3.0V.
If I get a chance, I'll connect one up and see if I can get it working.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A government big enough to give you everything you want, is big enough to take away everything you·have."·· Thomas Jefferson
"It is our choices, Harry, that show what we truly are, far more than our abilities."·Dumbledore from Harry Potter
Jimmy,
Yes I have alot of them left. Around 50 I think.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A government big enough to give you everything you want, is big enough to take away everything you·have."·· Thomas Jefferson
"It is our choices, Harry, that show what we truly are, far more than our abilities."·Dumbledore from Harry Potter
Yes, I shipped them yesterday via USPS Prioity mail as per your intructions.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A government big enough to give you everything you want, is big enough to take away everything you·have."·· Thomas Jefferson
"It is our choices, Harry, that show what we truly are, far more than our abilities."·Dumbledore from Harry Potter
Comments
The micro's resonator/crystal in the TKB150P keypad doesn't run until a key is pressed. Thus the low current draw while idling. All resistors are 47K and none of the pads for capacitors have caps installed.
There are four resistors, R4..7, diodes D8..5 which are tied to the keypad matrix; another set of diodes, D4..1, with anodes common tied to R3 pullup and connects to 28 pad zone pin 26 (an interrupt/enable??).
PE2 connects to pin 1, PE3 (the serial out line) to pin 2. My guess is PE2 is involved in programming chip on board; possibly PE3 also used then.
Need too many hands to check out the signalling. One to hold the unit so a key can be pressed, one for the press (blindly as unit is upside down), one to hold the scope probe, another to change timebase or sync level, etc. and two sets of eyes (one to see key to press, other to view where to probe and watch scope.
Interesting micro that doesn't 'run' until a key in the matrix is pressed.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
You got much better lighting than my photos. Mine was only available light, close by a window; better would be lighting from an angle to highlight the traces better than mine was.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
Somehow I managed to break his Caps Lock, likely because it was using a repeat and I'm trying to
replicate the .key function in keyboard, otherwise it looks like it would nearly replace the standard
driver wherever .key is used.
Function is one use each time you press it, some of macro keys have been re-tasked.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki
(Got the Knowledge? Got a Moment? Add something today!)
I modified an existing SPIN file which used FDS, so was easy to obtain a quick way to evaluate this mini keypad. Detecting whether code received is less than 80h, it resets the cursor position to the first position on a line. Following bytes (85h, 85h or 9Eh, 9Eh) are displayed to the right. It was then noted that if the Fn key was held after another key was pressed or pressed and released, that the function key would work for multiple key presses.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
The reason for asking, it does seem simple to add a couple of those circuit images to a board and cut off enough switches whenever...
The contacts are made up of 'two inter-meshed, forked' pcb patterns and a carbon-filled 'peg' under a key top. When pressed, I measured about 50 Ohms or less, depends on pressure; ranges from higher resistance on first contact to a much lower value on harder pressing. I just used multimeter probes on the carbon filled end for the measurement; the gap may be much higher than in actual use. The pullups are 47K so doesn't take much to change state on a key press.
The whole assembly of 'keys' is one piece (of silicon rubber?) with holes on the back side for the carbon filled pegs. Simple design and quite reliable; don't know about life of the whole assembly. Markings possibly wear off in time on the softer keytops. Design rather keeps 'crud' from getting in the contact area; almost sealed.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
Most likely is that cad would be made for one hole (and the specials) and checked by cutting it out then a scan of the PCB would be used for positioning.
Graham
Seems like·these buttons can be used as tactile sensors.
At $.39 I think I can afford to try it...
Hopefully you'll be able to find them somewhere near at that price. Geeks sold out fast.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
If anyone would like to get some of these, I have 3 boxes of 24 pcs each that I would like to sell. $36 per box+actual shipping.
If they don't sell by the box, I'll break them down (but I don't want too).
If you're interested send me a Private Message.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.iElectronicDesigns.com
·
Just an idea... if you were to put some of these in "grab bags" with various clearance items and then sell them at the meeting, you could pay for a cup of coffee and Oldbitcollector's Propeller User group could make a few bucks too. The trick is to make sure that the first buyer gets a lot for his $20. then you can short the rest of the bags[noparse]:)[/noparse]
On the other hand... what you now need is a physical "keyboard expander"... which someone on this forum probably knows how to build[noparse]:)[/noparse]
Rich
· That's not a bad idea. I can take a bunch of stuff from here http://www.hittconsulting.com/miscforsale.html ·plus some more goodie I have alot of and put together some decent packages.
Thanks for the idea.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.iElectronicDesigns.com
·
Graham
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.iElectronicDesigns.com
·
All I had to do is change on line in my code to:
It seems to get started, I need to reboot the keypad by unplugging and replugging...· Other than that, appears to work fine.
So I'm going to offer the keyboard at $12 for 6 keyboards + shipping (probably about $5).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.iElectronicDesigns.com
·
I have a SX project and bought a couple of these from Bean. I wanted to be sure I can use 5vdc and not the listed 3.3vdc as I see in the threads.
Also are the characters pushed read out as ASCII or any specifics about that?
Thanks.
In the beginning of this thread Mike Cook posted a table of what values are transmitted for what keys.
It is 9600 baud.
I don't know about using 5V, it might not like that. It is meant to be run from 3.0V.
If I get a chance, I'll connect one up and see if I can get it working.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A government big enough to give you everything you want, is big enough to take away everything you·have."·· Thomas Jefferson
"It is our choices, Harry, that show what we truly are, far more than our abilities."·Dumbledore from Harry Potter
www.iElectronicDesigns.com
·
·
Yes I have alot of them left. Around 50 I think.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A government big enough to give you everything you want, is big enough to take away everything you·have."·· Thomas Jefferson
"It is our choices, Harry, that show what we truly are, far more than our abilities."·Dumbledore from Harry Potter
www.iElectronicDesigns.com
·
Did you ship my order of all 3 to me or a 2 - 1 shipment as stated in your PM?
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A government big enough to give you everything you want, is big enough to take away everything you·have."·· Thomas Jefferson
"It is our choices, Harry, that show what we truly are, far more than our abilities."·Dumbledore from Harry Potter
www.iElectronicDesigns.com
·