Keypad
computer guy
Posts: 1,113
Hello everyone,
I have a keypad that I need to connect to my propeller chip, each button has it's own pin (0v - released, 3.3v pushed).
It is using up too many pins, is there a way that I can minimise the amount of pins it used, i.e. I/O expander?
If so, is someone able to supply a schematic for connecting one to the prop.
There are 17 pins(buttons).
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"powered by Propeller" domed stickers $1.50 - Find them here
Check out my Design and Technology project for my Higher School Certificate www.ecosureblog.net
The Sarah Myatt Fund - Help Sarah and Her Family Fight Quadriplegia HERE
I have a keypad that I need to connect to my propeller chip, each button has it's own pin (0v - released, 3.3v pushed).
It is using up too many pins, is there a way that I can minimise the amount of pins it used, i.e. I/O expander?
If so, is someone able to supply a schematic for connecting one to the prop.
There are 17 pins(buttons).
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"powered by Propeller" domed stickers $1.50 - Find them here
Check out my Design and Technology project for my Higher School Certificate www.ecosureblog.net
The Sarah Myatt Fund - Help Sarah and Her Family Fight Quadriplegia HERE
Comments
I could connect them all too the same prop pins but just give them incremented id's.
Any thoughts?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"powered by Propeller" domed stickers $1.50 - Find them here
Check out my Design and Technology project for my Higher School Certificate www.ecosureblog.net
The Sarah Myatt Fund - Help Sarah and Her Family Fight Quadriplegia HERE
Post Edited (Todd Chapman) : 6/30/2010 4:59:49 AM GMT
The buttons are pulled low with 10k's and then shorted to vdd. Is this a problem?
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"powered by Propeller" domed stickers $1.50 - Find them here
Check out my Design and Technology project for my Higher School Certificate www.ecosureblog.net
The Sarah Myatt Fund - Help Sarah and Her Family Fight Quadriplegia HERE
EDIT I just realized the switch 17 in the drawing is configured to pull the pins to GND, while the other two buttons pull the pins high. So this schematic is flawed, but still gives the idea for using several pins at once to exceed the 16 input limit. You could hold all the inputs high, and let the buttons 1-16 pull the pins low, then the 3904's should work as drawn.
Also, using 16 or more 10k's pulling UP the inputs may tax your supply, so if that is a concern, you may want to use something high, 47k for example as pullups.
Post Edited (Todd Chapman) : 6/30/2010 9:04:29 PM GMT