Driving a 12V DC fan via BJT from Microcontroller

Status
Not open for further replies.

rishabh.anand

Newbie level 3
Joined
Sep 10, 2010
Messages
4
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
bangalore
Visit site
Activity points
1,308
Hi guys

I want some help in designing a BJT that triggers from microcontroller output(5 Volts) and switches a 12V 150mA rated DC fan.
 

Some MCUs give a weak 5V at their o/p pins (as an open collector with a weak pull-up resistance).
Are you sure the o/p pin of your MCU could be set as a 5V source (low internal resistance)?
 

Some MCUs give a weak 5V at their o/p pins (as an open collector with a weak pull-up resistance).
Are you sure the o/p pin of your MCU could be set as a 5V source (low internal resistance)?
How can I check for the weak output? I am using 89C51 microcontroller. Is there are any alternative if the microcontroller happens to have a weak 5V output?
 

You can still use the 89C51 MCU, all my projects are based on this series.

To drive your fan, a suitable NPN transistor could be used, as BC337.
Its emitter is connected to GND.
Its collector is connected to the load (which in turn is connected to 12V).
Its base is connected directly to the MCU pin. And an external pull-up resistor (Rb) of 1K or 820R, for example, is connected between the pin and Vcc (5V).

I assumed the ratio Ic/Ib for Vsat (close to 200mV) of the transistor (collector to emitter) is about 20.
So Ib = 120/20 = 6 mA

But Vcc = Ib * Rb + Vbe
Rb = ( Vcc - Vbe ) / Ib
where:
Vcc = 5V
Vbe = 0.7 (approximated)
Ib = 6 mA (estimated)

Rb = 716 Ohm

I think using 1K or 820R is also ok.
You can do the calculation in reverse and find out the new Ic/Ib. It will be a bit higher than the estimated value of 20.
 

    V

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…