Button array??
Hi,
I'm new to electronics and would like to build something like the following image on a breadboard.
![N2i5oew2L9gPVFBpuBgQAA?feat=directlink](http://picasaweb.google.com/lh/photo/N2i5oew2L9gPVFBpuBgQAA?feat=directlink)
image link
I don't mind creating a smaller grid (2x2) for just getting the theory of it but I really don't understand the image (got it from a Tips and tricks pdf for PIC microchips.)
I have some tactile buttons to play with but I just don't understand the drawing.
I also have the propeller protoboard and an extra breadboard for testing.
Can someone please help me get this thing going on a breadboard (pictures would be nice)?
Any help would be really appreciated.
What I don't get is that each button has one line running to it while my switches have 4 legs (I realize that it's legs are paired).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks,
nisbus
I'm new to electronics and would like to build something like the following image on a breadboard.
image link
I don't mind creating a smaller grid (2x2) for just getting the theory of it but I really don't understand the image (got it from a Tips and tricks pdf for PIC microchips.)
I have some tactile buttons to play with but I just don't understand the drawing.
I also have the propeller protoboard and an extra breadboard for testing.
Can someone please help me get this thing going on a breadboard (pictures would be nice)?
Any help would be really appreciated.
What I don't get is that each button has one line running to it while my switches have 4 legs (I realize that it's legs are paired).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks,
nisbus
Comments
John Abshier
The problem is that I don't understand the drawing compared to a tactile switch and I don't know what kind of resistor I should be using on either end.
I would like to be able to use the VDD on the protoboard (3.3v).
I'd just like to see this work using a meter before I plug it into the propeller.
Could anyone draw this up using a tactile switch for me please?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks,
nisbus
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
·
No I just need to see how to wire it.
I've tried to decorate my original image with the way I think this should be done so please correct me if it's wrong.
image link
Red is 3.3V and brown is ground.
Sorry for the drawing, my artistic skills aren't that great.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks,
nisbus
Stick along the lines you have , just try and adjust your resistor values to be unique with each button.
Also bear in mind that you expect to see a different voltage for each button , thats 16 buttons with 3.3 volts to work with , so perhaps calculating resistances that give each button a seperation of 0.2 volt or thereabout might make things easier.
Jeff T.
I'll try with different combinations of resistors.
Would this work for chording as well?
What I'm looking to achieve is a different voltage reading for combinations of keys as well as single key presses i.e. A+P is different from A or P.
Also do you know of any object in obex that uses 2 pins for analog processing?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks,
nisbus
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
·
See ~2/3 of the way down: http://www.emesystems.com/BS2rct.htm#switches
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
Jeff T.
Anybody tried this or seen it done? PhiPi, you are always one step ahead of me...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
I did manage to get the RCTime object to display a number when I pressed a key and my meter measures different voltages on key presses (as well as combinations) but it seems to be extremely fickle (most likely due to the random selection of resistors[noparse];)[/noparse]).
As for the "digital keypad multiplexer/decoder circuit", it's the first I've heard of it and I wonder if this is something I can buy or I need to (can) build myself.
Googling for multiplexer came up with a lot of circuit diagrams that I don't understand.
I know I'm way out of my league at this (I'm a programmer trying to understand electronics) and I want to thank you all for your patience.
Since you've come up with several good ideas for a solution to this problem I wonder if there might be something obvious that I'm still missing.
What I'm trying to build is a 10 key keyboard that supports chording so that I would have 1024 (2^10) keys available.
When that is done I would feed the key to my PC and there convert it into keystrokes.
I've already been successful in getting data from the propeller to the PC so I feel I'm half way there [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks,
nisbus
P0 through P3 are inputs (columns) and P4 through P7 are outputs (rows).
P0 through P3 are held at 3.3v by the pull up resistors so the binary value seen on those pins is 1111
To read the keypad you start by setting row P4 low (logic level 0) and then reading the values on P0 through P3 .
If no key is pressed P0 through P3 remain at logic level 1 (1111) , but say button A is pressed then column P0 would be logic level 0 and the other 3 at logic level 1 = 0111.
The process is then repeated with row P5 then P6 and finally P7 , now every buttons condition has been read lets start from the beginning again.
There are plenty of explantions better than this on the internet but maybe this gives you an idea what to look for.
Jeff T.
Gen'l info at http://www.electronics-lab.com/blog/?m=200906·and naughty mnemonic at http://everything2.com/title/Bad+Boys+Rape+Our+Young+Girls+But+Violet+Gives+Willingly, more at http://acronyms.thefreedictionary.com/Better+Be+Right+Or+Your+Great+Big+Venture+Goes+West
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
www.dribin.org/dave/keyboard/one_html/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Rick
You'd have no chance with multiple simultaneous keys though.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent!
Send $1 to CannibalRobotics.com.
Here (as in most places) you can pick two of these three: fast, cheap, or accurate.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
http://www.emesystems.com/BS2fsm.htm#keypad
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."