Shaeded

Need Help on programming LPC17 Matrix

8 posts in this topic

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.

 

post-5066-0-90063000-1405601928_thumb.jp

 

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

 

2. Where are the Config files

 

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

 

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

 

 

 

THX

 

 

Share this post


Link to post
Share on other sites

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?

Edited by Shaeded

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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:

post-5066-0-94686000-1406317712_thumb.jp

Share this post


Link to post
Share on other sites

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

Edited by Shaeded

Share this post


Link to post
Share on other sites

Great!  :thumbsup:

 

Best Regards, Thorsten.

Share this post


Link to post
Share on other sites

Hi Shaeded

Im haveing some kind of similar problems.

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

Thanks

novski

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now