Connecting dsPIC PWM output to LEDs

Thread Starter

satcom

Joined Apr 1, 2015
65
I want connect dsPIC30F 4 channels PWM ouput to LEDs, via MOSFET or TrenchFET transistors.
The details is as follows:

PWM frequency 244Hz
LED Voltage: 12V, working current 350mA (4 banks, 1W LEDs)
Total operating current: 10A (2.5A per channel)
Overcurrent protection on output of each channel.

What is suitable FET and how to connect it to PWM pins? Connection example will be helpful.
 

OBW0549

Joined Mar 2, 2015
3,566
What is suitable FET and how to connect it to PWM pins? Connection example will be helpful.
I should think just about any "logic level" MOSFET with adequate current rating would work; I've used IRLZ34 MOSFETs and they work well:

http://www.irf.com/product-info/datasheets/data/irlz34.pdf

At such a low frequency, you should be able to drive the MOSFET gate directly from the dsPIC output pin, through a resistor of a couple of hundred ohms.
 

Thread Starter

satcom

Joined Apr 1, 2015
65
IRLZ34 have Gate Treshold Voltage Vgs(th) 1 to 2V, and dsPIC output is 3.3V, what should be matched resistors, more precisely?
Have the TrenchFET Gen IV any advantages over MOSFETs?
 

OBW0549

Joined Mar 2, 2015
3,566
IRLZ34 have Gate Treshold Voltage Vgs(th) 1 to 2V, and dsPIC output is 3.3V, what should be matched resistors, more precisely?
The resistor value is unimportant; I normally use a resistor to limit I/O pin current during on/off switching, but many people probably wouldn't even include it.

Have the TrenchFET Gen IV any advantages over MOSFETs?
I have no idea. I only cited the IRLZ34 because I'm familiar with it and because it is reasonably inexpensive.
 

OBW0549

Joined Mar 2, 2015
3,566
How to protect output channels from overcurrent?
There is not much you can do for that beyond 1) supplying your loads from a regulated, current-limited supply and 2) ensuring that the loads themselves cannot draw too much current. For LEDs, that means including a suitable resistor in series with each LED string to control the operating current.
 

Thread Starter

satcom

Joined Apr 1, 2015
65
Thanks a lot, that's helpful info. For IRLZ34 it comes in TO-220 package, rather big in height, so it can be an issue.
 

OBW0549

Joined Mar 2, 2015
3,566
I see that TO-220 packages have Max Power 68W and 88W, while all the rest have only 3.8W
That's true, and that difference would be important in a different application. Here, however, each MOSFET is passing only 2.5 amps, and the PWM frequency is low enough that dynamic switching losses aren't a consideration; so the maximum power dissipated by each MOSFET is equal to 2.5 amps squared times the MOSFET's Rds(on), which is 0.05 ohms max at 5V of gate drive. 2.5A^2 * 0.05 ohms = 6.25 * 0.05 = 310 milliwatts.

You should be running nice and cool, no matter what package option you choose.
 

OBW0549

Joined Mar 2, 2015
3,566
What is dsPIC current on PWM output pins?
That depends on the particular dsPIC you are using, and on the supply voltage the chip is operating with.

In any case, the information you seek-- and much, much more-- is to be found on the datasheet for the PIC you are using. It is typically found in the "Electrical Characteristics" section of the datasheet, under "I/O Pin Output Specifications."

Learn to consult component data sheets; there's lots of important information in them, that's why component manufacturers publish them.
 
Top