Sauraen Posted November 10, 2013 Report Share Posted November 10, 2013 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 ... Quote Link to comment Share on other sites More sharing options...
freddy Posted November 10, 2013 Report Share Posted November 10, 2013 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 ;) Quote Link to comment Share on other sites More sharing options...
Spirit Posted November 10, 2013 Report Share Posted November 10, 2013 i dont think MB_NG can do this.. maby a new feature for TK to make.. But MB_can only handle 128 Encoders.. 32 DIN Shiftregisters x 8 inputs = 256, each Encoder needs 2 inputs so 128 encoders... /spirit Quote Link to comment Share on other sites More sharing options...
TK. Posted November 10, 2013 Report Share Posted November 10, 2013 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. Quote Link to comment Share on other sites More sharing options...
Sauraen Posted November 11, 2013 Author Report Share Posted November 11, 2013 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.