EE 330 Lecture 2026/9/10 SPICE
Overview
An EE 330 tutorial explains how to build, configure, and interpret circuit simulations in LTspice, the SPICE tool used for the course projects. It covers essential shortcuts and grounding, component models and sources, transient, AC, DC sweep, and Fourier analyses, then demonstrates an RC step response, an NMOS sweep, a three-phase rectifier, and total harmonic distortion measurement for an amplifier.
Key takeaways
- Every LTspice circuit needs a ground reference; omitting it is a common reason a new circuit will not simulate.
- Use transient analysis for time-dependent behavior such as an RC capacitor charging, AC analysis for gain across frequency, and DC sweep for device response to a changing input.
- A 1 kΩ resistor and 4.7 µF capacitor have an ideal RC time constant of 4.7 ms; the capacitor reaches roughly 63% of its final value after that interval.
- For an NMOS DC sweep from 0 V to 5 V, plotting Vout against the swept gate-control voltage reveals switching behavior more clearly than plotting the source voltage.
- LTspice Fourier analysis uses the expected fundamental frequency and a named output node to calculate harmonic distortion; the example reports 1.5% THD.
- Clear project evidence depends on labeled nodes, visible axes, high-contrast traces, readable measurement pointers, and inclusion of the relevant SPICE output log.
Chapters
- The opening minutes include classroom logistics and questions about using slides rather than a regular lecture format.
- The class checks microphone placement and Zoom audio settings before the SPICE tutorial begins.
- SPICE means Simulation Program with Integrated Circuit Emphasis; LTspice is the tool selected for the two course projects.
- Common component shortcuts are R for resistor, L for inductor, C for capacitor, D for diode, and V for voltage source.
- Use W to wire, M to move, Ctrl+C to copy, and Delete to remove components; press P to search the component library.
- Every circuit needs a ground reference so LTspice can define zero volts and run the simulation.
- Right-click a component to edit its model parameters; for many linear parts, setting the main value is sufficient for course simulations.
- Voltage sources can be configured as DC, pulse, sine, exponential, or piecewise-linear inputs, including signals imported from a file.
- Transient analysis shows circuit behavior over time, AC analysis sweeps frequency to examine gain, and DC sweep varies an input to characterize devices.
- Fourier analysis reports harmonic content and total harmonic distortion, a measure used in the second amplifier project.
- LTspice includes commercial off-the-shelf models, especially useful for nonlinear devices such as NMOS, PMOS, and NPN transistors.
- For parts not listed in LTspice, datasheets can be found by searching the part number through sources such as Digi-Key or Mouser; importing a model may earn project extra credit.
- For project plots, label nodes, show both axes, use high-contrast colors, and place measurement pointers where their values are easy to read.
- The LTspice Windows version has the fuller interface; Mac users can use the Mac version or university library computers.
- The live example builds an RC circuit using a 1 kΩ resistor and a 4.7 µF capacitor, then applies a voltage step at 0.1 seconds.
- A transient analysis shows the capacitor voltage rising smoothly after the input step; the circuit initially fails to simulate because it has no ground.
- For an RC circuit, the time constant is RC, and the capacitor reaches about 63% of its final voltage after one time constant.
- Use N to label nodes such as Vin and Vout, zoom in on the important interval, and use graph pointers to inspect exact values.
- The NMOS example uses a control voltage at the gate, a supply, and a series resistor to limit current.
- A DC sweep varies the control source from 0 V to 5 V, with the start, stop, and increment set in the analysis configuration.
- Plotting Vout reveals the transistor's switching response more usefully than plotting the control voltage against itself.
- A starting DC value may still need to be entered on the source even when the sweep specifies its own start value.
- A three-phase AC input is rectified by diodes and observed over a 100 ms transient simulation.
- The output filter capacitor smooths the rectified waveform, but the example output has substantial ripple because the capacitor is likely too small.
- The circuit illustrates how transient simulation can predict the output of a power-conversion circuit before hardware testing.
- For the amplifier project, run a transient simulation with a sine-wave input before requesting Fourier analysis.
- Add the Fourier directive with the expected 1,000 Hz fundamental and the labeled output node, such as Vout.
- Open View, then SPICE Output Log to read the harmonic components and distortion results.
- The demonstrated circuit reports about 1.5% total harmonic distortion, and project evidence should include both the output waveform and the Fourier log.
- Press P and search for op amps to select a model such as the OP07; consult its datasheet because some library models cannot be edited directly.
- Digi-Key component filters can help select op amps by properties such as input resistance for circuits including difference amplifiers.
- The project work includes tedious calculations as well as simulation; the advice is not to leave it until less than a week before the deadline.
- The TA notes that LTspice is available on Mac with a less convenient interface and recommends library computers if needed.
Transcript excerpt
0:11 [clears throat] >> Hey professor.
1:59 I was wondering if you could do a regular lecture before He's got to make sure this one is still good. >> Yeah, so um >> So you do login through >> Hey. >> Is it the one that I showed you? >> Uh this is the one that I found on the syllabus. >> That's the one with the card automatically. >> You do it playing it >> Right? Right. I don't think I'll be using that. I have slides and I'll use them in my presentation. >> Um can I ask you a question? >> I don't expect it to take a full class period. Maybe like 20 to 30 minutes. It's I mean there's only so much you can
2:47 go over in space. Yeah, I agree as Okay. microphone Okay. >> So >> Okay.
4:06 Yeah. I might mute you. Yeah. Oh, you actually I knew this one. You will record over me. Oh, you As long as you don't get too far away
5:38 from it. >> Yeah. >> But let's still check the sound settings. >> Okay. >> Cuz I'm using the mic around my PC. >> Yeah. >> Yeah. >> So that makes sense. >> It seems like we got a little bit of signal. But uh maybe when the class quiet down it'll be better cuz the Zoom has a built-in noise algorithm. So hopefully when it's just you speaking it'll be But >> Thank you. >> Yeah. >> Okay. >> Will do. Won't take the whole time. >> I was saying. This is a
7:41 Well, like they had a urinalysis with my unit. >> Okay, so >> You guys do uh this test? >> For the RNTCP, right? >> But I have a prescription for my unit, and they don't accept any of my
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Wireless Power Transfer.