Marxon Posted February 6, 2015 Report Share Posted February 6, 2015 Hi Midiboxers, i noticed some very strange behavoir when using this code. DOUT_MATRIX n=1 rows=8 inverted_row=1 inverted_sel=1 mirrored_row=0 sr_dout_sel1=1 sr_dout_r1=5 # -- -- -- xx EVENT_RECEIVER id=4 fwd_id=SENDER:4 range=0:127 type=CC chn=1 cc=104 EVENT_SENDER id=4 fwd_id=LED_MATRIX:2 EVENT_SENDER id=4 fwd_id=LED_MATRIX:1 EVENT_LED_MATRIX id=2 led_matrix_pattern=LcDigit EVENT_LED_MATRIX id=1 led_matrix_pattern=LcDigit This video shows what happens when sending CC104 Video But should the digits not look the same? Best regrads Marxon Quote Link to comment Share on other sites More sharing options...
ilmenator Posted February 6, 2015 Report Share Posted February 6, 2015 Looks a bit as if the pinning of your LED digits was goofed up. What is it that you want to see? Quote Link to comment Share on other sites More sharing options...
Marxon Posted February 6, 2015 Author Report Share Posted February 6, 2015 Hi ilmenator, I checked everything multiple times. Replaced the 595s, digits, cables and boards. For me the 2nd digit seems to react like "standard" led matrix pattern instead the LcDigit pattern. And if the pinning is messed up should the first digit not be affected too because the cathodes have a parallel wiring? Best regards Marxon Quote Link to comment Share on other sites More sharing options...
ilmenator Posted February 6, 2015 Report Share Posted February 6, 2015 What do you mean by "2nd digit"? The two displays on the right side of your board, or just the right-most "digit"? Quote Link to comment Share on other sites More sharing options...
Marxon Posted February 6, 2015 Author Report Share Posted February 6, 2015 The right most digit Quote Link to comment Share on other sites More sharing options...
mumblecake Posted February 6, 2015 Report Share Posted February 6, 2015 not sure that your event definition will work correctly. You have used the Sender ID = 4 twice. Try EVENT_RECEIVER id=4 fwd_id=SENDER:4 range=0:127 type=CC chn=1 cc=104 EVENT_SENDER id=4 hw_id=4 fwd_id=LED_MATRIX:2 EVENT_SENDER id=5 hw_id=4 fwd_id=LED_MATRIX:1 and see if that makes a difference. Quote Link to comment Share on other sites More sharing options...
Marxon Posted February 6, 2015 Author Report Share Posted February 6, 2015 (edited) According to mapmidi.ngc from the SVN # Note: it's possible to assign the same ID to multiple senders # advantage: only a single receiver has to be defined, which then forwards to multiple sender located in different banks So it should work. EDIT: ...located in different banks. May this is my problem. Edited February 6, 2015 by Marxon Quote Link to comment Share on other sites More sharing options...
ilmenator Posted February 6, 2015 Report Share Posted February 6, 2015 Well looking at the video there doesn't seem to be a difference between first and second digit - both seem to display non-numeric garbage, that's where my suspicion came from. What would you expect to see? Numbers? In which order? Counting up and then down again? Quote Link to comment Share on other sites More sharing options...
Marxon Posted February 6, 2015 Author Report Share Posted February 6, 2015 I made four 2-digit displays (so 8 digits total) each display gets controlled via a CC. CC101 display 1 CC102 display 2 CC103 display 3 CC104 display 4 Now i want them to show only a specific set of values. For example: 3.2. 1.6. 1.4. 4 32 So i created two different MAPs for first and the 2nd digit. Here is the ngc code: # ------------------------------------------------------------------------------- # EVENTs [connector DIGIT]------------------------------------------------------- # ------------------------------------------------------------------------------- DOUT_MATRIX n=1 rows=8 inverted_row=1 inverted_sel=1 mirrored_row=0 sr_dout_sel1=1 sr_dout_r1=5 # xx -- -- -- EVENT_RECEIVER id=1 fwd_id=SENDER:1 range=0:127 type=CC chn=1 cc=101 EVENT_SENDER id=1 fwd_id=LED_MATRIX:8 EVENT_SENDER id=1 fwd_id=LED_MATRIX:7 EVENT_LED_MATRIX id=8 led_matrix_pattern=LcDigit EVENT_LED_MATRIX id=7 led_matrix_pattern=LcDigit # -- xx -- -- EVENT_RECEIVER id=2 fwd_id=SENDER:2 range=0:127 type=CC chn=1 cc=102 EVENT_SENDER id=2 fwd_id=LED_MATRIX:6 EVENT_SENDER id=2 fwd_id=LED_MATRIX:5 EVENT_LED_MATRIX id=6 led_matrix_pattern=LcDigit EVENT_LED_MATRIX id=5 led_matrix_pattern=LcDigit # -- -- xx -- EVENT_RECEIVER id=3 fwd_id=SENDER:3 range=0:127 type=CC chn=1 cc=103 EVENT_SENDER id=3 fwd_id=LED_MATRIX:4 EVENT_SENDER id=3 fwd_id=LED_MATRIX:3 EVENT_LED_MATRIX id=4 led_matrix_pattern=LcDigit EVENT_LED_MATRIX id=3 led_matrix_pattern=LcDigit # -- -- -- xx EVENT_RECEIVER id=4 fwd_id=SENDER:4 range=0:127 type=CC chn=1 cc=104 EVENT_SENDER id=4 fwd_id=LED_MATRIX:2 EVENT_SENDER id=4 fwd_id=LED_MATRIX:1 EVENT_LED_MATRIX id=2 led_matrix_pattern=LcDigit EVENT_LED_MATRIX id=1 led_matrix_pattern=LcDigit # --------------------------------------------------------------------------------- MAP2 115 113 113 113 113 0 0 0 0 49 51 MAP1 114 118 120 116 114 49 50 52 56 54 50 Display 1, 2 and 3 work like expected except the 2nd digit of display 4. During troubleshooting i removed the MAP parameters from all events and expected that both digits of display 1-4 will show the same. Again display 1, 2 and 3 work like expected except display 4. This is what you can see in the video. Quote Link to comment Share on other sites More sharing options...
mumblecake Posted February 7, 2015 Report Share Posted February 7, 2015 I would very much doubt that the double assigning of IDs plays a role if it works three times. You said that you double checked all the midi hardware, exchanging the SR chips etc. How difficult would it be to swap your displays. E.g. swap display 3 & 4 and see if it is still display 4 which makes the trouble? Just to try to narrow down the problem. Do you have a scope which you could use to debug the signals. It's all very mysterious ... Quote Link to comment Share on other sites More sharing options...
Marxon Posted February 8, 2015 Author Report Share Posted February 8, 2015 I would very much doubt that the double assigning of IDs plays a role if it works three times.. Yes a messed up wiring would also affect the other LEDs. How difficult would it be to swap your displays. E.g. swap display 3 & 4 and see if it is still display 4 which makes the trouble? Just to try to narrow down the problem. I allready swaped the output connections of the sr_dout_sel shift register. It turns out that only LED_MATRIX:1 has this strange behavoir. Quote Link to comment Share on other sites More sharing options...
Marxon Posted February 8, 2015 Author Report Share Posted February 8, 2015 UPDATE Sometimes strange things happen: After doing some other work on the Midibox without changing anything relevant the problem has gone. :smile: Nevertheless thank you all for your help. Have a nice weekend. Best regards Marxon 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.