GUIDE FOR SETTING UP A MEMBRANE KEYPAD BOARD (M31 AND M32) ON A PoKeys55 USING MACH3

For this implementation the optional M2 - PoKeys 55 Motherboard: http://www.cnc4pc.com/Store/osc/product_info.php?cPath=54&products_id=219.  is required and an M31 - PRIMARY KEYPAD BOARD: http://www.cnc4pc.com/Store/osc/product_info.php?cPath=54&products_id=238

The M33 needs to be connected to Port3 of the M2 board, the pinout is the following:

I/O TERMINALS

FUNCTION

PoKeys55 PIN

(Port 1)

PoKeys55 PIN

(Port 3)

 

Matrix Column 1

1

25

 

Matrix Column 2

2

28

 

Matrix Column 3

 3

29

 

Matrix Column 4

4

30

 

Matrix Row 1

5

26

 

Matrix Row 2

6

32

 

Matrix Row 3

7

33

 

Matrix Row 4

8

34

 

Matrix Column 5

9

23

 

Matrix Column 6

10

24

 

Matrix Column 7

17

43

 

Matrix Column 8

18

44

 

Matrix Row 5

11  *

35  **

 

Matrix Row 6

12  *

36  **

Matrix Row 7

54  *

37  **

Matrix Row 8

14  *

38  **

1

I/O

15  *

39  **

2

I/O

16  *

40  **

3

I/O

21  *

41  **

4

I/O

22  *

42  **

5

I/O

27  *

47  **

6

I/O

31  *

48  **

7

I/O

19  *

45  **

8

I/O

20  *

46  **

5V

5V

5V

5V

3.3V

3.3V

3.3V

3.3V

GND

GND

GND

GND

 .

Run the PoKeys Configuration program and configure the I/Os accordingly.  Go to Peripherals / Matrix Keyboard.  Enable the Matrix Keypad and select the number of rows and columns according to the combination of primary and expansion boards.

The pins used for the matrix keypad must also be configured, as shown in the image:

Steps for configuring Mach3:

1. Install and configure the latest plugin for PoKeys.  In Mach3, under PlugIn Control / PoKeys Cfg.., enable and map the rows and columns of the matrix.  You can map user LEDs to each output of the matrix.  In this example we are mapping the matrix to ULEDs 2001 to 2016.

When a key of the matrix is pressed, the USER LED goes high:

These LEDs could be used in brain to trigger actions.

Enclosed find the steps for a brain called CycleStart.brn, which would be tied to the first key of the keypad, with an icon that corresponds to cycle start:

Once you enable this brain, and touch the first key of the keypad, it will be just like pressing button "Cycle Start" on the mach3 screen.

An XML file with this configuration can be found HERE:

A PoKeys configuration file can be found HERE: