Anaheim CA.
Offline
Edison Member
Karma: 31
Posts: 2304
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #15 on: April 25, 2012, 04:07:54 pm » |
There is a nice little Buck Mode Switcher that will handle 2A from Ebay @ <http://www.ebay.com/itm/260858526297?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649#ht_2466wt_1168> It Will take 12 Vdc in and put out whatever lower voltage you might require. @ 98% Eff. and at a 2A load @ 5V the switcher losses would be about 200 Mw... 2% of 10 W (5V x 2A = 10W) = .2 W This and a 5V shift register or two (74C595's) chain up nicely with 3 wires to whatever driver you might choose. The nice part is they only cost $1.94 so if you are worried about total power dissipation then use several, they are certainly cheaper and easier to find than the High Current level translating drivers (12V outputs to 5V logic).
Doc
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16427
Available for Design & Build services
|
 |
« Reply #16 on: April 25, 2012, 05:48:57 pm » |
I think you've missed the point Docedison. Large displays, such as http://www.sparkfun.com/datasheets/Components/YSD-1600AR6F-89.pdfneed 12V to drive the 5 & 6 LEDs in series that make up a segment. (altho this sparkfun example is common anode, not common cathode). So a 12V source needs to be controlled. One way is to divert the current from segments to turn them off, as I drew up, and to let the current flow to turn them on. Another way is to switch the voltage on and off at the anode using either as PNP transistor or a P-channel MOSFET. P-channel transistors, such as those used in UDN2981, have a large voltage drop across them, so Source voltage of 12V + Vce needs to be available. I don't know of P-channel mosfet arrays, thus you need individual parts - and an NPN transistor to drive the gate. The NPN base can go 0/5V to turn it on/off, allowing the P-channel gate to swing 0/12V to let it turn on & off.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Full Member
Karma: 0
Posts: 235
Arduino rocks
|
 |
« Reply #17 on: May 17, 2012, 04:45:03 am » |
Hi, I have now built a circuit based on the TPIC6B595 to drive the common cathode displays. The first attempt worked in that it displayed the numbers correctly but the resistors goot too hot when the segments were not on !!! Each digit, fully illuminated, drew about 125mA (each segment draws about 15mA when on) - when all the segments were off the current jumped right up to about 1.5A - lots of heat coming off those 100R resistors.
The next attempt was very similar but using the TPIC6B595 to switch 2N7000G mosfets - I guess the theory is right but something is wrong in my circuit because it just doesn't want to play.
I have seen some circuits with a 100nf ceramic cap across the TPIC6B595 (connected to VCC & GND?).... decoupling? and a resistor on the common cathode/anode line on the digits - I don't know if adding either of these will help?
This is what I have done.....
|
|
|
|
|
Logged
|
|
|
|
|
Anaheim CA.
Offline
Edison Member
Karma: 31
Posts: 2304
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #18 on: May 17, 2012, 08:50:03 pm » |
Yeah about 10 minutes after I posted that worthless reply I figured it out... I do apologize. You made a comment about resistors getting hot as well as drawing 1.5 A when all displays are off... Did you ever post a drawing of what you are doing/trying to do and have you checked your thinking about it... electronics equipment doesn't usually draw excessive current when quiescent, it is usually the other way around, that UDN29XX device has a good deal of open voltage across it but should drop to nearly 0 volts when on (Across the switch fet or transistor) the diodes and connection to Vsupply Led is for back EMF protection, diodes that are in effect across the load to Vsupply Led (They are for solenoids or relays usually) but should work well in your application. IMO
Doc
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16427
Available for Design & Build services
|
 |
« Reply #19 on: May 17, 2012, 09:32:54 pm » |
Your circuit is not correct. Try it like this. TPIC6B595 can not drive high, need a pullup resistor to turn off the P-channel MOSFET that sources current into the anodes of the segment. N-channel MOSFET is not the right part.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Full Member
Karma: 0
Posts: 235
Arduino rocks
|
 |
« Reply #20 on: May 18, 2012, 01:29:31 am » |
Thank Crossroads,
Could I ask what part you would recommend for the p channel MOSFET and how I figure out the value and power rating of the pullup resistor.... Thanks again
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16427
Available for Design & Build services
|
 |
« Reply #21 on: May 18, 2012, 02:39:46 am » |
Pullup resistor is not critical, 5K probably plenty. P=V^2/R = well under 1/8W. P-channel MOSFET - see whats affordable: http://search.digikey.com/us/en/products/NDP6020P/NDP6020P-ND/1055922
|
|
|
|
|
Logged
|
|
|
|
|
Anaheim CA.
Offline
Edison Member
Karma: 31
Posts: 2304
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #22 on: May 18, 2012, 09:06:44 am » |
Your "P Channel" Mosfet is turned on all the time. If the gate cannot go to the source voltage, it cannot turn off. A P channel Mosfet is turned on by pulling the gate below the source voltage. In this case the Vcc for the selector chip is 5 volts and the Source voltage for the Mosfet is 12 Volts therefore the gate is always at -7 volts in the off state (relative to the source voltage thus fully enhanced or turned on as Vgth is about -2 / -3 volts. I would suggest you draw an accurate schematic and carefully analyze each part as to function. If you wanted to turn on the P Channel Mosfet from the 5 Volt logic you are using then you need an NPN transistor (a 2N3904 is ok), collector through a 10K resistor to the gate of the Mosfet, emitter to ground, leave the pull-up you have on the gate as Mosfets don't suffer from the base emitter leakage that bipolar transistors do but the gate is very a very high impedance input and must be protected from external leakage and noise from other circuitry so a pull-up is required. Use a 10 K base resistor to the '595 output pins and when a selected output goes high it will pull down the gate down and turn on the Mosfet placing the source bias voltage on the drain. You could of course use an N channel Mosfet in place of the NPN transistor, a 2N7000 would work well but there is no electrical requirement for a Mosfet. Your schematic has some serious errors in it's logic. IMO
Doc
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
UK
Offline
Full Member
Karma: 0
Posts: 235
Arduino rocks
|
 |
« Reply #23 on: May 18, 2012, 09:13:08 am » |
Hi Doc, Thanks for your input - would you mind drawing your circuit so I can test it out :-) (parts to hand are the 2N7000G & TPIC6B595)
|
|
|
|
« Last Edit: May 18, 2012, 09:19:59 am by point5 »
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16427
Available for Design & Build services
|
 |
« Reply #24 on: May 18, 2012, 09:53:49 am » |
The TPIC6B595 is an open drain output. The Gate of the MOSFET will thus be 12V from the pullup resistor, and turned off, or ~0V from the TPIC6B595, and turned on. No other transistor is needed.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Full Member
Karma: 0
Posts: 235
Arduino rocks
|
 |
« Reply #25 on: May 20, 2012, 01:58:09 am » |
Thanks crossroads, I have now ordered some 2N4403 P type transistors to try. Can I check I have read the diagram right: drain to 12v, source to segment and gate to shifter/ pulled up to 12v via 5k resistor. Thanks, will let you know how I get on.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16427
Available for Design & Build services
|
 |
« Reply #26 on: May 20, 2012, 02:30:51 am » |
Okay, thats not a P-channel MOSFET, that is a PNP transistor. http://www.fairchildsemi.com/ds/2N/2N4403.pdfWire it up like figure 1 - connect 12V where it shows ground and the LED string to where it shows -30V.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Full Member
Karma: 0
Posts: 235
Arduino rocks
|
 |
« Reply #27 on: May 20, 2012, 03:05:38 am » |
I went for a non-MOSFET as P type mosfets seem to be about 10x more expensive and rare in a TO92 package (what I have space for) - hoping it will work.
Figure 1 shows a 50R resistor going from gate to GND.... What value should i use and would it go to GND or 12v? Thanks for pointing me in the right direction.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16427
Available for Design & Build services
|
 |
« Reply #28 on: May 20, 2012, 03:39:32 am » |
I'm thinking something that the shift register won't have to sink as much current thru. Try a 1K to 12V and see how it goes. If the LEDs are not turning full off when the Gate is high, then go a little smaller.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Full Member
Karma: 0
Posts: 235
Arduino rocks
|
 |
« Reply #29 on: May 21, 2012, 11:08:42 am » |
Hi - well good news in that the segments turn on as expected :-)... from there less good. The code is simply counting from 0-9 with a 1 second delay - first time round fine but the segments never go out they just very slowly fade away (over many seconds) - resetting the arduino doesn't reset the digit so the only way to clear the digit is to power the arduino and digit down and start again? Any idea what could be wrong?
|
|
|
|
|
Logged
|
|
|
|
|
|