4x4 keypad hookup
James_77
Posts: 2
I'm very new to microcontrollers and I would like to ask·this
question please.·
Can I hardwire pins from a 4x4 keypad directly to BS2 pins- sort
of like wiring a simple push button-· to simplify coding and simplify
hookups- no controllers/interfaces, etc.· ?
For example, I want to wire so that· # 1 on the keypad is directly wired
to p1 on the BS2,· #4 on keypad to p4, and #8 on keypad to p8.
So, basically, my "passcode" is 148.
Then,· I can code the BS2:
if p1=high, store the number 1
if p4=high, store the number 4
if p8=high, store the number 8
If "storage" = 148, pulseout ........·· (activate a servo or peizo speaker,·blink an LED, or whatever)
My guess is that you can't because of the way the keypad circuitry is designed.
BUT, it would be a huge relief for me if I can- it would save LOTS of time as I'm older with
3 young kids and don't have much time to learn- although the Parallax 4x4 keypad with MEMkey
might be a fairly easy solution.
I·need a keypad·system that activates a servo to rotate·about an inch.
I VERY MUCH appreciate any advice·that anyone·can swing my way
James
question please.·
Can I hardwire pins from a 4x4 keypad directly to BS2 pins- sort
of like wiring a simple push button-· to simplify coding and simplify
hookups- no controllers/interfaces, etc.· ?
For example, I want to wire so that· # 1 on the keypad is directly wired
to p1 on the BS2,· #4 on keypad to p4, and #8 on keypad to p8.
So, basically, my "passcode" is 148.
Then,· I can code the BS2:
if p1=high, store the number 1
if p4=high, store the number 4
if p8=high, store the number 8
If "storage" = 148, pulseout ........·· (activate a servo or peizo speaker,·blink an LED, or whatever)
My guess is that you can't because of the way the keypad circuitry is designed.
BUT, it would be a huge relief for me if I can- it would save LOTS of time as I'm older with
3 young kids and don't have much time to learn- although the Parallax 4x4 keypad with MEMkey
might be a fairly easy solution.
I·need a keypad·system that activates a servo to rotate·about an inch.
I VERY MUCH appreciate any advice·that anyone·can swing my way
James
Comments
www.parallax.com/Resources/NutsVoltsColumns/tabid/272/Default.aspx
Much appreciated.
James