I'm just trying to find out how best to wire up the 25 leds and control them individually [via Flash]. At the moment i'm connecting each individual LED to the breadboard and in turn to the Arduino. I'm just wondering if there's a less wire heavy way of doing it.
I'm a total novice when it comes to electronics so any help is greatly appreciated.
Thanks digimike, I'm a total noob when it comes to electronics and wiring. It looks idea. The matrix of LEDs is self made - unlike the fancy pre-made on in the tutorial - that shouldn't effect the principles of it right?
I'm a bit lost though. How does the Arduino command the LEDs in the center of the matrix. Since their not directly connected to an output. It's more the electronics of it, i understand the sketch code. That might sound like a duff question, but i am a noob to this after all.
Actually they are tied to an output pin. Look at the schematic diagram.
The anodes are in line with one of the row pin. While the cathodes are in line with one of the column pins. So its just a matter of controlling the row and column to select the LED you want to light.
Lets say you want to light the LED that is 5 rows in and 5 columns down. You will set row 5 to HIGH and column 5 to LOW. So any single LED in the matrix can be light as needed. Now there are some limitations here as you can imagine. Lets refer to the LEDs like this: LED(row,column). So if we have LED(5,5) lit and we want LED(5,6,) to light then we ground column 6. Now if we want to add just LED(4,5) to this we run into a problem. If we send +5 to row 4 we will get both LED(4,5) and LED(4,6) lit. So there are limits in the patterns and things you can do with this.
the base and the emitter of most transistors might as well be connected, when you switch a digital output to toggle the transistor your connecting 5v tru the transistor direct to ground
after that its a dice roll to see which one will smoke first, the arduino or the transistor
the resistor tween the arduino and the base of the transistor limits current to safe levels
So the resistor on the transistor is just to protect the arduino / transistor? I'm still unsure on how to wire the transistor. Any guides on it - the three pins are foxing me!
ok, so the LED connects directly to the transistor [via the LEDs cathode] the 1k resistor connects to the middle pin of the transistor and the final pin of the transistor goes to the ground??
I'm guilty of not starting out small. ;D
Looking to get this initial matrix working then try make a bunch more to make some sort of wall. But that's way off.
The transistors [npn type] i'm using have the following on them: 2n3904 f9 c
Does that sound right?
What does 'prefboard' mean?
Also thanks for all your help Osgeld/Grumpy_Mike - really appreciate it!!
and perfboard is just a name for a electronics board perforated with holes, sometimes they have no copper pads, sometimes they do, sometimes they have all the holes connected and you cut away the copper
protoboard, perfbord, veroboard, stripboard are common names to different kinds depending on region and whatnot