Go Down

Topic: Direct Connect 8x8 matrix (Read 944 times) previous topic - next topic


Jun 25, 2012, 11:28 pm Last Edit: Jun 26, 2012, 12:15 am by danielNC Reason: 1
Okay, trying to hook up my 8x8 LED matrix based upon code from http://arduino.cc/playground/Main/DirectDriveLEDMatrix

I have the pins figured out on my Matirx and the columns have common cathode (-) and I placed a resistor on the rows for (+)

Whenever I try to hook up wiring for Rows and Cols as in code below, I bet a bunch of flashing in the rows and mosed LEDS are typically on.

Code: [Select]

// pin[xx] on led matrix connected to nn on Arduino (-1 is dummy to make array start at pos 1)
int pins[17]= {-1, 5, 4, 3, 2, 14, 15, 16, 17, 13, 12, 11, 10, 9, 8, 7, 6};

// col[xx] of leds = pin yy on led matrix
int cols[8] = {pins[13], pins[3], pins[4], pins[10], pins[06], pins[11], pins[15], pins[16]};

// row[xx] of leds = pin yy on led matrix
int rows[8] = {pins[9], pins[14], pins[8], pins[12], pins[1], pins[7], pins[2], pins[5]};

I am assuming that the first element in the col[8] array corresdonds to Col 1 (pin13 leads to col 1, Pin 3 to col 2 etc...) and the same with row[8] array.

Where did the order for pins[17] come from and does it matter?

I would like to rearrange the rows and cols in code to match my display as I have and R/G 8x8.

Any suggestions here?  I simply want to display scrolling text and this little playground file looks good, just ca't figure out how to get likned to my display.

Thanks for your help.  Learning Arduino and C as I go along here.


From your brief description my guess is that your pinout for the LED matrix are not the same as the example you are following. You should get hold of the data sheet for the matrix and check that logically you have connected to the rows and columns as you expect. Once you have verified that the hardware is connected properly, then the software is the next step.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

Go Up