Jump to content

Encoders in DIN Matrix?


Sauraen
 Share

Recommended Posts

Hi TK,

 

Does the current MBNG firmware allow connecting encoders in the DIN_MATRIX? In the documentation, I see how to configure individual buttons from the matrix as separate, independent buttons, but I don't see anything about encoders. For instance, something like:

 

DIN_MATRIX n=1 rows=8 inverted=1 \
    sr_dout_sel1=1 sr_dout_sel2=0 \
    sr_din1=1 sr_din2=2 sr_din3=3 sr_din4=4 \
    button_emu_id_offset=1001

ENC n=1 buttons=1001:1002 type=detented1
ENC n=2 buttons=1003:1004 type=detented1
...

 

Link to comment
Share on other sites

Well, correct me if I'm wong but you can always treat DIO_MATRIX as 2xDIN and 2xDOUT, matrix is just for convenience use in a single connector and on a single module. The schems seem to confirm this. Just make sure you do the DIN/DOUT SR counting properly ;)

Link to comment
Share on other sites

Yes, encoders are not supported for the DIN_MATRIX since they require a high scan frequency. The software is not prepared for this.

 

 

Well, correct me if I'm wong but you can always treat DIO_MATRIX as 2xDIN and 2xDOUT, matrix is just for convenience use in a single connector and on a single module. The schems seem to confirm this. Just make sure you do the DIN/DOUT SR counting properly ;)

 

you mean the MBHP_DIO_MATRIX module, and this is correct.

But Sauraen means the DIN_MATRIX component in the MBNG firmware.

 

Best Regards, Thorsten.

Link to comment
Share on other sites

So if I am planning a build (MBFM V2.0) that requires a lot of encoders (~40), you would recommend that I get 10 74HC165s and hook them up directly, not in a matrix? Personally I would just modify the firmware, but since I want this to be compatible for everyone, that's probably not a good idea. :)

 

It would take somewhat longer to select multiple rows and shift in data from each than to shift in data from one much longer DIN chain, but would it be that different? And wouldn't it be easier on the hardware side to work with a matrix of encoders than a dedicated shift register for every four encoders?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...