← PHYS 351Lecture 04 · Motor control & field-effect transistorsReading notes →

Lecture 04: Motor control & field-effect transistors

1 / 60
PHYS 351 · Lecture 0401

Lecture 04

Field-Effect Transistors and Motor Control

Covers Lab 4
© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0402

Today, in one line

Separate the signal path from the power path.

The pin decides when. A transistor and its own supply decide how much.

They meet only at the gate, and at a shared ground.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0403

Three acts

1. How a transistor works. Doping, the BJT, then the field effect. Why a FET is not just a smaller relay.

2. The MOSFET as a switch. On resistance, gate drive, logic level.

3. Driving the motor. Flyback, grounding, and measuring what you built.

Act 1 is what Lab 4 assumes you already have. It is worth the twenty minutes.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0404

Where each task points

TaskYou doIdea
1PWM on BCM 12; find where it stays valid; screenshotssoftware PWM limits
2IRL510 datasheet; pinout; motor on a +5+5 V bench supply, not the PiMOSFET switch, flyback, ground
3gate from BCM 12; vary the speedlogic-level gate drive
4rotation-rate detector; duty vs RPM, 10+ points; fit; accuracyoptical tachometer

PWM from Lab 3, the photodiode from Lab 1. New this week: the MOSFET in between.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0405

PWM revisited

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0406

Task 1 is a characterisation, not a demo

“Functions as expected” needs a definition. Write it down first:

  • measured frequency within, say, 5 % of commanded
  • measured duty within a stated tolerance
  • clean 0 to 3.3 V transitions
  • jitter small compared with the period

The answer is a region on a frequency–duty map, not one number.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0407

Where software PWM breaks

RegionWhat you see
below a few Hzelectrically fine; the motor gets kicks, not an average
mid-bandfrequency and duty both track: use this for the motor
high frequencyff falls short, duty drifts, jitter grows
near 0 % or 100 %the narrow pulse stretches or vanishes

Sweep a grid: 5–6 frequencies; at each, duty \approx 1, 5, 25, 50, 75, 95, 99 %.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0408

Try it

At 1 kHz, what on-time is a 2 % duty cycle?   At 20 Hz?

If an edge lands only to within 150 μ\upmus, what is the lowest reliable duty at 1 kHz?

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0409

Why a pin cannot drive a motor

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0410

Three independent reasons

Current. 16 mA per pin. A small motor: hundreds of mA, more at stall.

Istall=Vsupply/RwindingI_{\text{stall}} = V_{\text{supply}} / R_{\text{winding}}

Inductance. Interrupt the current and the winding fights back: VL=LdI/dtV_L = -L\,\mathrm{d}I/\mathrm{d}t.

Back-EMF. A spinning motor is a generator, Vback=keωV_{\text{back}} = k_e\,\omega.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0411

So put something in between

You need a part that takes a tiny command from the pin and lets through amperes from another supply.

That part is a transistor. Which kind, and why that kind, is the next twenty minutes.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0412

Act 1 | How a transistor works

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0413

Rewind: pure silicon does almost nothing

Silicon has four valence electrons and shares all four in the crystal. Nothing is free to move.

Thermal energy frees the occasional electron, leaving a hole behind. That is an intrinsic semiconductor: a poor conductor and a poor insulator.

Useful devices start by deliberately spoiling this perfect crystal.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0414

Rewind: doping makes carriers

Phosphorus contributes five valence electrons to a silicon lattice. Four form bonds and the fifth becomes a free electron, creating N-type material.
n-type: a spare electron

Boron contributes three valence electrons to a silicon lattice, leaving an unfilled bond or hole, creating P-type material.
p-type: a spare hole

Five valence electrons (phosphorus) leaves one over. Three (boron) leaves one missing.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0415

Rewind: join them and you get a diode

At the junction electrons cross and fill holes. What is left is a depletion layer: no free carriers, and a built-in barrier.

Forward bias pushes carriers in and the barrier collapses at about 0.7 V. Reverse bias widens the depletion layer and nothing flows.

Remember the width of that layer. The JFET is about to control it on purpose.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0416

The BJT: two junctions, three regions

NPN transistor layers: an N-type collector and N-type emitter lie on either side of the thin P-type base.

Emitter heavily doped, base lightly doped and thin, collector in between.

Base–emitter forward biased, base–collector reverse biased.

Carriers injected into the thin base mostly shoot through to the collector.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0417

The BJT is controlled by current

NPN bias circuit: VBB drives the base through RB, VCC supplies the collector through RC, and the emitter is grounded. Arrows identify base, collector, and emitter currents.

IC=βIBI_C = \beta\,I_B

The base current is not a one-off. It flows the whole time the device is on, and β\beta drifts with temperature.

To hold 1 A at β=50\beta = 50 you must supply 20 mA. A GPIO pin cannot.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0418

The field effect

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0419

A different idea: control with a field

Instead of injecting carriers, use the electric field from a nearby electrode to change how many carriers the channel already has.

A field costs no steady current to maintain. That sentence is why your 3.3 V pin can command amperes.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0420

The FET family

FET family tree: JFETs operate in depletion mode and can be N- or P-channel. Insulated-gate MOSFETs include depletion and enhancement types; the N-channel enhancement branch identifies the IRL510.

Every FET has the same three terminals: gate, drain, source.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0421

Channel and gate

The channel is the path from drain to source.

The gate decides how much of it conducts.

Current flows drain to source; the gate only sets the valve position.

Two ways to build that valve: pinch an existing channel, or create one. JFET and MOSFET.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0422

JFET: normally on, squeeze it shut

JFET amplifier: drain resistor RD connects to the positive supply, source resistor RS connects to ground, and the signal enters the gate with bias resistor RG to ground.

The channel is already there, so a JFET conducts at VGS=0V_{GS} = 0.

Reverse bias the gate and its depletion region grows into the channel until it pinches off.

Never forward bias the gate.

A voltage-controlled resistor, as used in mixers.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0423

MOSFET: put glass under the gate

N-channel MOSFET cross-section with no inversion channel: metal gate is separated from the p-type substrate by silicon dioxide; n-plus source and drain wells are disconnected through the surface.

The gate sits on a thin SiO2_2 layer, so it is no longer a diode. It is a capacitor. At VGS=0V_{GS} = 0 the two n+^+ wells are isolated by p-type substrate and nothing flows.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0424

Enhancement: the field builds the channel

N-channel MOSFET cross-section with positive gate bias: an inversion channel forms beneath the insulating oxide and connects the n-plus source and drain wells. An arrow identifies the channel.

Raise VGSV_{GS} and the field pushes holes down and pulls electrons up, until a thin n-type inversion layer bridges the wells. Above VthV_{th} the device conducts.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0425

Two modes, one table

VGS<0V_{GS} < 0VGS=0V_{GS} = 0VGS>0V_{GS} > 0
Depletion modechannel offchannel onchannel on
Enhancement modechannel offchannel on

A depletion device is normally on. An enhancement device is normally off.

For a switch you want normally off, so a loose wire leaves the motor stopped. Enhancement.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0426

The same thing as a curve

Conceptual FET transfer curves: an enhancement device is off near zero gate voltage and turns on above threshold; a depletion device conducts at zero gate voltage and can be turned off with negative bias.
Shapes, not datasheet values. What matters is where each curve leaves the axis.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0427

FET against BJT

BJTFET
Controlled bybase currentgate voltage
Control drawscurrent, continuouslynothing, after the switching edge
Input impedancemoderateextremely high, an oxide
Carrierselectrons and holesone kind only
Fully on looks likea residual VCE(sat)0.2V_{CE(\text{sat})} \approx 0.2 Va resistance RDS(on)\Rds
Loss at 1 A0.2\approx 0.2 W, set by that voltageI2RDS(on)I^2\Rds, and RDS(on)\Rds keeps falling
Drive from logicneeds a base resistor and currentconnect the pin, with a gate resistor
Killed byheat, overcurrentstatic, over-voltage on the gate

For a logic-driven power switch the FET wins on all three.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0428

Why that comparison decides Lab 4

Conceptual comparison: BJT collector current rises with base current; FET drain current rises with gate-source voltage above threshold, with essentially no steady gate current.

A BJT wants tens of mA of base current, for as long as the motor runs.

Your pin has 16 mA in total.

The FET asks only for a brief charging pulse.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0429

The gate is fragile, and that is the trade

The oxide is a few tens of atoms thick. It buys you the free gate drive, and it is also what static discharge punctures.

Handle the part by its package. Never let the gate float. Respect VGS,maxV_{GS,\max} from the datasheet, usually about ±20\pm 20 V.

A dead MOSFET usually died at the gate, not the drain.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0430

Act 2 | The MOSFET as a switch

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0431

The symbol, and the diode you did not ask for

N-channel power MOSFET symbol showing gate, drain, source, and the intrinsic body diode between source and drain.

Gate, drain, source, and an anti-parallel body diode that comes free with the structure.

It points the right way to catch an inductive kick.

Free, but slower and weaker than a real flyback diode. Fit your own.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0432

Ohmic or saturation: pick your region

MOSFET output-characteristic family: drain current first rises with drain-source voltage in the linear region, then flattens in saturation. Larger gate-source voltages produce larger drain currents.

Ohmic, far left: a small resistance RDS(on)\Rds.

Saturation, flat: current set by VGSV_{GS}.

Switches live in the ohmic region, amplifiers in saturation. Lab 4 is a switch.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0433

On or off, never in between

N-channel MOSFET inverter switch: a resistor pulls Vout up to VDD, the drain connects to Vout, the source is grounded, and Vin controls the gate.

Pon=ID2RDS(on)Poff0P_{\text{on}} = I_D^{\,2}\,\Rds\qquad P_{\text{off}} \approx 0

0.5 A through 0.54Ω0.54\ohm: P=0.135P = 0.135 W. No heatsink.

A resistor halving the motor voltage at 0.5 A: 1.25 W of heat.

Halfway on is the one state that costs you.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0434

The L in IRL510

The Pi can put only 3.3 V on the gate.

Many power MOSFETs want 10 V. At 3.3 V they half-conduct and get hot.

A logic-level part is fully on at 4–5 V. That is the L. The IRF510 is not.

Record from the datasheet

pins \cdot VGS(th)V_{\text{GS(th)}} \cdot RDS(on)\Rds at which VGSV_{GS} \cdot IDI_D \cdot VDS,maxV_{DS,\max}

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0435

4–5 V is not 3.3 V

RDS(on)\Rds is quoted at 5 V. At 3.3 V the part conducts, but less fully.

Run the motor. Measure VDSV_{DS} with the switch on. Feel the package.

Weak motor or a warm device means a gate driver or a level shift. Say what you found.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0436

Low-side switching

Supply \rightarrow motor \rightarrow drain. Source to ground.

VGSV_{GS} is gate to source. Source on ground: VGSV_{GS} is simply the pin voltage.

MOSFET above the motor instead: the source rises as it turns on, VGSV_{GS} collapses, it turns itself off.

High side needs a gate driver. Not this lab.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0437

Two small resistors that make it behave

Gate series resistor, a few hundred ohms: limits the current pulse that charges the gate at every edge.

Pull-down, about 10 kΩ\Upomega gate to source: holds the gate at 0 V while the Pi boots, after cleanup(), or if a wire falls out.

A floating gate drifts, and the motor switches itself on.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0438

Two FETs make a logic gate

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0439

CMOS: a complementary pair

CMOS inverter: an upper transistor connects the output to VDD and a lower transistor connects it to ground. Both gates share Vin and their joined drains form Vout.

p-channel above, n-channel below, gates tied together.

VinV_{in} low: top on, bottom off, output high.

VinV_{in} high: top off, bottom on, output low.

A NOT gate. Every gate is built this way.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0440

Why the whole industry uses it

In either steady state one of the two is off, so no current runs from VDDV_{DD} to ground. A CMOS gate burns power only while it switches.

Pstatic0PdynamicCV2fP_{\text{static}} \approx 0 \qquad\qquad P_{\text{dynamic}} \approx C V^2 f

That is why a processor’s power scales with clock speed, and why your laptop throttles.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0441

You have been using one all along

Lecture 03: “an output pin is a pair of transistors acting as a two-way switch.”

That pair is this CMOS inverter, on the Pi’s own die. Push–pull is the same idea under another name.

Writing a 1 turns on the upper device; writing a 0 turns on the lower one.

The 16 mA limit is those two small transistors’ on-resistance and thermal rating, nothing more.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0442

From logic to load

Digital IC driving a grounded-source power FET. A high-power load connects between positive supply and drain, allowing a logic signal to switch load current.

The same device, scaled up: 1 A to 200 A, 1 W to 500 W.

A power FET is the standard interface between a logic output and a motor, lamp, heater or solenoid.

Your Lab 4 circuit is this block diagram with real parts in it.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0443

Reading a device table

Comparison of three power MOSFETs, listing gate drive, drain current, on-resistance, maximum current, and power dissipation. The examples require 10 V gate drive and are not automatically suitable for direct 3.3 V GPIO control.
Notice what moves together: bigger current ratings come with smaller RDS(on)\Rds, and all three parts are quoted at VGS=10V_{GS} = 10 V. The IRL510 is quoted at 5 V, which is the whole point of it.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0444

Worked example: what does the motor actually get?

Illustrative power-MOSFET motor driver: a motor connects between a 30 V supply and the drain, source is grounded, and a diode lies across the motor. The gate waveform is labeled 0 to 10 V.

Ideal switch: 30V/30Ω=1.0030\,\text{V} / 30\ohm = 1.00 A.

With RDS(on)=1.95Ω\Rds = 1.95\ohm:

ID=30V30Ω+1.95Ω=0.939 AI_D = \frac{30\,\text{V}}{30\ohm + 1.95\ohm} = 0.939\ \text{A}

Six per cent less, and 1.7 W in the transistor.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0445

Check the region before you trust that

That calculation assumes the device is ohmic, not saturated.

It holds only while the current the load allows is less than the current the gate drive would permit: ID(sat)<ID(on)I_{D(\text{sat})} < I_{D(\text{on})}.

Confirm it from the datasheet, then use RDS(on)\Rds.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0446

One more, and it is Lab 1 again

Light-controlled lamp circuit: a photodiode and bias resistors set a MOSFET gate voltage; the MOSFET switches a lamp connected to a 30 V supply. This is an illustrative circuit, not Raspberry Pi wiring.

Daylight: the photodiode conducts, the gate stays low, lamp off.

Night: the photodiode stops, the gate rises, lamp on.

A Lab 1 detector driving a Lab 4 switch.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0447

Act 3 | Driving the motor

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0448

The component most often left out

Switch off: the winding current has nowhere to go. VL=LdI/dtV_L = -L\,\mathrm{d}I/\mathrm{d}t makes whatever voltage it takes, across the drain.

The rule

Diode across the motor, reverse-biased by the supply: band to ++, anode to the drain. Backwards, it shorts the supply.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0449

The complete circuit

Low-side motor driver: the motor lies between positive supply and MOSFET drain, source connects to ground, and the GPIO drives the gate through a resistor with a pull-down to ground. A flyback diode across the motor is reverse-biased during normal operation.

The motor runs from its own supply. The Pi sends only PWM.

Common ground is not optional

Pi GND and bench GND tied, or VGSV_{GS} is undefined.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0450

Bring it up one thing at a time

Task 2. Gate from a fixed +5+5 V on the bench supply. The motor runs or it does not: the power path is proven.

Instructor or TA checks the circuit before the motor is powered.

Task 3. Move the gate to BCM 12 through the gate resistor. Now only the signal path is under test.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0451

The same idea in Multisim

Simulated IRL510 low-side LED driver: a supply feeds a resistor and LED into the drain; the source is grounded, the gate receives a pulse waveform, and a gate pull-down holds it off when undriven.
Swap the LED for a motor, add the flyback diode, and this is Lab 4.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0452

Measuring rotation

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0453

The Lab 1 detector becomes a tachometer

LED on one side of the shaft, photodiode on the other, something that breaks the beam NN times per turn.

RPM=pulsesN×tgate×60\text{RPM} = \frac{\text{pulses}}{N \times t_{\text{gate}}} \times 60

Or read the pulse period on the scope and invert it.

Wrong NN scales every RPM by the same factor and still looks consistent. State it, justify it.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0454

Make the pulses clean

  • the TIA, not a bare resistor: gain, and a fixed diode bias
  • shield from room light: fluorescents flicker at 120 Hz, right in your RPM range
  • look on the scope before writing any counting code

Two traps. Double counting on slow edges. Counting PWM edges instead of the shaft.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0455

What the curve looks like

Conceptual motor speed versus PWM duty: an initial dead zone is followed by an approximately linear rise and then flattening at high duty. Actual values must be measured.

RPMk(DD0)\text{RPM} \approx k\,(D - D_0)

Cluster points near the dead-zone edge.

Fit the linear region only; say which points.

kk in RPM per %.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0456

Two extra results worth chasing

Hysteresis. Sweep up from 0, then down from 100 %. The motor keeps turning below the duty that started it.

PWM frequency. The rotor’s time constant is tens of ms. Periods much shorter are averaged; comparable ones jerk. The reference code uses 50 Hz.

A null result honestly reported is still a result.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0457

Measurement technique

MeasureHowWatch out
PWM gate signalprobe BCM 12, DC coupling, statistics onAC coupling kills the duty reading
Drain waveformprobe the drain, clip on common groundspikes exceed the probe rating without the diode
Motor currentDMM in series on the supply sidea time-average of a switched current
Winding resistanceDMM, motor disconnectedvaries with shaft position; quote a range
Rotation ratepulse train on the scopeconfirm NN; zero with the motor stopped
© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0458

Destroys hardware

Do not

leave out the flyback diode, or fit it backwards
power the motor from the Pi
forget the common ground
let motor terminals touch the header
set the bench supply current limit high
handle the MOSFET by its gate lead

Secure the motor. Eye protection on. Power off before touching anything mechanical.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0459

Take away

A BJT is a current valve and keeps charging you base current. A FET is a field valve: the gate is a capacitor, so holding it on is free.

Enhancement mode means normally off, and in the ohmic region a fully-on device is just a small resistance.

Give the load its own supply, tie the grounds, put a diode across anything inductive, and switch fully on or fully off.

© Ran Yang, Ph.D.Advanced Instrumentation
PHYS 351 · Lecture 0460

Exit check

1. What does a MOSFET gate look like electrically, and why does that suit a 3.3 V pin?

2. Depletion or enhancement: which is normally on? Which do you want for a motor, and why?

3. Winding 2.5 Ω\Upomega on 5 V: stall current, and the ratio to 16 mA?

4. In a CMOS inverter, why is the static power nearly zero?

© Ran Yang, Ph.D.Advanced Instrumentation

Use ← → to move, Home / End to jump, and F for fullscreen.

Figure descriptions

Slide 14 · Rewind: doping makes carriers

Phosphorus contributes five valence electrons to a silicon lattice. Four form bonds and the fifth becomes a free electron, creating N-type material.

Boron contributes three valence electrons to a silicon lattice, leaving an unfilled bond or hole, creating P-type material.

Slide 16 · The BJT: two junctions, three regions

NPN transistor layers: an N-type collector and N-type emitter lie on either side of the thin P-type base.

Slide 17 · The BJT is controlled by current

NPN bias circuit: VBB drives the base through RB, VCC supplies the collector through RC, and the emitter is grounded. Arrows identify base, collector, and emitter currents.

Slide 20 · The FET family

FET family tree: JFETs operate in depletion mode and can be N- or P-channel. Insulated-gate MOSFETs include depletion and enhancement types; the N-channel enhancement branch identifies the IRL510.

Slide 22 · JFET: normally on, squeeze it shut

JFET amplifier: drain resistor RD connects to the positive supply, source resistor RS connects to ground, and the signal enters the gate with bias resistor RG to ground.

Slide 23 · MOSFET: put glass under the gate

N-channel MOSFET cross-section with no inversion channel: metal gate is separated from the p-type substrate by silicon dioxide; n-plus source and drain wells are disconnected through the surface.

Slide 24 · Enhancement: the field builds the channel

N-channel MOSFET cross-section with positive gate bias: an inversion channel forms beneath the insulating oxide and connects the n-plus source and drain wells. An arrow identifies the channel.

Slide 26 · The same thing as a curve

Conceptual FET transfer curves: an enhancement device is off near zero gate voltage and turns on above threshold; a depletion device conducts at zero gate voltage and can be turned off with negative bias.

Slide 28 · Why that comparison decides Lab 4

Conceptual comparison: BJT collector current rises with base current; FET drain current rises with gate-source voltage above threshold, with essentially no steady gate current.

Slide 31 · The symbol, and the diode you did not ask for

N-channel power MOSFET symbol showing gate, drain, source, and the intrinsic body diode between source and drain.

Slide 32 · Ohmic or saturation: pick your region

MOSFET output-characteristic family: drain current first rises with drain-source voltage in the linear region, then flattens in saturation. Larger gate-source voltages produce larger drain currents.

Slide 33 · On or off, never in between

N-channel MOSFET inverter switch: a resistor pulls Vout up to VDD, the drain connects to Vout, the source is grounded, and Vin controls the gate.

Slide 39 · CMOS: a complementary pair

CMOS inverter: an upper transistor connects the output to VDD and a lower transistor connects it to ground. Both gates share Vin and their joined drains form Vout.

Slide 42 · From logic to load

Digital IC driving a grounded-source power FET. A high-power load connects between positive supply and drain, allowing a logic signal to switch load current.

Slide 43 · Reading a device table

Comparison of three power MOSFETs, listing gate drive, drain current, on-resistance, maximum current, and power dissipation. The examples require 10 V gate drive and are not automatically suitable for direct 3.3 V GPIO control.

Slide 44 · Worked example: what does the motor actually get?

Illustrative power-MOSFET motor driver: a motor connects between a 30 V supply and the drain, source is grounded, and a diode lies across the motor. The gate waveform is labeled 0 to 10 V.

Slide 46 · One more, and it is Lab 1 again

Light-controlled lamp circuit: a photodiode and bias resistors set a MOSFET gate voltage; the MOSFET switches a lamp connected to a 30 V supply. This is an illustrative circuit, not Raspberry Pi wiring.

Slide 49 · The complete circuit

Low-side motor driver: the motor lies between positive supply and MOSFET drain, source connects to ground, and the GPIO drives the gate through a resistor with a pull-down to ground. A flyback diode across the motor is reverse-biased during normal operation.

Slide 51 · The same idea in Multisim

Simulated IRL510 low-side LED driver: a supply feeds a resistor and LED into the drain; the source is grounded, the gate receives a pulse waveform, and a gate pull-down holds it off when undriven.

Slide 55 · What the curve looks like

Conceptual motor speed versus PWM duty: an initial dead zone is followed by an approximately linear rise and then flattening at high duty. Actual values must be measured.