strange things about LEDs and DIN

Hi Everyone,

I’m finishing my mb64e, and I have a problem: I have 3 DIN and 2 DOUT. Everything is well soldered, I checked everything and all is ok.

The problem is that when I plug 2DIN, all the LED are working fine. When I plug the 3rd DIN, either if no entry is connected, All the LEDs go off, and when I push some butons on other DINs, the LEDS seamed to be “shortened”, some of them are on at the same time, 2 or 3 LEDs at time. Do you have ideas ?

Thanks

sounds like you’ve got a short…

you need to swap the DINs one at a time to see which one is faulty.

test each DIN on it’s own, then try swapping them around to see if it’s the DIN boards, or possibly the cable connecting them

also you might want to upload one of the testing applications to help you debug

I already switched the DINs, that’s why I know they all work fine. Each DIN separatly works fine, and any combination of 2 of them work fine, but when I add the 3rd, problem with the LEDs, but, the encoders on the 3rd DIN work fine !

mmm, that’s odd!

have you checked the cables too?

What test application(s) have you tried?

and i’m pretty sure this isn’t it, but how big is your power supply?

I didn’t launch any test application. My power supply is a 9v 1000mA. I tried a few cables, and I know it’s not the cables too.

maybe a short with the case or panel?

mmm, so there more than enough power for sure…

try dout_enc_v1_3.zip - Utility which allows to select one of 128 DOUTs with an encoder

to see which LEDs are affected

and also ain64_din128_dout128_v1_3.zip

to see if any DINs are jamming on…

Also have you set the amount of shift registers on the DIN correctly?

Hi all, thanks for your help.

I don’t think this is a shortcut. I’m going to be more precise for the problem. I did other checks today and these are the results.

But first, my config: 1core, 1Ain, 3Din, 2Dout, 1LTC

1st DIN: 30 buttons and 1 enc (for menu navigation)

2nd DIN: 32 buttons

3rd DIN 16 encoders

All encoders are well defined in mios table.

For the LED,

I configured the Mk syx to have this, corresponding to what I want

LED_SR1 = 2   

LED_SR2 = 3   

LED_SR3 = 4   

LED_SR4 = 5   

LED_SR5 = 6   

LED_SR6 = 7   

LED_SR7 = 8   

LED_SR8 = 10

These are the tests:

  • All the DIN plugged and full:  all is working fine (buttons and encoders)

  • Each DIN individually and swapped with another one works fine

  • All the DIN + 1 DOUT full: All is OK, in the good order

  • All the DIN + 2 DOUT (full or empty): problem with the second DOUT card (whatever card I use)

  • 2DIN + 2DOUT (all fully plugged): everything is ok.

So I think that the cards are OK, otherwise I would have some problems when I swap them.

But, I’m a beginner with C programmation, and It’s possible that I have not configured a thing.

Thanks for the help.

Just a post to add that I launched the 2 test applications mentioned by DavidBanner. The results are the same:

When I don’t plug the last DIN, everything is ok. If I plug the last DIN card, there are some problems in the LED order from the 5th DOUT shift register.

So I think that the cards are OK, otherwise I would have some problems when I swap them.

But, I’m a beginner with C programmation, and It’s possible that I have not configured a thing.

if you’re using ain64_din128_dout128_v1_3.zip and still getting problems then it’s not likely to be s/w related.

what you are describing doesn’t make sense unless it’s a cable issue, but you’ve checked those…

mmmm (scratches head) - anyone else got any suggestions??

Check the wiring … again :wink:

Let’s say you’re right Stryd, but which wiring do you I have to check ? DIN ? DOUT? Cables to the LEDS ?

All of these are ok when I plug them separatly and when I swap them. It’s not my LED cables because when I plug my 2nd group of leds on the 1st DOUT, they are all right ! I know it’s not the DOUT cards for the same reasons: all the led light well when I plug them. I’ve just finished new cables between the cards, and the problem is still there.

I did another test:

I have a group of LED telling me the active bank. The first LED is lit, and I got 2DIN plugged.

I try only plugging a connector on the J2 port of the 2nd DIN, and the led goes out, all the others then have the problem, they light two by two, or they don’t light. Of course, I tried this with the three of my DIN cards and the results are the same.

sounds like the problem could be in the cable/connection going from J2 of the 1st DIN to J1 of the “child” DIN

are you using smashTV kits?

No, I use Mike’s kit. But Don’t you think there coulb be a problem with the buttons or the encoders if ther was a problem between J1 and J2 ?

“I try only plugging a connector on the J2 port of the 2nd DIN, and the led goes out”

You are powering off the whole thing when you plug and unplug cables right? :-\

what’s happening to the LCD when you plug the connection on J2?

Sometimes, I power off the midibox, and some other times, I let it powered, but results are the same, Stryd.

David, when I plug J2, nothing happens on the LCD, it continues working properly.

sorry dude, what I meant to ask is, when you watch the LCD and connect to J2 does the core power off or reset?

Nothing’s happening, the midibox continues working, without rebooting or powering off.

it doesn’t make sense, but then you know that already :slight_smile:

stryd - you got any more ideas?