0

64x32 LED Matrix bottom blue is only partially working
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

64x32 LED Matrix bottom blue is only partially working

by swenson on Tue Aug 20, 2019 8:20 pm

I took the example code, changed it to work on my M4 (I have the AirLift Lite version), but it looks like the blue only partially works, and there is a dead pixel in the upper-left.

I tried unplugging and plugging back in all of the wires, and they all to be correct. I even swapped out the B2 wire, but that did not help. (Though with it disconnected the bottom-right changed from sickly yellow to actual yellow).

Turning on dbuf (double-buffering) just results in a black screen.

Here is the code I am running: it should just turn every pixel completely white.

Code: Select all | TOGGLE FULL SIZE
#include <RGBmatrixPanel.h>
#define CLK A4
#define OE   9
#define LAT 10
#define A   A0
#define B   A1
#define C   A2
#define D   A3
RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false, 64);
void setup() {
  matrix.begin();
  matrix.fillScreen(matrix.Color333(7, 7, 7));
}
void loop() {
}


Also, when the screen is booting up, I notice two blue lines in the bottom right quadrant flash for an instant. Don't know if that is indicative of anything?

In addition, I also notice that the upload almost always fails the first time or two I try with:

Code: Select all | TOGGLE FULL SIZE
SAM-BA operation failed
An error occurred while uploading the sketch


Please tell me I just did something wrong with the wiring or the code! :) The LED matrix is pretty and I am looking forward to having fun with it.
Attachments
IMG_0903.jpg
IMG_0903.jpg (165.52 KiB) Viewed 174 times

swenson
 
Posts: 9
Joined: Tue Aug 20, 2019 8:10 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by adafruit_support_carter on Thu Aug 22, 2019 1:46 pm

Let's troubleshoot this first:
SAM-BA operation failed
An error occurred while uploading the sketch

to make sure sketches are actually uploading and running as expected.

Try using the simple blink example (for built in LED, not the RGB matrix) and see if you get the same issue uploading that. Change the blink rate, upload again, etc.

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by swenson on Thu Aug 22, 2019 1:53 pm

The failure is usually on the flash verification. If I rerun the upload it usually works, and the program seems to run just fine. (Like, it is clearly executing executing the code and setting up the LEDs as programmed to do so.)

swenson
 
Posts: 9
Joined: Tue Aug 20, 2019 8:10 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by adafruit_support_carter on Thu Aug 22, 2019 1:54 pm

So even with the simple blink sketch you have to upload twice?

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by swenson on Thu Aug 22, 2019 2:01 pm

The blink sketch is only about 13 kb. It seems to upload fine each time.

The RGB matrix code above is about 26 kb. About halfway through verification it sometimes fails (and simultaneously it appears as a mounted USB drive).

swenson
 
Posts: 9
Joined: Tue Aug 20, 2019 8:10 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by adafruit_support_carter on Fri Aug 23, 2019 1:55 pm

I compiled your sketch above and was able to load it without issues on a Metro M4 AirLift. I tried several times and it uploaded OK each time. So I'm not able to recreate your issue with getting:
Code: Select all | TOGGLE FULL SIZE
    SAM-BA operation failed
    An error occurred while uploading the sketch


I guess we can assume it's a quirk and try to look at the RGB matrix. The jumper wiring is always problematic. It's highly recommended to use the shield:
https://www.adafruit.com/product/2601
so can just direct connect the ribbon cable.

For your jumper setup, post photo(s) better showing the jumper wires going into the ribbon connector and also how they are routed to the Metro.

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by swenson on Fri Aug 23, 2019 2:10 pm

I forgot to buy the shield. :)

The wiring seems fine to me? I checked every wire and they all seem to be connected well. If I disconnect the B2 wire, the rest of the blue LEDs all turn off on the bottom. I tried swapping out this wire, but I still only get some of the blue LEDs working (and only partially).

I've attached pictures of my wiring.
Attachments
IMG_0907.jpg
IMG_0907.jpg (32.12 KiB) Viewed 126 times
IMG_0906.jpg
IMG_0906.jpg (31.17 KiB) Viewed 126 times
IMG_0905.jpg
IMG_0905.jpg (38.3 KiB) Viewed 126 times

swenson
 
Posts: 9
Joined: Tue Aug 20, 2019 8:10 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by adafruit_support_carter on Fri Aug 23, 2019 6:49 pm

What are you using for a power supply?

Since the Metro is 3V logic, the signal level it generates can sometimes not be adequate. See here for a possibly similar issue:
viewtopic.php?f=31&t=140886#p696852

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by swenson on Fri Aug 23, 2019 7:14 pm

For the LED matrix I'm using the 5V 4A regulated power supply recommended on the page https://www.adafruit.com/product/1466

To power the M4, I'm using a USB hub connected to my computer.

Is a logic level shifter needed to push 5V to the LED matrix signals?

swenson
 
Posts: 9
Joined: Tue Aug 20, 2019 8:10 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by swenson on Mon Aug 26, 2019 5:06 pm

I went ahead and ordered another RGB matrix of the same type so that I can see if it is a faulty unit, or something else.

I also ordered a few RGB shields and RPi hats. :)

swenson
 
Posts: 9
Joined: Tue Aug 20, 2019 8:10 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by adafruit_support_carter on Tue Aug 27, 2019 12:49 pm

Cool. Please report back when you get it all. Having the additional hardware to swap out will totally help for troubleshooting.

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by swenson on Thu Aug 29, 2019 4:28 pm

I plugged in a new, identical 64x32 LED matrix and the new one works perfectly, as expected.

So, I suspect that there is a hardware fault in the original 64x32 LED matrix.

swenson
 
Posts: 9
Joined: Tue Aug 20, 2019 8:10 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by adafruit_support_carter on Thu Aug 29, 2019 4:55 pm

OK, just to be sure - everything else the same with the test. The only hardware difference is the matrix display. Including the ribbon cable.

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by swenson on Thu Aug 29, 2019 4:57 pm

Yep. I just moved the ribbon cable and the power cable over to the new one, and all of the LEDs light up as expected.

swenson
 
Posts: 9
Joined: Tue Aug 20, 2019 8:10 pm

Re: 64x32 LED Matrix bottom blue is only partially working

by adafruit_support_carter on Thu Aug 29, 2019 5:00 pm

Okie dokie, let's replace it. Send an email to support@adafruit.com with a link to this thread and your order number and they can send you a replacement RGB matrix.

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.