0
\$\begingroup\$

I want a current of 100mA to flow through a transistor. For that, I polarize it with a voltage divider.

The transistor I use is the BS270. According to its data sheet, for a current of 100 mA to flow, it is necessary to apply a gate-source voltage of about 3.2 V. Since I want it to operate in the saturation region, VDS>=VGS-Vtn. The worst case occurs when the threshold voltage (Vtn) is minimum, which is 1V (datasheet). So: VDS>=3.2-1=2.2V. Therefore, we choose a value for VDS of, for example, 2.5V. As we use a power supply (measured) of about 5.1V (Arduino), the remaining voltage 5.1-2.5=2.6V is distributed equally in the resistors RD and RS. With which, both must be worth RS=RD=(2.6V/2)/100mA=13 ohms. The necessary gate voltage can be obtained as: VG=VGS-VS=3.2-1.3=1.9V. We get this voltage using as RG1=1M and RG2=470k+100k+10k+2*4.7k.

However, when assembling the circuit, the voltage values ​​VGS, VDS and the voltages on the resistors RD and RS are not what they should be. For example, the supply voltage drops all between drain and source and none across RD and RS. I don't know if it's the design that's wrong. Could someone tell me why?

To power the circuit I use four 5V outputs from the Arduino (one specific for more powerful projects) in parallel, so that it can supply the 100mA current.

The image of the designed circuit is as follows:

enter image description here

\$\endgroup\$
8
  • 1
    \$\begingroup\$ The datasheet tells us this is a switching device but you want to use it as a linear device. What is the measured Vgs? Using a bjt would be much more suitable. \$\endgroup\$
    – Kartman
    Apr 20, 2022 at 13:37
  • \$\begingroup\$ What do you get when you measure ID? \$\endgroup\$ Apr 20, 2022 at 13:57
  • \$\begingroup\$ @Kartman yet using a BJT you will need to make Rs much bigger than RG1 and RG2 . \$\endgroup\$
    – Miss Mulan
    Apr 20, 2022 at 15:51
  • \$\begingroup\$ @MissMulan At 100mA, there will be 1.3V across Rs hence a bias of nearly 2V needed at the base of the BJT. Why would Rs need to be any larger? \$\endgroup\$
    – Finbarr
    Apr 20, 2022 at 16:05
  • \$\begingroup\$ Because the current through Rs in a BJT will influence the voltage of the base. \$\endgroup\$
    – Miss Mulan
    Apr 20, 2022 at 17:45

3 Answers 3

5
\$\begingroup\$

What you are aiming for is the drain resistor to be at 1.3V. With a Vgs threshold of 2.1V, then the gate voltage should be 2.1+1.3 = at least 3.4V. So what you show clearly won't work at all.

The actual bias value will also depend on the transconductance of your FET, that is, the ratio of a change in input voltage to a change in output current. This varies with the operating condition of the FET. So you'll have to fiddle with the gate bias voltage a bit. I did a quick Falstad sim and came up with something between 3.4 and 3.5V for the bias value, but not using your exact FET model.

Regardless, the repeatability of your circuit isn’t great because it counts on a specific Vgs threshold and transconductance behavior. Manufacturing tolerances for these FET parameters are fairly wide, and are influenced by temperature. In other words, your circuit isn't compensated in any way.

If you add an NPN common-emitter to the sense resistor to create negative feedback you will have better results, and the sense resistor size can be smaller.

Example (simulate it here):

enter image description here

A still better solution is to use an op-amp to sense the current and use that to control the FET gate.

Example (simulate it here):

enter image description here

If you choose an op-amp whose inputs can include GND, the sense resistor can be very small.

\$\endgroup\$
6
  • \$\begingroup\$ Thanks for the alternative solutions. I think I understand the role of the NPN transistor. If there is an increase in ID, the increase in voltage in the source causes it to conduct more current through the NPN and, therefore, the ID is regulated. But in the second circuit, wouldn't increasing ID saturate the op-amp to negative and stop driving the FET? \$\endgroup\$
    – Sharik_97
    Apr 20, 2022 at 18:30
  • \$\begingroup\$ Increase in ID would cause the op-amp output to swing lower, decreasing the gate voltage. In other words it provides strong negative feedback. \$\endgroup\$ Apr 20, 2022 at 19:50
  • \$\begingroup\$ Is that due to VS increase and therefore the difference V(+)-V(-)? \$\endgroup\$
    – Sharik_97
    Apr 20, 2022 at 22:37
  • \$\begingroup\$ Try playing with the sim if you like. Add a resistor to the output with a variable voltage for example. \$\endgroup\$ Apr 20, 2022 at 22:39
  • \$\begingroup\$ Would the resistor go between the drain and ground? \$\endgroup\$
    – Sharik_97
    Apr 20, 2022 at 23:09
4
\$\begingroup\$

Your understanding of biasing is faulty. The typical \$V_{GS(THRESHOLD)}\$ value is 2.1 volts (drain current = 250 μA) and you want 100 mA to flow hence, 1.89 volts is way too low: -

enter image description here

And this means that the MOSFET will be off because, if it begins conducting, the voltage at the source rises positively and shuts down the device due to negative feedback.

If you look at this graph in the data sheet: -

enter image description here

You'll see that you need around typically 3.1 volts of \$V_{GS}\$ to achieve something like what you want. And that naturally means that the gate voltage wrt 0 volts will need to be 3.1 volts plus that dropped across RS (1.3 volts). So, in reality, you'll need a gate voltage of about 4.4 volts typically.

The blue value above of 2.5 volts represent the voltage that is needed across the drain and source to achieve 100 mA drain current (given the drain and collector resistor values) and, as said earlier, that to me looks like a \$V_{GS}\$ of typically 3.1 volts but....

The repeatability between actual MOSFET performance and their data sheet nominal values is also going to disappoint you.

\$\endgroup\$
1
  • 2
    \$\begingroup\$ Please use only friendly comments and follow the CoC. Thanks \$\endgroup\$
    – Voltage Spike
    Apr 20, 2022 at 20:14
0
\$\begingroup\$

Due to the fact that the gate of the N-FET is at 1.89 V and the datasheet states that gate threshold voltage is between 1 V and 2.5 V, I believe there is a big risk of RS resistor pulling source too high. That way the circuit likely finds an equilibrium where the FET is barely conducting and dropping almost all the voltage over itself. To verify this you could short circuit the RS resistor and see if the circuit works as expected. To counteract this effect you might want to raise gate voltage or reduce value of RS.

Generally N-FET and low side loads is often harder to design.Check out this thread: CMOS: Why is an nMOS transistor a bad conductor of high logic, but a good conductor of low?

Additional comment is that it is not very good to have very high impedance at the gate of a FET, it makes the gate susceptible to EMI.

\$\endgroup\$
4
  • \$\begingroup\$ As per other answers, the threshold voltage is quoted for a drain current of 250 μA. To get 100mA flowing it will need to be much higher. \$\endgroup\$
    – Finbarr
    Apr 20, 2022 at 16:50
  • \$\begingroup\$ I have tried to short-circuit RS. However, all the voltage between drain and source continues to drop. It is possible that the transistor is malfunctioning after the tests I have done. I'll try it later with a new one to see what happens. \$\endgroup\$
    – Sharik_97
    Apr 20, 2022 at 18:03
  • \$\begingroup\$ Shorting Rs will make no difference, you still won't have enough Vgs to turn the MOSFET on enough to get 100mA flowing through it. \$\endgroup\$
    – Finbarr
    Apr 20, 2022 at 18:38
  • \$\begingroup\$ @Sharik_97: I believe the other answers are more correct. Raising the Vgs, maybe all the way to almost 4.5V might be necessary, shorting RS might somewhat simplify the problem but will not solve it. As mentioned by others it will be hard to trim the current to exact value of 100mA and the repeatability might be poor. \$\endgroup\$ Apr 21, 2022 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.