Duty cycle and current limiting resistor calculation
I am using the scanning method for a matrix and I am not getting the brightness that I need out of the leds on a display, is there a calculation based on the current limiting resistors, voltage and duty cycle or on time that will allow me to calculate what I need? Also what would the on time be? I used a scope to check some of this out and I came up with what I think is about 500ms on time for the led and 20 - 25% duty cycle. Someone correct me on this if I am totally wrong!
Thanks,
Kevin
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (DigitalDj) : 12/9/2007 1:38:17 AM GMT
Thanks,
Kevin
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (DigitalDj) : 12/9/2007 1:38:17 AM GMT
Comments
Posting code in question is always helpful.
Nevermind the post, I am running ULN2004's on the rows and colmns, pnp transistors after the ULN2004's on the columns to switch 12 volts for some led modules. I just found that my column transistors PN2907's must have a high on resistance because I doubled them up and it is alot better. I guess I should change them out to fets.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You can get free samples from Fairchild semiconductor: http://forums.parallax.com/showthread.php?p=649643
Look at the HiSwitch.jpg attachment which is an example of this to·turn on·higher current·at higher·voltages (12v in this case)·than 5 volts (TTL). So a microcontroller output can go to the TTL input (for 5 volt switching). Tie the +5v and +12v grounds together too. On the Q4 drain output have this go to maybe·a·100 ohm (try different values - lower = more brightness - but be carefull not go too low then you might burn up an LED or more).
Also look at my attached guides for LED moving displays to learn the "rules" for setup and voltage and current calculations. Remember since you are using more than 5 volts, you will need to use a·N and P channel FET combo.
Also post some of your questions here in the micro-controller section:
http://www.electro-tech-online.com/
They have been very helpfull to me.
Post Edited (T&E Engineer) : 12/9/2007 1:32:47 PM GMT
Actually the 2907's are good to 800ma but the spec sheet only shows base current saturation for a collector current of 500ma. I was running 200ma per column.·I have 2 projects going on the one with a PIC for a friend and I am woriking with the SX for mine. I did this because of not having pic stuff but I do have the SX. I am learning alot dealing with the high power side of driving leds.
I found I had my transistors emitters and collectors reversed, 2 different spec sheets showed them different. I am thinking of changing them to the mosfets though! I like the ULN2004's because they are quick and easy.
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
How did you come to the 39ohm base current limiting resistor in you docs.
For the anode drivers use saturated bipolar transistors (2N3906 or PN2907 *) which have a typical drop of 200mV @ 240mA, if 10 mA of base current is provided which requires a 39 ohm base resistor.
Thanks,
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔