Hey,
I'd first say like anyone else's first post, it is my first ![]()
I have been reading quite a lot from this forum and others and gained a lot of knowledge i didn't have before, and managed to run quite a few arduino projects! So thanks in advance first of all, without you knowing you really did help me a lot..
Now to my project, i am trying out a 3x3x3 cube project for my dad, now i read and googled and checked all threads possible, I also googled for multiplexing threads, but i didn't get to one conclusion due to seeing different answers that boggled me.
Sorry for long post, i guess slow and explaining is faster and better understanding ![]()
Bottom line, the 3x3x3 cube is working, i put 9 resistors for columns, tried 220ohms for LED's columns. Put 3 resistors for the transistors, i tried 22k, 110ohm and 220ohm, all worked, not sure if brightest or not or whether the electronics were actually warming up and I couldn't tell..
Configuration:
- Arduino Uno 5v supply
- LEDs (clear blue) with 3.2 forward voltage (probably 20ma but im aiming at 15ma)
- transistors 2n3904 NPN (more than capable for 135ma=9*15)
http://www.taydaelectronics.com/datasheets/A-111.pdf
Managed to read it correctly i think. - i want to run LEDs at 15ma
From what I read i understand i need to do one of the following, i'd appreciate helping me understand the correct scenario
-
Put resistors only before the columns -
(5-3.2-0.7)/15ma=73ohm -
Resistor before leds' columns AND for transistor base
Column Resistor: (5-3.2-0.1)/15ma=113ohm (closest is 120 or 130 i think) > 0.1v there coming from the transistor side, that was a value for 20ma, i didn't bother to check the pdf for this as i just couldn't understand should i use this equation..
Transistor Resistor (or "floor"): (5-0.7)/15ma=286ohm (not sure about closest resistor at the moment). > here 0.7v although it should be 0.77v from the datasheet graph, but it almost didn't matter the calculation so i am using 0.7 like most suggested- another reason why in the column calculation, i let it stay at 0.1v and didn't check exact number. if it matters - on the datasheet graph i see 20ma it should be 0.8v.
For what I understand I need to put resistors at both "places", one in series with led columns and one in series with the base of the transistor.. it made sense to me as those are connected directly to arduino as well so it will protect both microchip and transistor, but i saw posts that led me to believe that i can just put resistors before if i calculate the transistors voltage with it.. these specifically were quick replies so i wasn't too sure, but the rest of the forum threads weren't "set" on one answer.
I didn't understand how people reached resistors for the LED columns with values of 220ohms for 15ma while others wrote that they use ~130ohms.
Most if not all the threads I read were of the same schematics as mine, basic x^2+x cube.. same goes for the voltages etc.. although this can just be calculated with different numbers..
I also saw variations where people say to multiply the current (15ma) by 1/10 when calculating the resistor for the transistor
I am a bit confused and I don't want to run this incorrectly although it does currently
Sorry I didn't post schematics, I don't see a need for the question ![]()
Thanks in advance!