1 x 6 Matrix Membrane Keypad (HCPROJ0007)

Soldering accessories, project boxes, keypads, battery holders etc.
Post Reply
admin
Site Admin
Posts: 820
Joined: Sun Aug 05, 2012 4:02 pm

1 x 6 Matrix Membrane Keypad (HCPROJ0007)

Post by admin » Thu May 22, 2014 4:09 pm

Image

Description:

Membrane keypad (HCPROJ0007) in a 1 x 6 configuration including an integrated LED. The keypad is an ultra thin design with a self adhesive backing allowing it to be easily attached to most flat surfaces. The 96mm flat ribbon cable provides access to all 6 buttons including the built in LED and has a standard 0.1" pitch dupont style connector.

Specification:

Model number: HCPROJ0007
Max voltage: 50VDC
Max current: 100mA
Contact resistance: 0.5 to 10 Ohm
Min insulation resistance: 100M Ohm
Max contact bounce: 6ms
Operating temp: -20 to +40 oC
Life expectancy: 1 million closures
Connector: 9 pin Dupont 0.1" / 2.54mm pitch

PLEASE NOTE: The integrated LED is not fitted with a current limiting resistor.

Pinout:

PIN
1......Row 1
2......Column 1 (Auto)
3......Column 2 (Menu)
4......Column 3 (LEFT)
5......Column 4 (RIGHT)
6......Column 5 (SELECT)
7......Column 6 (ON/OFF)
8......LED Cathode
9......LED Anode


Dimensions:
Image

Image


Exclusive Arduno Sketch and library:
  1. /* FILE:    HCMatrixKeypad.cpp
  2.    DATE:    14/05/14
  3.    VERSION: 0.1
  4.    AUTHOR:  Andrew Davies
  5.  
  6. This is an example of how to use the the HCMatrixkepday library that has been
  7. written two work with most types of matrix keypads including keypads sold via our
  8. own website.
  9.  
  10. The current version of library supports the following arrangement (columns x rows)
  11. of keypads:
  12.  
  13. 4 x 5 (see SKU: HCPROJ0003)
  14. 4 x 4 (see SKU: HCPROJ0001 & HCPROJ0002)
  15. 3 x 4 (see SKU: HCPROJ0004)
  16. 6 x 1 (see SKU: HCPROJ0007)
  17. 4 x 1 (see SKU: HCPROJ0005)
  18.  
  19.  
  20. KEYPAD PINOUTS FOR ABOVE KEYPADS:
  21.  
  22. PIN....4x5.....4x4.....3x4.....4x1.....6x1
  23. 1......R1......C4......C3......C3........
  24. 2......R2......C3......C2......C4........
  25. 3......R3......C2......C1......C1......C6
  26. 4......R4......C1......R4......C2......C5
  27. 5......R5......R4......R3......R1......C4
  28. 6......C4......R3......R2..............C3
  29. 7......C3......R2......R1..............C2
  30. 8......C2......R1........................C1
  31. 9......C1................................R1
  32.  
  33.  
  34. You may copy, alter and reuse this code in any way you like, but please leave
  35. reference to HobbyComponents.com in your comments if you redistribute this code.
  36. This software may not be used directly for the purpose of selling products that
  37. directly compete with Hobby Components Ltd's own range of products.
  38.  
  39. THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
  40. EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
  41. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
  42. HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
  43. INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
  44. REASON WHATSOEVER.
  45. */
  46.  
  47. /* Include the HCMatrixkeypad library */
  48. #include <HCMatrixKeypad.h>
  49.  
  50. /* Sets how many times the same key must be scanned before it is accepted as
  51.    pressed (settled). If you get multiple key presses then increase this value
  52.    (max 255)*/
  53. #define DEBOUNCE 10
  54.  
  55. #define C1 2  /* DIO for keypad column 1 */
  56. #define C2 3  /* DIO for keypad column 2 */
  57. #define C3 4  /* DIO for keypad column 3 */
  58. #define C4 5  /* DIO for keypad column 4. Delete if there is no column 4! */
  59. #define C5 6  /* DIO for keypad column 5. Delete if there is no column 5! */
  60. #define C6 7  /* DIO for keypad column 6. Delete if there is no column 6! */
  61.  
  62. #define R1 12 /* DIO for keypad row 1 */
  63. #define R2 11 /* DIO for keypad row 2. Delete if there is no row 2! */
  64. #define R3 10 /* DIO for keypad row 3. Delete if there is no row 3! */
  65. #define R4 9  /* DIO for keypad row 4. Delete if there is no row 4! */
  66. #define R5 8  /* DIO for keypad row 5. Delete if there is no row 5! */
  67.  
  68. //HCMatrixKeypad Keypad(DEBOUNCE, C1, C2, C3, C4, ROWMARKER, R1, R2, R3, R4, R5); /* Uncomment for 4x5 keypad */
  69. //HCMatrixKeypad Keypad(DEBOUNCE, C1, C2, C3, C4, ROWMARKER, R1, R2, R3, R4); /* Uncomment for 4x4 keypad */
  70. //HCMatrixKeypad Keypad(DEBOUNCE, C1, C2, C3, ROWMARKER, R1, R2, R3, R4); /* Uncomment for 3x4 keypad */
  71. //HCMatrixKeypad Keypad(DEBOUNCE, C1, C2, C3, C4, ROWMARKER, R1); /* Uncomment for 4x1 keypad */
  72. HCMatrixKeypad Keypad(DEBOUNCE, C1, C2, C3, C4, C5, C6, ROWMARKER, R1); /* Uncomment for 6x1 keypad */
  73.  
  74.  
  75. void setup()
  76. {
  77.     Serial.begin(9600);
  78. }
  79.  
  80. /* Main program */
  81. void loop()
  82. {
  83.   /* Scans the keypad once. This line needs to be run repeatedly */
  84.   Keypad.Scan();
  85.  
  86.   /* Has a new key been pressed  */
  87.   if(Keypad.New_Key())
  88.   {
  89.     /* If so the send the key to the serial port */
  90.     Serial.print("Key Pressed: Row ");
  91.     Serial.print(Keypad.Read() / 10); /* 10's column is the keypad row number */
  92.     Serial.print(" Col ");
  93.     Serial.println(Keypad.Read() % 10); /* 1's column is the keypad column number */
  94.   }
  95.  
  96. }
Arduino library for the above sketch can be found in the software section of our forum here:

http://forum.hobbycomponents.com/viewto ... =43&t=1581



Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do no provide any guarantees or warranties as to their accuracy or fitness for purpose.

Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.

RetroBoy
Posts: 64
Joined: Sat Feb 26, 2022 11:29 am
Location: U.K.

Re: HCMatrixkeypad - Matrix keypad library

Post by RetroBoy » Mon Aug 15, 2022 11:10 pm

Hi Andrew,

Q1: I have the 6 x 1 Keypad ( HCPROJ0007 ), are the pins numbered looking at it from the button side or the back, and L2R or R2L ?

Q2: Is an Overlay available to change the Wording, or do I simply use my own labels ? ( ps: It's not a silly question I'm using it for Model Railway Routes ( Point Control ) 1 -5 or A - E plus Lighting No6. The only other keypads were either TOO much or only 1 - 4 ).
Thanks S.

andrew
Site Admin
Posts: 1278
Joined: Sun Aug 05, 2012 4:15 pm

Re: HCMatrixkeypad - Matrix keypad library

Post by andrew » Tue Aug 16, 2022 8:02 am

Q1: I have the 6 x 1 Keypad ( HCPROJ0007 ), are the pins numbered looking at it from the button side or the back, and L2R or R2L ?
It's from the button side but to make this clearer I've updated the dimensions image in the product thread to show which is pin 1 (see the first post):

viewtopic.php?f=101&t=1615&p=3678#p3678

Btw, I'll me moving this post to that thread as the questions are more relevant to the product thread than the HCMatrixkeypad thread.

Q2: Is an Overlay available to change the Wording, or do I simply use my own labels ? ( ps: It's not a silly question I'm using it for Model Railway Routes ( Point Control ) 1 -5 or A - E plus Lighting No6. The only other keypads were either TOO much or only 1 - 4 ).
Thanks S.
I'm not aware of anything for this keypad so you would have to create something.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

RetroBoy
Posts: 64
Joined: Sat Feb 26, 2022 11:29 am
Location: U.K.

Re: HCMatrixkeypad - Matrix keypad library

Post by RetroBoy » Tue Aug 16, 2022 2:54 pm

Thanks for the info.

No probs regarding Overlays, I have 'Self Adhesive -Thin Printer Film' I can use ( a quick OpenOffice Job! ).

Post Reply

Return to “Project / Soldering”