15x6 one-color led matrix for keyboard backlighting

how do you wire it?
do you need resistors?
i have an arduino due with 24 pins taken

Perhaps you had better explain what it actually is.

Pictures?

i cant really show you the schematic because i dont know how to wire it
but its basically a 15x6 led matrix (i think)
the leds have 3.1V-3.6V forward voltage and 5mA-17.5mA forward current
i need to wire them and be able to control them individually(the brightness can be the same though)
i have an arduino due with 29 pins left after the actual keyboard wiring

do i need to have resistors to use the leds with the arduino due?

and to control the state of the leds individually, how do i wire them?

Use two MAX7219, control on/off state of up to 128 LEDs.
I even offer a daisychainable breakout board to make connecting to individual LEDs easy:
http://www.crossroadsfencing.com/BobuinoRev17/


Or Wire up your own, see attached for the concept (Iset resistor that limits max current is not shown):

coolnumber0129:
I cant really show you the schematic because I don't know how to wire it but its basically a 15x6 led matrix (i think)

Not wishing to steal CrossRoads' thunder or dissuade you from buying from him but one of the really cheap MAX7219 matrix kit modules from eBay would work well in this situation.

You do not mount the matrix supplied or its socket pins, just solder your wires from the matrix you have wired up, to the appropriate points on the PCB.

coolnumber0129:
the LEDs have 3.1V-3.6V forward voltage and 5mA-17.5mA forward current

Sounds like a white or blue LED.

coolnumber0129:
I need to wire them and be able to control them individually(the brightness can be the same though)

A MAX7219 fits this purpose perfectly.

coolnumber0129:
i have an Arduino Due with 29 pins left after the actual keyboard wiring

You need three pins to drive it. Note - it runs at 5 V.

coolnumber0129:
do i need to have resistors to use the LEDs with the Arduino Due?

You need one only resistor to set the LED current with a MAX7219.

coolnumber0129:
and to control the state of the LEDs individually, how do I wire them?

In a matrix. You have six cathode common lines, and 15 or 16 anode lines.

so i basically need a MAX7219 to control the led matrix
and wire the matrix to the MAX7219?
how does this MAX7219 thing works?(ill for sure research on this myself but help would be appreciated)
how do you make it work with the arduino?
so if it runs on 5V, you cant use it with the arduino due?

coolnumber0129:
so i basically need a MAX7219 to control the led matrix and wire the matrix to the MAX7219?

That's about the size of it.

coolnumber0129:
how does this MAX7219 thing works?(ill for sure research on this myself but help would be appreciated)
how do you make it work with the Arduino?

It does everything for you. You just feed its shift registers with the control and data bytes - there are plenty of examples and core around - and it multiplexes the display for you - the display stays with whatever pattern you last wrote to it.

coolnumber0129:
so if it runs on 5V, you cant use it with the Arduino due?

As long as you power it from 5 V (minimum 4 V) it should accept the 3.3V logic levels. It is not specified to do so, but I would expect it will do just fine. If it had some problem, you could reduce its own supply voltage with a rectifier diode in series.

nice! thank you!