Need Help on programming LPC17 Matrix

Hello

 

Ive programmed the PIC based core in the past, to me programming was straight foward (Text edit etc…). This new core LPC17 is causing me headaches. Ive sucsessfully uploaded programms (MIDIO128 V3 or MIDIbox NG) and they worked partially (due to my hardware layout, i didnt expect them to work perfectly). the MIDIO128 V3 software worked better, because i have a AINSER8 with 8 pots, an the pots work. My problem is the Matrix im running its not working properly see image.

 

 

I think i figured out the problem, its not scanning/running in matrix mode. So in order to get everything running i need to modify the code. 

 

 

I cant figure a couple of things out. So my qustions:

 

  1. With my layout (8pots + matrix image). witch programm would be the better to start with:  MIDIO128 V3 or MIDIbox NG

 

  1. Where are the Config files

 

  1. Do i need a SD-card to get access to the config files?

 

  1. Whats the best way to modify the code (MIOS Studio…)

 

 

 

THX

 

 

Ok

 

I soldered a SD-card to the LPC17. I am now able to access the config files. I think the DEFAULT.NGC + DEFAULT.MIO are the ones i need to be modify. Is this correct?

Hi,

 

MIDIbox NG is the better choice.

Yes, you need a SD Card (regardless if you are using MBNG or MIDIO128), and you can store & edit the configuration file with MIOS Studio.

 

It’s described here: http://www.ucapps.de/midibox_ng_manual_fs.html

 

 

I think i figured out the problem, its not scanning/running in matrix mode.

 

yes, it’s not running in matrix mode.

 

Best Regards, Thorsten.

Hi

 

Thanks for the reply. ive added a SD-Card the thing is working now. Im just gonna try to figure out the coding, the next few days.

If i get stuck, ill post

 

Cheers

Ok 

 

Ive managed to get notes from the buttons on the DIN (solved). The LED’s are also scanning! but the marked LED’s are causing problems. They are being scanned, but some are already lit when i load the .NGC file (should be off, like the other LED’s). I need some assistance on this issue.  :sad:

 

Here is my test code:

# Reset to default
RESET_HW

EVENT_LED_MATRIX id=1 hw_id=1 colour=1 dimmed=1 type=NoteOn key=36 chn=1

DOUT_MATRIX n=1 rows=4 inverted=0 sr_dout_sel1=1 sr_dout_r1=2 sr_dout_g1=3
DOUT_MATRIX n=2 rows=4 inverted=0 sr_dout_sel1=2 sr_dout_r1=5 sr_dout_g1=6[/xml]

 

My circuit, see attachment

 

 

THX :rolleyes:

HEY

 

Did it. Problem solved!! :hyper: Goddam ribbon cable   :mad:.

 

code just got simpler!

RESET_HW
EVENT_LED_MATRIX id=1 type=NoteOn key=36
DOUT_MATRIX n=1 rows=4 sr_dout_sel1=0 sr_dout_r1=2 sr_dout_r2=3
[/xml]

 

 

Each LED in the Matrix is triggered by a separate note, thats what i was looking for!

 

Cheers

Great!  :thumbsup:

 

Best Regards, Thorsten.

Hi Shaeded

Im haveing some kind of similar problems.

Can you describe what you did and what about the Riboncables was wrong?

Thanks

novski