Shop OBEX P1 Docs P2 Docs Learn Events
Radio Shack 3x5 Matrix Keyboard (p/n: 270-215) (modified from Parallax 4x4 Help — Parallax Forums

Radio Shack 3x5 Matrix Keyboard (p/n: 270-215) (modified from Parallax 4x4 Help

T&E EngineerT&E Engineer Posts: 1,396
edited 2007-11-21 21:02 in General Discussion
A few months ago I found on clearance at Radio Shack·a 3x5 Matrix Keypad (part number 270-215). It's not sold anymore but you may be able to pick one up in a clearance bin like I did for a couple of bucks.

I decided to modify the SX/B HELP code example of the 4x4 Matrix Keyboard design. For anyone interested, here is my modified code and schematic attachments.

Enjoy!

Comments

  • denny74denny74 Posts: 10
    edited 2007-11-15 23:26
    I have the same keypad. Could you direct me on how to connect it to the BS2sx chipset. I also notice a modifier error on the :Col1 VAR Keys.7 Col2 VAR Keys.6 Col3 VAR Keys.5 when I ran the above source code. It expects a variable modifier. I don't understand that error can anyone helped me with it.
    Thanks,
    Den
  • T&E EngineerT&E Engineer Posts: 1,396
    edited 2007-11-16 16:48
    The SX/B·code compiles fine so I'm not sure what you mean by a "modifier error". Can you post a screen capture and any more detail to what you are doing with it? Are you simply just using it to see the 7-segment display turn on? I have another version that uses the SX-28 as a keypad encoder and the data can go from the SX-28 to a BS2. I haven't written an encoder for the BS2 but others may be able to help. I have also purchased a $5 4x4 mini keypad from www.futurelec.com·that I have a schematic and SX-28 SX/B code for too. Let me know what your application is and more detail to assist.
  • denny74denny74 Posts: 10
    edited 2007-11-16 17:36
    I am using it to on a 4-digits LCD. Here is the file for the error I noticed when I tried to compile the source codes.· I am still on setting up the interface on the BS2sx.·· which pins of the keypad is connected where on the controller.
    thanks
    den
  • T&E EngineerT&E Engineer Posts: 1,396
    edited 2007-11-16 17:58
    Denny,

    You are in an SX forum not the Basic Stamp forum. You tried to run an SX/B program written for an SX-28 on a Basic Stamp 2 which is not possible unless the program is modified for the Basic Stamp 2. If I have time tonight or tomorrow night, I will convert it to the Basic Stamp 2 for you. However, I like to work with the SX chips because they are cheaper than the Basic Stamp 2.
  • denny74denny74 Posts: 10
    edited 2007-11-16 18:07
    Thanks T&E Engineer,
    I would not have realized that.
    Thanks,
    den
  • Sparks-R-FunSparks-R-Fun Posts: 388
    edited 2007-11-16 18:17
    denny74,

    Although the BS2-SX incorporates an SX chip the SX chip inside the BS2-SX can not be easily reprogrammed. It certainly can not be reprogrammed using the Basic Stamp software that you have. Although the Basic Stamp and the SX/B basic compiler share many similarities common to the Basic language they are, in fact, separate languages. Their programs are not directly interchangeable.

    The good news is that you may be able to look at a program written in SX/B and be able to figure out how a similar program can be constructed to run on the Basic Stamp. (Or T&E Engineer might rewrite this one for you.) Unfortunately, the program T&E Engineer first posted is not designed to run directly on your BS2-SX. You require a Basic Stamp program.

    - Sparks
  • denny74denny74 Posts: 10
    edited 2007-11-19 14:12
    T&E,
    I would appreciate it if you can give me some pointers on how to modify the codes for the keypad. It is possibly better to start with your codes than starting from scratch trying to interface the the keypad with BS2 sx.
    Thanks,
    den
  • T&E EngineerT&E Engineer Posts: 1,396
    edited 2007-11-19 17:25
    Here is what I have so far (not working yet). I will try to get to it tonight. But feel free to give it a look at too.

    Keep in mind that the original Drawing can be used indicating:

    SX-28·············· BS2 series
    RB.0 to RB.7 ->·P0-P7

    RC.0 to RC.7 -> P8-P15

    Post Edited (T&E Engineer) : 11/19/2007 5:30:57 PM GMT
  • ForrestForrest Posts: 1,341
    edited 2007-11-19 17:44
    Nuts and Volts column 22 describes how to connect a matrix keypad to a BS2 along with a program www.parallax.com/Resources/NutsVoltsColumns/NutsVoltsVolume1/tabid/444/Default.aspx
  • denny74denny74 Posts: 10
    edited 2007-11-21 20:55
    I am using the following code to active a 5X3 matrix keypad. I don't seem to have the right key on the debug window. Only 3 keys are being activated and the rest are inactive. Here are the codes and the results. I can't make sense out of the data on the debug window.
    Please help at your convenience.
    Regards,
    Denmarc
  • denny74denny74 Posts: 10
    edited 2007-11-21 21:02
    I am using the following code to active a 5X3 matrix keypad. I don't seem to have the right key on the debug window. Only 3 keys are being activated and the rest are inactive. Here are the codes and the results. I can't make sense out of the data on the debug window.
    Please help at your convenience.
    Regards,
    Denmarc
Sign In or Register to comment.