Shop OBEX P1 Docs P2 Docs Learn Events
Keypad Reader Program? — Parallax Forums

Keypad Reader Program?

Dan TaylorDan Taylor Posts: 207
edited 2009-07-22 20:03 in General Discussion
I have a 4 x 4 keypad with 3 pins and a 3 x 4 keypad with 13 pins. Could someone post a BASIC or Propeller program helping me read these?

The 4 x 4 keypad is sold by www.ucontroller.com/index_pro1.html


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor

Comments

  • mctriviamctrivia Posts: 3,772
    edited 2009-07-22 15:24
    The 3 pin version is going to be serial

    Never seen a 13 pin but 1 will be common amongst all connect it to gnd and put a 10k resister from each of others to your power rail. To read just look for a 0 meaning button is pressed.

    Most have 7 pins where you would connect 3 of the pins to power through resisters and output a 0 on each of the other 4 in turn. When button is pressed you get a 0 back on 1 of the 3 and 1 of the 4 you outputed corresponding to row and column

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • phil kennyphil kenny Posts: 233
    edited 2009-07-22 15:26
    This thread may get you started on the 3x4 keypad:

    http://forums.parallax.com/showthread.php?p=697153

    And here is one for the 4x4 keypad:

    http://forums.parallax.com/showthread.php?p=820064

    phil

    Post Edited (phil kenny) : 7/22/2009 5:41:53 PM GMT
  • Dan TaylorDan Taylor Posts: 207
    edited 2009-07-22 15:37
    Could you post a program showing how to read the signal from a serial keypad?

    How do I know which pin is the GND? Just try each one in turn?

    Thanks for all of your fast replies!!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dan Taylor
  • mctriviamctrivia Posts: 3,772
    edited 2009-07-22 15:41
    Likely 1 of the ends

    Use miltimeter between 2 pins if gndone of the buttons will cause contacts to short

    Never used serial keypad just recognize pin count

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • parts-man73parts-man73 Posts: 830
    edited 2009-07-22 20:03
    Look closely at the PCB right near the 3 pin connector. The pins are labeled "TX" "VDD" and "VSS" from left to right when viewing the Keypad from the front. VSS is "ground", if connecting to a Stamp, VDD can be connected to +5V, if using a propeller, I'd connect VDD to +3.3V

    TX is then connected to your microcontroller. I haven't used a STAMP in years, but if you'd like some Propeller code, let us know what the rest of your Propeller set up consists of... Do you have connected to TV or VGA that you want to echo each keypress to? or echo right back to a serial terminal?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Brian

    uController.com - home of SpinStudio - the modular Development system for the Propeller

    PropNIC - Add ethernet ability to your Propeller! PropJoy - Plug in a joystick and play some games!

    SD card Adapter - mass storage for the masses Audio/Video adapter add composite video and sound to your Proto Board
Sign In or Register to comment.