Issues with small 32x32 panel

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
darbyb
 
Posts: 6
Joined: Tue Aug 12, 2014 9:42 pm

Issues with small 32x32 panel

Post by darbyb »

Hi there!

I've been playing around with your 32x32 display, and having trouble getting colours properly defined.

based on your library matrix.fillRect(0, 0, 32, 16, matrix.Color333(7, 7, 0)); should fill the display with yellow, but is instead showing only red.

I've found that using (1, 0, 7) gets me a rough mix of colours, but its clear that quite a few of the pixels are not displaying anywhere near as much brightness. Blue seems to work well, red is super strong, and green kind of all over the place. I am also totally unable to display white pixels, as (7, 7, 7) just shows red

Thinking that this might just be a voltage issue, i've also experimented with making small filled rectangles and circles, and getting the same issues.

is this a case of the display being a dud from the manufacturer? or some other issue. If its a manufacturers issue, is there are chance to get the display swapped?

below is a copy of the test code im playing with, and I'd post a photo, but its proving to be really hard to get a photo that actually shows the brightness issues with the panel

Code: Select all

#include <Adafruit_GFX.h>   // Core graphics library
#include <RGBmatrixPanel.h> // Hardware-specific library

// If your 32x32 matrix has the SINGLE HEADER input,
// use this pinout:
#define CLK 11  // MUST be on PORTB!
#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);


// define some bitmaps
namespace pacman {


const uint16_t Y = matrix.Color333(0, 7, 0);
const uint16_t C = matrix.Color333(0, 0, 7);



const uint16_t chomp[32 * 32] = {
  
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, C, C, 0, 0, C, 0, 0, 0, 0, 0, 0, C, C, C, 0, C, C, C, C, C, 0, 0, 0, 
0, 0, 0, 0, C, C, C, 0, 0, C, C, 0, 0, C, 0, C, C, 0, 0, C, C, 0, 0, 0, 0, 0, 0, C, C, 0, 0, 0, 
0, 0, 0, 0, C, C, C, 0, 0, C, C, 0, 0, C, 0, C, C, 0, C, C, 0, 0, 0, 0, 0, 0, 0, C, C, 0, 0, 0, 
0, 0, 0, 0, C, C, C, 0, 0, C, C, 0, 0, C, 0, 0, 0, 0, C, C, 0, 0, 0, 0, 0, 0, 0, C, C, 0, 0, 0, 
0, 0, 0, C, C, C, C, C, 0, 0, C, C, C, 0, 0, 0, 0, 0, 0, C, C, C, C, 0, 0, 0, 0, C, C, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};

}
void setup() {
  matrix.begin();
  matrix.fillScreen(0);
  // draw the bitmap
  for (uint8_t y = 0; y < 32; ++y) {
    for (uint8_t x = 0; x < 32; ++x) {

      matrix.drawPixel(x, y, pacman::chomp[y * 32 + x]);
    }
  }

}

void loop() {
  // nothing
}

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Issues with small 32x32 panel

Post by adafruit_support_rick »

That sounds very strange. What do the example sketches do? The same sort of thing, or do they display properly?

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: Issues with small 32x32 panel

Post by Franklin97355 »

Could you post clear pictures of your board and the connections to it? Also how are you powering the matrix?

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Issues with small 32x32 panel

Post by pburgess »

Arduino Uno or Mega? If Uno, almost certainly a RAM limitation...I'll elaborate further (it's a lengthy explanation) if it's the Uno case.

User avatar
darbyb
 
Posts: 6
Joined: Tue Aug 12, 2014 9:42 pm

Re: Issues with small 32x32 panel

Post by darbyb »

It's a mega

User avatar
howard123
 
Posts: 10
Joined: Tue Dec 03, 2013 1:01 am

Re: Issues with small 32x32 panel

Post by howard123 »

it sounds like your external power supply is not connected or is bad.

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Issues with small 32x32 panel

Post by pburgess »

Do the example programs work? Can you post a photo of the display with one of the examples (e.g. the colorwheel demo) running?

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”