If you're only switching with logic level stuff, then yes a logic-level FET is a good choice. (Which is why most digital ICs are built with CMOS FETs.) BJTs can be more useful for analogue stuff, though in the vast majority of applications a transistor is a transistor. Use whatever you're comfortable with, but don't give up on figuring out how to use a BJT. You'll feel like you've earned your stripes once you can design working circuits with them! (LTspice is a great learning tool for this.)
(If you want to see a truly awesome BJT circuit, look up Bob Widlar's classic "bandgap voltage reference". He actually did two versions, both are works of genius in exploiting the finer points of BJT operation. Many common voltage regulator chips make use of it.)
Sadly BJTs aren't quite a voltage-controlled-resistor because you can't actually set their resistance. You can set the currents, however, and Ohms law then lets you work out the effective resistance the transistor will adopt. But it's not quite the same thing.
Alternatively, low down in their operating range, FETs can be used directly as a voltage-controlled-resistor. The range is somewhat limited, be it's a not-uncommon technique.
Hi
I have to take issue with a statement made in the first reply.
The on-resistance of a mosfet can be from milli-ohms to several ohms depending on the specific type , whereas BJT saturation resistance is extremely small. Depending on the supply voltages the OP is considering, either device can be a valid choice provided a mosfet with low enough on-resistance is used.
"Efficiency" I believe is being confused with "gain" or drive power. All active devices are voltage driven and produce a current output, so all devices are transconductance (gm) devices. BJTs have changing gm with emitter current and even a tiny BJT can exhibit a high gm. Mosfets have a fairly fixed gm that varies with the type. Since the OP mentioned turning on things like LEDs, ANY mosfet (99% of samples) can be used for that and have a reliably low-enough gate threshold voltage to conduct 10mA. The insulated gfate of the mosfet means drive current will be infinitesimal compared to a typical BJT that might need 100uA.
BJT cost is way lower than mosfet cost - try finding a 4-cent mosfet.
I generally use BJTs for switching relays, LEDs and other things like that, as BJT turns on reliably at about 700mV and I always have enough base current available. If you need more gain from a BJT, wire a pair as a Darlington and their betas multiply together, so in the above example, a darlington-BJT would only need 1uA of base current. Both collectors tie to the load so the base current of the second BJT boes through the load - not wasted. BJTs are generally more robust than mosfets. Mosfets have static-sensitive gates and are very sensitive to heat. They are extremely fast devices, so they need a gate-stop right at the device and a protection zener for the gate to source. So, with a mosfet you are adding three parts, where the BJT just needs a series base resistor to provide voltage compliance to the driving circuit.
The large variation in threshold voltage for MOSFETs compared to the very consistent Vbe of a bipolar transistor makes them more difficult to use and less suitable at low voltages. The gate of a MOSFET is more susceptible to damage than the base of a bipolar transistor so extra precautions against over-voltage and ESD are required. MOSFETs cost more for the same voltage and current rating; this becomes especially pronounced at high voltages.
Similar objections apply to JFETs.
I still fail to see the simplicity of the bjts. I mean, they're more robust and whatnot but with a logic level mosfet (e.g. 2n7000 or FQP30n06L) I just provide 5V or 0V and the switch is open or closed, while with the BJT I have to pick up the correct base resistance, depending on the collector current.
BJTs also need to have the energy sucked out of them to turn off quickly. Just open circuiting the base connection will cause a BJT to turn off very slowly. To turn a BJT off quickly, the base must be shorted hard to the emitter, thus discharging the base-emitter junction. At low speeds this is a non-issue, but if something needs to be switched quickly it can ruin your day. There are various tricks to achieve this such as: bypassing the base resistor with a small capacitor, using another transistor to short the base-emitter junction to turn it off or making the base voltage slightly negative and making sure the BJT never saturates (turns fully on).
The main reasons for choosing a BJT over a MOSFET are: cost and ESD resistance.
MOSFETs are extremely vulnerable to ESD because the gate is insulated from the channel by an oxide layer, which will be destroyed when subject to over-voltage. BJTs can also be damaged by high voltages, but unless the energy is high or repeated, it's normally non-destructive. The reason for this is BJTs contain no insulating oxide. They're composed entirely of PN junctions which non-destructively breakdown and start conducting when subject to over-voltage and recover back to the previous state, when the current flow stops. Of course there's a limit to this mechanism and the device can be destroyed or degraded (reduction in Hfe and increased leakage current) if the energy level is high enough or it's repeated many times. Some MOSFETs include built-in protection diodes on the gate, but this increases the cost of the device and there's a limited to how much energy they can take.
BJTs are generally cheaper, especially in low current and high voltage applications, but at much higher currents and low voltages, MOSFETs generally become the more economical option.
Speed wise, MOSFETs are generally faster than BJTs, especially when turning off and at higher currents. As devices get larger, they generally also become slower, yet MOSFET speed declines less than BJT speed, with increasing scale.
One reason for this is, low voltage rating MOSFETs drop less voltage, than BJTs, so a smaller heatsink can be used. In a high voltage application, a high voltage BJT is often connected in series with a low voltage MOSFET.
At high voltages, above around 500V, the situation reverses: BJTs drop less voltage, than MOSFETs. Often both a MOSFET and a BJT are used together. The IGBT is a device which combines both a MOSFET and a BJT and can switch high voltages, with less voltage drop than a MOSFET, without needing the large base current of a BJT. A high voltage BJT is often connected in series with a low voltage MOSFET, forming a cascode, or emitter switched BJT (ESBJT) which combines the speed of a MOSFET with the low loss of a BJT.
https://electronics.stackexchange.com/questions/15677/when-do-you-want-an-esbt-emitter-switched-bipolar-transistor
Both BJT's and Fets are usefull devices and you should know how to work with both of them.
So start plugging those holes in your knowledge.
Also Fet's aren't always that simple.
It starts with J-Fets and MOS-Fets.
With those Fets you also have Enhancement and Depletion variants.
A somewhat hidden defficiency of MOS-Fets is that they tend to have a relatively high leakage current, even when there is no Gate voltage, which can easily be 10uA or more (@ 55 Celcius).
This can be a limiting factor when designing low power battery powered circuits.
And when you get into the higher power stuff:
Don't forget the IGBT's, which are somewhere between a MOS-Fet and a Transistor.
Read some tutorials & books. Do some experiments on breadboads to consolidate & confirm what you've learned.
Also:
On Ali / Ebay / China there is a very popular "transistor tester".
I highly reccomend you buy at least one of them.
They are very handy to snif out the connections of unknown salvaged components and can identify if they still work.
As a beginner in electronics it is also a usefull project to study the power supply of this circuit.
When off it consumes 100nA or less (Thanks to BJT's) which is below my measurement limit (without getting complicated), it has a single momentatry push button to turn it on, and when done it turns itself off. And I mean OFF, not some whacky stand-by mode which consumes several uA.
Both BJT's and Fets are usefull devices and you should know how to work with both of them.
So start plugging those holes in your knowledge.
Also Fet's aren't always that simple.
It starts with J-Fets and MOS-Fets.
With those Fets you also have Enhancement and Depletion variants.
A somewhat hidden defficiency of MOS-Fets is that they tend to have a relatively high leakage current, even when there is no Gate voltage, which can easily be 10uA or more (@ 55 Celcius).
This can be a limiting factor when designing low power battery powered circuits.
And when you get into the higher power stuff:
Don't forget the IGBT's, which are somewhere between a MOS-Fet and a Transistor.
Many people just assume BJT when one refers to transistors, but MOSFETs are actually the most common form of transistor nowadays, especially in digital ICs. Perhaps it's because most discrete transistors are still BJTs, especially the smaller ones.
Regarding leakage current: yes MOSFETs are leaky, compared to BJTs, but circuits composed entirely of MOSFETs normally use less power, compared to the equivalent circuit made with BJTs, especially in low frequency, low power applications, because a MOSFET doesn't need any current to remain on, whilst a BJT requires a base current to stay on. A classic example is digital logic: compare the power consumption of a CMOS quad NAND gate IC such as the CD4011 or 74HC00 with a TTL IC such as the 74LS00 and note the huge difference in current draw.
I'm curious why 80% of the transistor part of books is on BJTs.
.
and with this tester it's easy to check which pin is where.The large variation in threshold voltage for MOSFETs compared to the very consistent Vbe of a bipolar transistor makes them more difficult to use and less suitable at low voltages. The gate of a MOSFET is more susceptible to damage than the base of a bipolar transistor so extra precautions against over-voltage and ESD are required. MOSFETs cost more for the same voltage and current rating; this becomes especially pronounced at high voltages.
Similar objections apply to JFETs.
Are you basically saying that ESD and the fact that to use a mosfet one has to read the datasheet are what make these a bit more complicated to use? Thanks!
The large variation in threshold voltage for MOSFETs compared to the very consistent Vbe of a bipolar transistor makes them more difficult to use and less suitable at low voltages. The gate of a MOSFET is more susceptible to damage than the base of a bipolar transistor so extra precautions against over-voltage and ESD are required. MOSFETs cost more for the same voltage and current rating; this becomes especially pronounced at high voltages.
Similar objections apply to JFETs.
Are you basically saying that ESD and the fact that to use a mosfet one has to read the datasheet are what make these a bit more complicated to use? Thanks!
The major difference is that every bipolar transistor can be driven and used in a switching application with less than 1 volt of compliance. Vbe is order of magnitude more predictable making design for variation much easier. Meanwhile FETs are graded into separate part numbers for different Vgs(th) the same way that some bipolar transistors are graded for hfe except Vgs(th) is more critical than hfe.
The result is standard power MOSFETs, low threshold MOSFETs for 5 volt gate drive, lower threshold MOSFETs for 3.3 volt gate drive, even lower threshold MOSFETs for 1.8 volt gate drive, etc. And this extends to linear circuits where variation in Vgs(th) of a single type is much worse than Vbe of bipolar transistors. Try using parallel MOSFETs in a linear application with the same value of ballast resistor which bipolar transistors would require.
Got it. I see now how it can be easier: pick a BJT and you hardly go wrong. Pick a MOSFET and you don't know what you picked.