novski Posted April 18, 2013 Report Share Posted April 18, 2013 I have problems with my LED Matrix. I built it upon the Schematic of Fairlightiii's pcb but with just 8 Encoders and LED Rings. By turning one of the Encoders all LEDs around the other Encoders go on, but the LEDs around the Encoder i turn don't. And the brightness of the LEDs increase by Turning all the Encoders to 127. Don't know where to start searching. The PCB is correct, i checked that. this ist my config .ngc for testing: RESET_HW LCD "%C" LCD "@(1:1:8)OLED1" LCD "@(2:1:8)OLED2" LCD "@(3:1:8)OLED3" LCD "@(4:1:8)OLED4" LCD "@(5:1:8)OLED5" LCD "@(6:1:8)OLED6" LCD "@(7:1:8)OLED7" LCD "@(8:1:8)OLED8" # Buttons configuration EVENT_BUTTON id=1 fwd_id=LED:1 type=NoteOn key=24 lcd_pos=1:1:1 label="^std_btn" EVENT_BUTTON id=2 fwd_id=LED:2 type=NoteOn key=37 lcd_pos=2:1:1 label="^std_btn" EVENT_BUTTON id=3 fwd_id=LED:3 type=NoteOn key=38 lcd_pos=3:1:1 label="^std_btn" EVENT_BUTTON id=4 fwd_id=LED:4 type=NoteOn key=39 lcd_pos=4:1:1 label="^std_btn" EVENT_BUTTON id=5 fwd_id=LED:5 type=NoteOn key=40 lcd_pos=5:1:1 label="^std_btn" EVENT_BUTTON id=6 fwd_id=LED:6 type=NoteOn key=41 lcd_pos=6:1:1 label="^std_btn" EVENT_BUTTON id=7 fwd_id=LED:7 type=NoteOn key=42 lcd_pos=7:1:1 label="^std_btn" EVENT_BUTTON id=8 fwd_id=LED:8 type=NoteOn key=43 lcd_pos=8:1:1 label="^std_btn" EVENT_BUTTON id=9 fwd_id=LED:9 type=NoteOn key=36 lcd_pos=1:1:1 label="^std_btn" EVENT_BUTTON id=10 fwd_id=LED:10 type=NoteOn key=37 lcd_pos=2:1:1 label="^std_btn" EVENT_BUTTON id=11 fwd_id=LED:11 type=NoteOn key=38 lcd_pos=3:1:1 label="^std_btn" EVENT_BUTTON id=12 fwd_id=LED:12 type=NoteOn key=39 lcd_pos=4:1:1 label="^std_btn" EVENT_BUTTON id=13 fwd_id=LED:13 type=NoteOn key=40 lcd_pos=5:1:1 label="^std_btn" EVENT_BUTTON id=14 fwd_id=LED:14 type=NoteOn key=41 lcd_pos=6:1:1 label="^std_btn" EVENT_BUTTON id=15 fwd_id=LED:15 type=NoteOn key=42 lcd_pos=7:1:1 label="^std_btn" EVENT_BUTTON id=16 fwd_id=LED:16 type=NoteOn key=43 lcd_pos=8:1:1 label="^std_btn" EVENT_BUTTON id=17 fwd_id=LED:17 type=NoteOn key=36 lcd_pos=1:1:1 label="^std_btn" EVENT_BUTTON id=18 fwd_id=LED:18 type=NoteOn key=37 lcd_pos=2:1:1 label="^std_btn" EVENT_BUTTON id=19 fwd_id=LED:19 type=NoteOn key=38 lcd_pos=3:1:1 label="^std_btn" EVENT_BUTTON id=20 fwd_id=LED:20 type=NoteOn key=39 lcd_pos=4:1:1 label="^std_btn" EVENT_BUTTON id=21 fwd_id=LED:21 type=NoteOn key=40 lcd_pos=5:1:1 label="^std_btn" EVENT_BUTTON id=22 fwd_id=LED:22 type=NoteOn key=41 lcd_pos=6:1:1 label="^std_btn" EVENT_BUTTON id=23 fwd_id=LED:23 type=NoteOn key=42 lcd_pos=7:1:1 label="^std_btn" EVENT_BUTTON id=24 fwd_id=LED:24 type=NoteOn key=42 lcd_pos=8:1:1 label="^std_btn" EVENT_BUTTON id=41 fwd_id=LED:41 type=NoteOn key=43 lcd_pos=1:1:2 label="^std_btn" EVENT_BUTTON id=41 fwd_id=LED:25 type=NoteOn key=43 lcd_pos=1:1:2 label="^std_btn" EVENT_BUTTON id=42 fwd_id=LED:42 type=NoteOn key=36 lcd_pos=2:1:2 label="^std_btn" EVENT_BUTTON id=43 fwd_id=LED:43 type=NoteOn key=37 lcd_pos=3:1:2 label="^std_btn" EVENT_BUTTON id=44 fwd_id=LED:44 type=NoteOn key=38 lcd_pos=4:1:2 label="^std_btn" EVENT_BUTTON id=45 fwd_id=LED:45 type=NoteOn key=39 lcd_pos=5:1:2 label="^std_btn" EVENT_BUTTON id=46 fwd_id=LED:46 type=NoteOn key=40 lcd_pos=6:1:2 label="^std_btn" EVENT_BUTTON id=47 fwd_id=LED:47 type=NoteOn key=41 lcd_pos=7:1:2 label="^std_btn" EVENT_BUTTON id=48 fwd_id=LED:48 type=NoteOn key=42 lcd_pos=8:1:2 label="^std_btn" # Encoder configuration ENC n= 1 sr=4 pins=0:1 type=detented2 ENC n= 2 sr=4 pins=2:3 type=detented2 ENC n= 3 sr=4 pins=4:5 type=detented2 ENC n= 4 sr=4 pins=6:7 type=detented2 ENC n= 5 sr=5 pins=0:1 type=detented2 ENC n= 6 sr=5 pins=2:3 type=detented2 ENC n= 7 sr=5 pins=4:5 type=detented2 ENC n= 8 sr=5 pins=6:7 type=detented2 # LEDring configuration DOUT_MATRIX n= 1 rows=8 sr_dout_sel1= 7 sr_dout_sel2= 0 sr_dout_r1= 8 sr_dout_r2= 9 # Encoder events EVENT_ENC id= 1 fwd_id=LED_MATRIX:1 type=CC chn= 1 cc= 24 lcd_pos=1:1:4 label="^std_enc" EVENT_ENC id= 2 fwd_id=LED_MATRIX:2 type=CC chn= 1 cc= 25 lcd_pos=2:1:4 label="^std_enc" EVENT_ENC id= 3 fwd_id=LED_MATRIX:3 type=CC chn= 1 cc= 26 lcd_pos=3:1:4 label="^std_enc" EVENT_ENC id= 4 fwd_id=LED_MATRIX:4 type=CC chn= 1 cc= 27 lcd_pos=4:1:4 label="^std_enc" EVENT_ENC id= 5 fwd_id=LED_MATRIX:5 type=CC chn= 1 cc= 28 lcd_pos=5:1:4 label="^std_enc" EVENT_ENC id= 6 fwd_id=LED_MATRIX:6 type=CC chn= 1 cc= 29 lcd_pos=6:1:4 label="^std_enc" EVENT_ENC id= 7 fwd_id=LED_MATRIX:7 type=CC chn= 1 cc= 30 lcd_pos=7:1:4 label="^std_enc" EVENT_ENC id= 8 fwd_id=LED_MATRIX:8 type=CC chn= 1 cc= 31 lcd_pos=8:1:4 label="^std_enc" # we've a single MBHP_MF_NG module with 8 motorfaders # It has to be configured for Motormix protocol! MF n=1 enabled=1 midi_in_port=IN2 midi_out_port=OUT2 chn=1 ts_first_button_id=2001 config_port=USB3 ################################################################################ # on motorfader movements EVENT_MF id= 1 fwd_id=ENC:33 type=CC chn= 1 cc=32 range=0:127 lcd_pos=1:1:5 label="^std_mf" EVENT_MF id= 2 fwd_id=ENC:34 type=CC chn= 1 cc=33 range=0:127 lcd_pos=2:1:5 label="^std_mf" EVENT_MF id= 3 fwd_id=ENC:35 type=CC chn= 1 cc=34 range=0:127 lcd_pos=3:1:5 label="^std_mf" EVENT_MF id= 4 fwd_id=ENC:36 type=CC chn= 1 cc=35 range=0:127 lcd_pos=4:1:5 label="^std_mf" EVENT_MF id= 5 fwd_id=ENC:37 type=CC chn= 1 cc=36 range=0:127 lcd_pos=5:1:5 label="^std_mf" EVENT_MF id= 6 fwd_id=ENC:38 type=CC chn= 1 cc=37 range=0:127 lcd_pos=6:1:5 label="^std_mf" EVENT_MF id= 7 fwd_id=ENC:39 type=CC chn= 1 cc=38 range=0:127 lcd_pos=7:1:5 label="^std_mf" EVENT_MF id= 8 fwd_id=ENC:40 type=CC chn= 1 cc=39 range=0:127 lcd_pos=8:1:5 label="^std_mf" # on touchsensor event (first id has been specified in the MF configuration above) EVENT_BUTTON id= 2001 type=NoteOn chn= 1 key=0x68 range=0:127 lcd_pos=1:1:6 label="^std_btn" EVENT_BUTTON id= 2002 type=NoteOn chn= 1 key=0x69 range=0:127 lcd_pos=2:1:6 label="^std_btn" EVENT_BUTTON id= 2003 type=NoteOn chn= 1 key=0x70 range=0:127 lcd_pos=3:1:6 label="^std_btn" EVENT_BUTTON id= 2004 type=NoteOn chn= 1 key=0x71 range=0:127 lcd_pos=4:1:6 label="^std_btn" EVENT_BUTTON id= 2005 type=NoteOn chn= 1 key=0x72 range=0:127 lcd_pos=5:1:6 label="^std_btn" EVENT_BUTTON id= 2006 type=NoteOn chn= 1 key=0x73 range=0:127 lcd_pos=6:1:6 label="^std_btn" EVENT_BUTTON id= 2007 type=NoteOn chn= 1 key=0x74 range=0:127 lcd_pos=7:1:6 label="^std_btn" EVENT_BUTTON id= 2008 type=NoteOn chn= 1 key=0x75 range=0:127 lcd_pos=8:1:6 label="^std_btn" Any Ideas? Thanks novski Quote Link to comment Share on other sites More sharing options...
TK. Posted April 18, 2013 Report Share Posted April 18, 2013 Sounds like an inverted selection. Are you using ULN2803 as sink drivers? Then you would have to use following configuration: DOUT_MATRIX n= 1 rows=8 inverted_sel=1 sr_dout_sel1= 7 sr_dout_sel2= 0 sr_dout_r1= 8 sr_dout_r2= 9 Or you are not using an ULN2803, but the polarity of the LEDs is wrong? Then try: DOUT_MATRIX n= 1 rows=8 inverted_sel=1 inverted_row=1 sr_dout_sel1= 7 sr_dout_sel2= 0 sr_dout_r1= 8 sr_dout_r2= 9 Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
novski Posted April 18, 2013 Author Report Share Posted April 18, 2013 Hi TK. Wonderful! it was the Inverter... The Polarity is equal to fairlightiiis pcb. But i designed just 15 LEDs because for Audio Panorama functionality i want a Middle "single" LED. Now the Middle point is decreased to left. I expected it to increase to right because the LED missing there. (my LEDs are like fairlightiii's from left to right) Is that because of the Inverting? Thanks a lot! novski Quote Link to comment Share on other sites More sharing options...
TK. Posted April 18, 2013 Report Share Posted April 18, 2013 inverting != mirroring You have to create your own LED_MATRIX_PATTERNs for 15 instead of 11 (or in the lre8x2 setup: 16) LEDs. Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
novski Posted April 20, 2013 Author Report Share Posted April 20, 2013 Do i understand right? Mirroring = It lets the LEDs go "ON" in the opposite direction (shift-register Outputs go Low in Opposite direction as without) Inverting = It swaps the row and selector shift registers Best Regards Novski Quote Link to comment Share on other sites More sharing options...
TK. Posted April 20, 2013 Report Share Posted April 20, 2013 No, inverting means, that the signals on the DOUT output will be reversed. Means: instead of 1, a 0 will be output, and instead of 0, a 1 will be output. This is required for the case that somebody swapped anode/cathode of a LED, or to revert the polarity change of a sink driver. Best Regards, Thorsten. 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.