Author Topic: First try at designing a 5A/12V multi purpose mosfet switch  (Read 1405 times)

0 Members and 1 Guest are viewing this topic.

Offline bryce1Topic starter

  • Regular Contributor
  • *
  • Posts: 75
First try at designing a 5A/12V multi purpose mosfet switch
« on: February 13, 2014, 05:03:07 pm »
Hi guys,

I need your input on this since it is the first time doing something like this.  :o

Basically, I want to design a (low side-) "switch" that allows an AVR (5V) to safely switch a variety of 12V loads. This includes LEDs (PWM), SSRs, DC pumps and things I haven't thought of yet (up to 5A).

VCC=12V
SWITCH1=Atmega pin
R5=depends on the LED
R10=pull down
R9=limits the current to the MOSFET gate when PWMing (1/8W enough?)

The mosfet will be something like this:
http://www.irf.com/product-info/datasheets/data/irlb8748pbf.pdf

It will probably need proper cooling.

I am not sure yet on how to calculate R9 and R10 and I have not chosen D2 and C3 yet.
Can you give me advice/criticism on the schematic? Maybe some layout advice? This is all new to me, so I'd like to learn as much as I can (and hopefully end up with something great ;-) ).

Thanks!


 

Offline madworm

  • Frequent Contributor
  • **
  • Posts: 371
  • Country: de
Re: First try at designing a 5A/12V multi purpose mosfet switch
« Reply #1 on: February 13, 2014, 05:13:55 pm »
The gate resistor should be high enough to limit the peak current on the AVR's pin to about 30-ish mA. Consult the datasheet. I think for some AVR chips, the absolute maximum is 40mA for GPIO pins.

So 160Ohm would work for 5V.

Using the GS-capacitance, you can calculate the RC-time and see how long it takes for V(GS) to be reasonably high for the mosfet to turn on fully. That will also give you the upper limit for the PWM frequency.

For really fast switching you need a mosfet-driver ic, that can charge the gate really fast and avoid thermal loss in the transistion from off to on.

The pull-down resistor (bleeder) is not that critical. If you like to conserve power, 10k seems a bit low. Again, calculate the RC-time if you think it matters.
« Last Edit: February 13, 2014, 05:18:38 pm by madworm »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf