USB haas operator panel interface

More
3 years 6 months ago #268402 by tommylight
@Fomer,
Cick on "source" when replying or quoting, see if it is easier to use the editor.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #271619 by cschley8
Hi Chris,

Do you have the matrix layout to understand which pins on the ribbon connector are associated with which keys? I am trying to understand this from the Arduino code that you posted, but I am getting lost on the special keys such as "+10 Spindle".

Thanks
Cam

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #271640 by cmorley
I don't have a written down map.
I used hass_multiline to print character into a terminal.
With a bit of thoughtful changes it could write out the column and row numbers

Here is the keys I know. each line is a row, each object in the line is a column.
row 1, column 1 is key f6
row 2, column 11 is key Y
The zeros are other currently undefined keys.

(from haas_multi_usb_int)
Code:
 int stdKeys[ROWS][COLS] = {   {K_F6, 0, 0, K_UP, 0, K_DOWN, K_B, K_H, K_N, K_T, K_Z},   {0, 0, 0, K_HOME, K_LEFT, K_END, K_A, K_G, K_M, K_S, K_Y},   {0, K_F8, 0, 0, 0, 0,  K_SHIFT, K_F, K_L, K_R, K_X},   {K_ESC, K_F4, 0, 0, 0, 0, 0, 0, 0, 0, 0},   {K_ESC, K_F3, 0, 0, 0, 0, 0, 0, 0, 0, 0},   {K_ESC, K_F2, 0, 0, 0, 0, 0, 0, 0, 0, 0},   {0, K_F1, 0, 0, 0, 0, 0, 0, 0, 0, 0},   {0, 0, 0, K_PGUP, K_RIGHT, K_PGDN, K_C, K_I, K_O, K_U, K_MNS},   {0, 0, 0, 0, 0, 0, K_D, K_J, K_P, K_V, K_9 + _S},   {K_INSERT, 0, 0, 0, 0, 0, K_E, K_K, K_Q, K_W, K_0 + _S},   {K_TAB, 0, 0, 0, 0, 0, K_7, K_4, K_1, K_COMMA, K_CANCEL},   {K_BSPC, 0, 0, 0, 0, 0, K_8, K_5, K_2, K_0, K_SPACE},   {K_ESC, 0, 0, 0, 0, 0, K_9, K_6, K_3, K_PERIOD, K_ENTER}, };
The following user(s) said Thank You: GeckoWorks

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #271641 by cmorley
Should be able to map the rows and columns of the wires from the pics.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
1 year 11 months ago #315186 by Sternfox
Amazing work! I am currently converting a haas mini mill, and not too familiar with the ribbon cable coming from the keypad. What side goes to what pins on the mega? I tried to read the sketch but couldn't work out the pins. I would be very grateful if you could assist me! I also have the pcb from the board with the rs port. I did see someone was working on that way too.

Many thanks Chris

Please Log in or Create an account to join the conversation.

More
1 year 11 months ago #315567 by cmorley
if you look carefully at the pics on page 3 you should be able to figure out the wiring.
One pic shows the ribbon with two groups of wires.
one starts with a black wire and ends with a gray wire.
one starts with a brown wire and ends with a brown wire.

black to gray is for megas's pins 23 to 47
brown to brown is for pins 2-12

Chris
The following user(s) said Thank You: GeckoWorks, Sternfox

Please Log in or Create an account to join the conversation.

Time to create page: 0.323 seconds
Powered by Kunena Forum