Jump to content

LED digit issue


Marxon
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by Marxon
Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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 ...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
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...