[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.10,0:00:08.14,Default,,0000,0000,0000,,All right, I'm gonna do a quick LTspice\Ncrash course for Mac and Windows users. Dialogue: 0,0:00:08.14,0:00:15.33,Default,,0000,0000,0000,,Go to and it'll be this link. Dialogue: 0,0:00:18.98,0:00:20.49,Default,,0000,0000,0000,,Right here on the main page. Dialogue: 0,0:00:20.49,0:00:21.48,Default,,0000,0000,0000,,Choose your download. Dialogue: 0,0:00:25.10,0:00:27.76,Default,,0000,0000,0000,,Once it downloads,\Nyou're gonna double-click on it. Dialogue: 0,0:00:27.76,0:00:32.56,Default,,0000,0000,0000,,It's gonna show here,\Nyou're gonna go into here. Dialogue: 0,0:00:32.56,0:00:36.01,Default,,0000,0000,0000,,This is a little different than what\Nyou're expecting on Macs normally. Dialogue: 0,0:00:36.01,0:00:39.83,Default,,0000,0000,0000,,You're gonna put that in there and,\Nactually, I've already got it in here, so Dialogue: 0,0:00:44.16,0:00:47.64,Default,,0000,0000,0000,,LTspice, open it up. Dialogue: 0,0:00:51.22,0:00:56.38,Default,,0000,0000,0000,,This will pop up consistently,\Nit's actually a bug. Dialogue: 0,0:00:56.38,0:00:59.99,Default,,0000,0000,0000,,Just ignore it,\Nyou don't need to update anything. Dialogue: 0,0:00:59.99,0:01:02.05,Default,,0000,0000,0000,,So here you go.\NYou can start a new schematic. Dialogue: 0,0:01:05.72,0:01:10.10,Default,,0000,0000,0000,,You can add grid dots so\Nit's easier to see the scaling. Dialogue: 0,0:01:10.10,0:01:14.55,Default,,0000,0000,0000,,And this is the difference\Nwith Windows and Mac, is Mac, Dialogue: 0,0:01:14.55,0:01:19.56,Default,,0000,0000,0000,,you actually have to access things\Nthrough your right-click or Dialogue: 0,0:01:19.56,0:01:22.63,Default,,0000,0000,0000,,Cmd, whatever, Cmd + left-click. Dialogue: 0,0:01:22.63,0:01:24.68,Default,,0000,0000,0000,,I just do double tap. Dialogue: 0,0:01:24.68,0:01:28.60,Default,,0000,0000,0000,,So let's just draw a simple circuit. Dialogue: 0,0:01:28.60,0:01:35.80,Default,,0000,0000,0000,,It's easier to start with the wires and\Nthe shape of the circuit that you want. Dialogue: 0,0:01:35.80,0:01:39.16,Default,,0000,0000,0000,,And then you can just drop in, Dialogue: 0,0:01:39.16,0:01:44.97,Default,,0000,0000,0000,,hit Esc to go back to normal view,\Nnormal tool tip. Dialogue: 0,0:01:44.97,0:01:48.11,Default,,0000,0000,0000,,So Wires is F3,\NI'll probably end up using that more. Dialogue: 0,0:01:48.11,0:01:49.24,Default,,0000,0000,0000,,Component is F2. Dialogue: 0,0:01:51.38,0:01:55.06,Default,,0000,0000,0000,,So let's say we want to\Ndo a voltage source, Dialogue: 0,0:01:55.06,0:02:00.44,Default,,0000,0000,0000,,then you can just drop this right in,\Nand it clicks it in for you. Dialogue: 0,0:02:03.78,0:02:10.44,Default,,0000,0000,0000,,Function F2 for part, resistor,\Nthat's just showing right here anyways. Dialogue: 0,0:02:10.44,0:02:16.07,Default,,0000,0000,0000,,So by the way, notice the folder\Nthat these are all in up here. Dialogue: 0,0:02:16.07,0:02:18.42,Default,,0000,0000,0000,,If you had access to other folders,\Nit would show here. Dialogue: 0,0:02:18.42,0:02:22.76,Default,,0000,0000,0000,,In fact, I'll show it is going to\Nautogenerate another folder for Dialogue: 0,0:02:22.76,0:02:24.08,Default,,0000,0000,0000,,your own circuits. Dialogue: 0,0:02:24.08,0:02:27.29,Default,,0000,0000,0000,,It'll auto generate for\Nthis particular circuit, in fact. Dialogue: 0,0:02:27.29,0:02:31.88,Default,,0000,0000,0000,,[COUGH] So we also need a ground,\Nwhich another Dialogue: 0,0:02:31.88,0:02:36.84,Default,,0000,0000,0000,,quirk of this is you don't\Nactually get to ground Dialogue: 0,0:02:36.84,0:02:41.70,Default,,0000,0000,0000,,through component,\Nyou go Net Name > Ground. Dialogue: 0,0:02:41.70,0:02:45.26,Default,,0000,0000,0000,,All circuits apparently have\Nto have a global ground. Dialogue: 0,0:02:45.26,0:02:48.89,Default,,0000,0000,0000,,I tried to use COM, this is a common. Dialogue: 0,0:02:48.89,0:02:53.56,Default,,0000,0000,0000,,And you'll learn about this,\Nbut for some reason, Dialogue: 0,0:02:53.56,0:02:56.96,Default,,0000,0000,0000,,these circuits need a global ground. Dialogue: 0,0:02:56.96,0:02:58.42,Default,,0000,0000,0000,,Okay, click there. Dialogue: 0,0:02:59.81,0:03:01.53,Default,,0000,0000,0000,,So this circuit is ready. Dialogue: 0,0:03:01.53,0:03:05.10,Default,,0000,0000,0000,,Well, we have to give it some values here. Dialogue: 0,0:03:05.10,0:03:09.69,Default,,0000,0000,0000,,Just right-click on that to\Ngive it a value here in this. Dialogue: 0,0:03:09.69,0:03:11.29,Default,,0000,0000,0000,,Probably another number. Dialogue: 0,0:03:11.29,0:03:16.44,Default,,0000,0000,0000,,When you see the hand here,\Nyou right-click on it, Dialogue: 0,0:03:16.44,0:03:20.44,Default,,0000,0000,0000,,it gives you sorta the same option here. Dialogue: 0,0:03:20.44,0:03:23.97,Default,,0000,0000,0000,,You can also include a resistance and\Nseries just so Dialogue: 0,0:03:23.97,0:03:26.61,Default,,0000,0000,0000,,that it's no longer an ideal source. Dialogue: 0,0:03:29.43,0:03:33.54,Default,,0000,0000,0000,,We're gonna use ideal\Neverything essentially. Dialogue: 0,0:03:33.54,0:03:36.09,Default,,0000,0000,0000,,Resister here, let's just say 1k. Dialogue: 0,0:03:40.83,0:03:42.25,Default,,0000,0000,0000,,Resistor 1k. Dialogue: 0,0:03:46.46,0:03:49.87,Default,,0000,0000,0000,,Okay so\Nlet's try to simulate this thing, and Dialogue: 0,0:03:49.87,0:03:54.08,Default,,0000,0000,0000,,you'll see what happens,\Nno one else is command found. Dialogue: 0,0:03:54.08,0:03:55.91,Default,,0000,0000,0000,,So this is a Spice program, Dialogue: 0,0:03:55.91,0:03:59.89,Default,,0000,0000,0000,,which means you actually have\Nto give it a Spice directive. Dialogue: 0,0:03:59.89,0:04:05.21,Default,,0000,0000,0000,,And the way that you do that\Nis draft a Spice directive. Dialogue: 0,0:04:07.56,0:04:09.44,Default,,0000,0000,0000,,And it'll give you this. Dialogue: 0,0:04:09.44,0:04:10.67,Default,,0000,0000,0000,,You just type in the directive. Dialogue: 0,0:04:10.67,0:04:14.43,Default,,0000,0000,0000,,If you don't know Spice directives,\Nwhich you shouldn't know, Dialogue: 0,0:04:14.43,0:04:16.45,Default,,0000,0000,0000,,unless you've used Spice before. Dialogue: 0,0:04:16.45,0:04:19.16,Default,,0000,0000,0000,,Then you can actually go like this. Dialogue: 0,0:04:19.16,0:04:24.00,Default,,0000,0000,0000,,Help me, and\Nyou can do step which is to step Dialogue: 0,0:04:24.00,0:04:28.58,Default,,0000,0000,0000,,through values, or just do an analyse. Dialogue: 0,0:04:31.87,0:04:37.02,Default,,0000,0000,0000,,So Transient is if you want to run\Nover a certain amount of time. Dialogue: 0,0:04:37.02,0:04:39.63,Default,,0000,0000,0000,,For this analysis we're doing, Dialogue: 0,0:04:39.63,0:04:43.93,Default,,0000,0000,0000,,we just wanna find what's\Ncalled an operating point. Dialogue: 0,0:04:43.93,0:04:46.62,Default,,0000,0000,0000,,And it's over here, DC bias point. Dialogue: 0,0:04:46.62,0:04:52.81,Default,,0000,0000,0000,,And it tells you how the syntax for\Nthat, all it requires is this .op. Dialogue: 0,0:04:52.81,0:04:57.08,Default,,0000,0000,0000,,So if you wanted to do transient for\Nexample, the syntax for that is .tran, and Dialogue: 0,0:04:57.08,0:05:00.86,Default,,0000,0000,0000,,then you have to enter all these options,\Nwhatever options you want. Dialogue: 0,0:05:00.86,0:05:02.50,Default,,0000,0000,0000,,So time to stop. Dialogue: 0,0:05:02.50,0:05:06.39,Default,,0000,0000,0000,,So how much time do you\Nwant it to run for? Dialogue: 0,0:05:06.39,0:05:09.47,Default,,0000,0000,0000,,Let's say we want it to run for\None second. Dialogue: 0,0:05:09.47,0:05:12.04,Default,,0000,0000,0000,,And that's really all,\Nall the rest of these are options. Dialogue: 0,0:05:12.04,0:05:15.72,Default,,0000,0000,0000,,You can add all these extra\Nthings in here as options. Dialogue: 0,0:05:15.72,0:05:17.58,Default,,0000,0000,0000,,So I can run this for one second. Dialogue: 0,0:05:17.58,0:05:21.82,Default,,0000,0000,0000,,But I don't need a transient on this\Nbecause it's just going to be boring, Dialogue: 0,0:05:21.82,0:05:22.90,Default,,0000,0000,0000,,nothing going on. Dialogue: 0,0:05:22.90,0:05:26.92,Default,,0000,0000,0000,,But I do want to find the point at\Nwhich I'm trying to find the value, Dialogue: 0,0:05:26.92,0:05:29.04,Default,,0000,0000,0000,,the operating point it's called. Dialogue: 0,0:05:29.04,0:05:32.30,Default,,0000,0000,0000,,For this particular, I'll show you\Nanother option when we get to it. Dialogue: 0,0:05:32.30,0:05:36.15,Default,,0000,0000,0000,,So this is called the spice directive, Dialogue: 0,0:05:36.15,0:05:40.94,Default,,0000,0000,0000,,just place that in there and\Nthis will run [COUGH]. Dialogue: 0,0:05:40.94,0:05:46.84,Default,,0000,0000,0000,,And Mac, for some reason\Nmaximizes these when I run them. Dialogue: 0,0:05:46.84,0:05:52.82,Default,,0000,0000,0000,,It does the same thing with MatLab for\Nsome reason, on figures. Dialogue: 0,0:05:52.82,0:05:54.96,Default,,0000,0000,0000,,So there's nothing going on, right? Dialogue: 0,0:05:54.96,0:05:55.60,Default,,0000,0000,0000,,Doesn't look like it. Dialogue: 0,0:05:55.60,0:06:00.23,Default,,0000,0000,0000,,So when you go over, hover over\Nyour circuit, you can put a probe. Dialogue: 0,0:06:00.23,0:06:05.48,Default,,0000,0000,0000,,And notice up here on the top it\Ntells you where that location is. Dialogue: 0,0:06:05.48,0:06:10.08,Default,,0000,0000,0000,,So you're measuring voltage at node 002. Dialogue: 0,0:06:10.08,0:06:15.62,Default,,0000,0000,0000,,N is not node, in fact, it's net,\Nso these are all called nets. Dialogue: 0,0:06:15.62,0:06:18.81,Default,,0000,0000,0000,,So this is net 001. Dialogue: 0,0:06:18.81,0:06:20.52,Default,,0000,0000,0000,,So this is a voltage probe, Dialogue: 0,0:06:20.52,0:06:25.79,Default,,0000,0000,0000,,which means you're measuring the voltage\Nat this location with respect to ground. Dialogue: 0,0:06:25.79,0:06:27.30,Default,,0000,0000,0000,,Any time you see one probe, Dialogue: 0,0:06:27.30,0:06:30.85,Default,,0000,0000,0000,,it's always with respect to\Nthe common of your entire circuit. Dialogue: 0,0:06:32.49,0:06:34.34,Default,,0000,0000,0000,,So also, you see this? Dialogue: 0,0:06:34.34,0:06:37.92,Default,,0000,0000,0000,,This is an ammeter and\Nit gives you the arrow here. Dialogue: 0,0:06:37.92,0:06:42.47,Default,,0000,0000,0000,,It's telling you that it's measuring the\Ncurrent going through the resistor down Dialogue: 0,0:06:42.47,0:06:43.65,Default,,0000,0000,0000,,towards the ground. Dialogue: 0,0:06:43.65,0:06:45.20,Default,,0000,0000,0000,,And we can see this. Dialogue: 0,0:06:45.20,0:06:49.37,Default,,0000,0000,0000,,That's also the same direction,\Nsame direction, same direction, and Dialogue: 0,0:06:49.37,0:06:53.20,Default,,0000,0000,0000,,sometimes you'll notice that when\Nit doesn't give you the arrow, Dialogue: 0,0:06:53.20,0:06:55.71,Default,,0000,0000,0000,,it's actually measuring into the device. Dialogue: 0,0:06:55.71,0:06:58.34,Default,,0000,0000,0000,,So if it didn't give you the arrow here, Dialogue: 0,0:06:58.34,0:07:02.77,Default,,0000,0000,0000,,then it would actually be measuring\Nthe current into the resistor. Dialogue: 0,0:07:02.77,0:07:06.65,Default,,0000,0000,0000,,So it would be opposite of this\Narrow as it sees right here. Dialogue: 0,0:07:06.65,0:07:08.15,Default,,0000,0000,0000,,So let's measure the voltage right here. Dialogue: 0,0:07:09.78,0:07:11.66,Default,,0000,0000,0000,,Here you go. Dialogue: 0,0:07:11.66,0:07:17.48,Default,,0000,0000,0000,,So it's five volts and we didn't give\Nit any directive for the x axis so Dialogue: 0,0:07:17.48,0:07:23.32,Default,,0000,0000,0000,,it's just arbitrarily showing it\Ngoing on for the whole, whatever. Dialogue: 0,0:07:25.03,0:07:28.71,Default,,0000,0000,0000,,So that's it for\Nhow you do an analysis for Dialogue: 0,0:07:28.71,0:07:32.50,Default,,0000,0000,0000,,just a DC operating point, it's called. Dialogue: 0,0:07:32.50,0:07:37.74,Default,,0000,0000,0000,,Now what if we wanted to sweep through\Ndifferent values of resistances here? Dialogue: 0,0:07:37.74,0:07:43.81,Default,,0000,0000,0000,,So make sure you're hovered\Nover this one to get rid of it. Dialogue: 0,0:07:43.81,0:07:47.04,Default,,0000,0000,0000,,So I wanna get rid of this, actually I\Ncan just delete that in a minute here. Dialogue: 0,0:07:47.04,0:07:50.09,Default,,0000,0000,0000,,I just right-click on\Nthis to change this guy. Dialogue: 0,0:07:50.09,0:07:52.60,Default,,0000,0000,0000,,So now I wanna sweep through this, so Dialogue: 0,0:07:52.60,0:07:56.50,Default,,0000,0000,0000,,I'll have to create a variable\Nwhich is in curly braces. Dialogue: 0,0:07:56.50,0:07:58.79,Default,,0000,0000,0000,,You give that value in curly braces, and Dialogue: 0,0:07:58.79,0:08:01.71,Default,,0000,0000,0000,,then you can call it later\Nin your Spice directive. Dialogue: 0,0:08:01.71,0:08:04.43,Default,,0000,0000,0000,,So I think I can just right-click on this,\Nyeah. Dialogue: 0,0:08:04.43,0:08:09.95,Default,,0000,0000,0000,,So I can actually, Let's see. Dialogue: 0,0:08:09.95,0:08:13.92,Default,,0000,0000,0000,,Ctrl + Return gets me to a new line. Dialogue: 0,0:08:13.92,0:08:15.52,Default,,0000,0000,0000,,So let's say I wanna do this. Dialogue: 0,0:08:15.52,0:08:19.05,Default,,0000,0000,0000,,This line here I want to do a sweep. Dialogue: 0,0:08:19.05,0:08:20.05,Default,,0000,0000,0000,,And it's not in the analysis. Dialogue: 0,0:08:20.05,0:08:24.06,Default,,0000,0000,0000,,It's up here in this step. Dialogue: 0,0:08:24.06,0:08:25.70,Default,,0000,0000,0000,,Step, sweep same thing. Dialogue: 0,0:08:25.70,0:08:30.95,Default,,0000,0000,0000,,So name of parameter to\Nsweep is gonna be R. Dialogue: 0,0:08:30.95,0:08:34.78,Default,,0000,0000,0000,,[COUGH] Nature of sweep let's just do, Dialogue: 0,0:08:39.45,0:08:42.92,Default,,0000,0000,0000,,Decade is every multiple of 10. Dialogue: 0,0:08:42.92,0:08:50.04,Default,,0000,0000,0000,,Start value let's start at .1 And\Nlet's stop at 100K. Dialogue: 0,0:08:50.04,0:08:53.95,Default,,0000,0000,0000,,Number of points per decade,\N10 sounds reasonable. Dialogue: 0,0:08:53.95,0:08:58.82,Default,,0000,0000,0000,,And it's showing you how you would\Ntype this directive here if you didn't Dialogue: 0,0:08:58.82,0:08:59.86,Default,,0000,0000,0000,,use this tool. Dialogue: 0,0:08:59.86,0:09:03.26,Default,,0000,0000,0000,,So I could have just typed this out. Dialogue: 0,0:09:03.26,0:09:10.62,Default,,0000,0000,0000,,Okay, and\Nit got rid of my other directive. Dialogue: 0,0:09:10.62,0:09:12.30,Default,,0000,0000,0000,,So let's see if I can. Dialogue: 0,0:09:14.84,0:09:19.52,Default,,0000,0000,0000,,[COUGH] Actually, I'm not even\Nsure if I need that .LP anymore. Dialogue: 0,0:09:19.52,0:09:22.31,Default,,0000,0000,0000,,Let's try this. Dialogue: 0,0:09:22.31,0:09:23.42,Default,,0000,0000,0000,,No analysis command, right? Dialogue: 0,0:09:23.42,0:09:24.33,Default,,0000,0000,0000,,So you have to do an operate. Dialogue: 0,0:09:24.33,0:09:25.66,Default,,0000,0000,0000,,You have to do some sort of analysis. Dialogue: 0,0:09:25.66,0:09:30.85,Default,,0000,0000,0000,,This is just telling you what\Nsort of parameterization do do. Dialogue: 0,0:09:30.85,0:09:36.35,Default,,0000,0000,0000,,But it doesn't give you\Nthe analysis direction. Dialogue: 0,0:09:36.35,0:09:39.86,Default,,0000,0000,0000,,So you have to do this dot op for\Nthis particular type. Dialogue: 0,0:09:39.86,0:09:40.40,Default,,0000,0000,0000,,There is no need. Dialogue: 0,0:09:40.40,0:09:45.10,Default,,0000,0000,0000,,I don't think there is\Nany need in doing a time. Dialogue: 0,0:09:45.10,0:09:45.96,Default,,0000,0000,0000,,Let's see if it works. Dialogue: 0,0:09:49.92,0:09:54.04,Default,,0000,0000,0000,,So you can actually add traces here. Dialogue: 0,0:09:54.04,0:09:57.49,Default,,0000,0000,0000,,It tells you what all\Nthe possible values are. Dialogue: 0,0:09:57.49,0:10:03.63,Default,,0000,0000,0000,,And if I remember right,\Nit was Vn002, right? Dialogue: 0,0:10:03.63,0:10:07.51,Default,,0000,0000,0000,,So you look at the the x-axis here, Dialogue: 0,0:10:07.51,0:10:13.98,Default,,0000,0000,0000,,it's sweeping between 0.1\Nkiloohm to 100 kiloohm. Dialogue: 0,0:10:13.98,0:10:17.99,Default,,0000,0000,0000,,And then you can see that the voltage at\Nthat node is gradually increasing as we Dialogue: 0,0:10:17.99,0:10:19.60,Default,,0000,0000,0000,,swoop through that resistor. Dialogue: 0,0:10:23.44,0:10:28.27,Default,,0000,0000,0000,,So what if we wanted to adjust both\Nthese resistors at the same time, Dialogue: 0,0:10:28.27,0:10:30.65,Default,,0000,0000,0000,,complementarity to each other? Dialogue: 0,0:10:30.65,0:10:35.20,Default,,0000,0000,0000,,So in other words,\Nas this one sweeps through values Dialogue: 0,0:10:35.20,0:10:39.53,Default,,0000,0000,0000,,going from almost 0,\Nwhich I didn't do 0 here, Dialogue: 0,0:10:39.53,0:10:45.24,Default,,0000,0000,0000,,because, Spice complains for\Ndoing zero resistances. Dialogue: 0,0:10:45.24,0:10:47.53,Default,,0000,0000,0000,,You have to just choose\Nsomething really small. Dialogue: 0,0:10:47.53,0:10:51.52,Default,,0000,0000,0000,,So if we want to sweep this one\Nthe same as it's sweeping now, but Dialogue: 0,0:10:51.52,0:10:54.43,Default,,0000,0000,0000,,we want to sweep this\None complementing that. Dialogue: 0,0:10:54.43,0:10:55.56,Default,,0000,0000,0000,,So this one increases. Dialogue: 0,0:10:55.56,0:10:58.47,Default,,0000,0000,0000,,R2 increases, while R1 decreases. Dialogue: 0,0:10:58.47,0:11:01.63,Default,,0000,0000,0000,,But so that the sum of\Nthe two is always the same. Dialogue: 0,0:11:01.63,0:11:04.18,Default,,0000,0000,0000,,That's called a potentiometer. Dialogue: 0,0:11:04.18,0:11:11.74,Default,,0000,0000,0000,,So, I've got a potentiometer made, Dialogue: 0,0:11:11.74,0:11:18.05,Default,,0000,0000,0000,,unfortunately it's not\Nincluded in the Spice library, Dialogue: 0,0:11:18.05,0:11:24.78,Default,,0000,0000,0000,,so before I can use it I have to\Nknow where to put those models. Dialogue: 0,0:11:24.78,0:11:29.46,Default,,0000,0000,0000,,But you guys just go to Canvas and\Ndownload the model for the plot. Dialogue: 0,0:11:29.46,0:11:33.22,Default,,0000,0000,0000,,And you have to know where to put\Nthe model for Spice to find it. Dialogue: 0,0:11:33.22,0:11:37.81,Default,,0000,0000,0000,,And it's not straightforward,\Ncuz you don't want to put it in Spice's Dialogue: 0,0:11:37.81,0:11:41.64,Default,,0000,0000,0000,,library cuz otherwise when you\Ngo update Spice's library, Dialogue: 0,0:11:41.64,0:11:45.64,Default,,0000,0000,0000,,then it doesn't know that the plot exists,\Nit just erases it. Dialogue: 0,0:11:45.64,0:11:50.50,Default,,0000,0000,0000,,So the easiest way to do\Nthis is just to save. Dialogue: 0,0:11:50.50,0:11:54.42,Default,,0000,0000,0000,,And then,\Njust keep track of where it saves to. Dialogue: 0,0:11:54.42,0:11:58.52,Default,,0000,0000,0000,,See, this saves to Documents, Dialogue: 0,0:11:58.52,0:12:03.68,Default,,0000,0000,0000,,this is My Documents folder, LTspice. Dialogue: 0,0:12:03.68,0:12:09.04,Default,,0000,0000,0000,,So LTspice actually creates\Nthis extra folder for you. Dialogue: 0,0:12:09.04,0:12:13.04,Default,,0000,0000,0000,,And notice down here I already had the\Npart here cuz I already knew where it went Dialogue: 0,0:12:13.04,0:12:14.90,Default,,0000,0000,0000,,but you wouldn't have known this. Dialogue: 0,0:12:14.90,0:12:21.67,Default,,0000,0000,0000,,So test circ, so you just need to\Nkeep track of where that is so Dialogue: 0,0:12:21.67,0:12:25.94,Default,,0000,0000,0000,,you can go place those items in there. Dialogue: 0,0:12:25.94,0:12:30.89,Default,,0000,0000,0000,,And if we can look at that again,\NI'll show you what those items mean. Dialogue: 0,0:12:30.89,0:12:37.76,Default,,0000,0000,0000,,So this plot.asy, that a symbol that\Njust describes what it looks like. Dialogue: 0,0:12:37.76,0:12:39.67,Default,,0000,0000,0000,,And then this asc, that's a circuit. Dialogue: 0,0:12:43.12,0:12:45.90,Default,,0000,0000,0000,,So I'll show you what they\Nlook like in a second here. Dialogue: 0,0:12:45.90,0:12:49.40,Default,,0000,0000,0000,,So if we want to place that component now, Dialogue: 0,0:12:49.40,0:12:53.32,Default,,0000,0000,0000,,now we have those\Ncomponents available here. Dialogue: 0,0:12:53.32,0:12:56.02,Default,,0000,0000,0000,,So place the pot. Dialogue: 0,0:12:58.57,0:13:01.76,Default,,0000,0000,0000,,Escape wire is F3, Dialogue: 0,0:13:07.27,0:13:11.62,Default,,0000,0000,0000,,And in order to be able to probe this\Ncenter off, I have to put a wire. Dialogue: 0,0:13:11.62,0:13:15.08,Default,,0000,0000,0000,,It doesn't probe directly to that pin. Dialogue: 0,0:13:15.08,0:13:17.55,Default,,0000,0000,0000,,So now I can go up here. Dialogue: 0,0:13:17.55,0:13:19.41,Default,,0000,0000,0000,,I right-click on this and Dialogue: 0,0:13:19.41,0:13:23.99,Default,,0000,0000,0000,,it gives me the default values\Nthat I have programmed into this. Dialogue: 0,0:13:23.99,0:13:28.48,Default,,0000,0000,0000,,This particular model, I've programmed\Nthe default values into it. Dialogue: 0,0:13:28.48,0:13:35.01,Default,,0000,0000,0000,,But in order to sweep, we're gonna\Nwant to sweep these values, and Dialogue: 0,0:13:35.01,0:13:42.48,Default,,0000,0000,0000,,this val parameter changes the percentage\Nof the bottom relative to the top. Dialogue: 0,0:13:42.48,0:13:46.02,Default,,0000,0000,0000,,So you can call this anything,\Nbut I'm calling it slider. Dialogue: 0,0:13:46.02,0:13:50.41,Default,,0000,0000,0000,,And then you can change this as\Nwell to whatever value you need. Dialogue: 0,0:13:50.41,0:13:54.31,Default,,0000,0000,0000,,And let's open the schematic. Dialogue: 0,0:13:54.31,0:13:57.25,Default,,0000,0000,0000,,So this is what I drew\Njust using two resistors. Dialogue: 0,0:13:57.25,0:14:03.49,Default,,0000,0000,0000,,And then I set these R23 and\NR13 as parameters that are, Dialogue: 0,0:14:03.49,0:14:11.36,Default,,0000,0000,0000,,these are just Spice directives that\Ndetermine how this model functions. Dialogue: 0,0:14:11.36,0:14:16.47,Default,,0000,0000,0000,,And you can see that R13 is equal to\Nsome minimal value, so I never hit 0. Dialogue: 0,0:14:16.47,0:14:21.21,Default,,0000,0000,0000,,Plus, these values that are variables. Dialogue: 0,0:14:21.21,0:14:24.94,Default,,0000,0000,0000,,And it gets kinda confusing because\Nthese ones have to be in braces, but Dialogue: 0,0:14:24.94,0:14:29.07,Default,,0000,0000,0000,,these ones can't be in braces because\Nthis is a mathematical operation here. Dialogue: 0,0:14:29.07,0:14:35.38,Default,,0000,0000,0000,,So this directive on the bottom is saying\Nsome percentage of the total R, right? Dialogue: 0,0:14:35.38,0:14:41.01,Default,,0000,0000,0000,,So this val has to be 0 to 100, so\Nthat it gives you some percentage. Dialogue: 0,0:14:41.01,0:14:43.51,Default,,0000,0000,0000,,And then this is one minus that. Dialogue: 0,0:14:43.51,0:14:47.48,Default,,0000,0000,0000,,So you're always getting something\Nbetween 0 to 1 multiplied by this R. Dialogue: 0,0:14:49.79,0:14:54.84,Default,,0000,0000,0000,,So that's the circuit schematic. Dialogue: 0,0:14:54.84,0:14:56.24,Default,,0000,0000,0000,,And that's what gives it. Dialogue: 0,0:14:56.24,0:14:59.07,Default,,0000,0000,0000,,And there's also the symbol. Dialogue: 0,0:14:59.07,0:15:03.12,Default,,0000,0000,0000,,And the symbol is just a drawing. Dialogue: 0,0:15:03.12,0:15:07.26,Default,,0000,0000,0000,,[COUGH] And there's no directives, Dialogue: 0,0:15:07.26,0:15:12.12,Default,,0000,0000,0000,,I created this instance name so you knew\Nwhat the name was when you created it. Dialogue: 0,0:15:12.12,0:15:13.91,Default,,0000,0000,0000,,See, this name is X1. Dialogue: 0,0:15:17.93,0:15:22.06,Default,,0000,0000,0000,,Okay, so I've created the step perimeter, Dialogue: 0,0:15:22.06,0:15:27.73,Default,,0000,0000,0000,,I've called it slider, so\Nlet's change this to the slider. Dialogue: 0,0:15:30.24,0:15:35.62,Default,,0000,0000,0000,,And we're gonna step slider, Dialogue: 0,0:15:38.23,0:15:42.98,Default,,0000,0000,0000,,Through 0 to 100 in Dialogue: 0,0:15:42.98,0:15:47.48,Default,,0000,0000,0000,,increments of 10. Dialogue: 0,0:15:49.90,0:15:54.33,Default,,0000,0000,0000,,And then Ctrl + Dialogue: 0,0:15:54.33,0:15:58.78,Default,,0000,0000,0000,,Enter .OP.. Dialogue: 0,0:15:58.78,0:16:00.11,Default,,0000,0000,0000,,Okay let's see if that works. Dialogue: 0,0:16:02.37,0:16:08.22,Default,,0000,0000,0000,,And we wanna see that\Ncenter voltage again. Dialogue: 0,0:16:08.22,0:16:13.05,Default,,0000,0000,0000,,Let's go,\Nsomehow it didn't actually save this. Dialogue: 0,0:16:16.06,0:16:19.30,Default,,0000,0000,0000,,Okay, let's do that again. Dialogue: 0,0:16:19.30,0:16:21.77,Default,,0000,0000,0000,,Okay now it's working. Dialogue: 0,0:16:21.77,0:16:28.01,Default,,0000,0000,0000,,Okay let's step through 10 increments\Nfrom 0 and went 0, 10, 20, 30, 40, so on. Dialogue: 0,0:16:28.01,0:16:31.90,Default,,0000,0000,0000,,And it's measuring the voltage here so you\Ncan see that that voltage is increasing as Dialogue: 0,0:16:31.90,0:16:34.70,Default,,0000,0000,0000,,we're increasing the bottom\Nresistor relative to the top. Dialogue: 0,0:16:34.70,0:16:38.66,Default,,0000,0000,0000,,And it goes all the way from 0\Nto 10 volts now instead of 5. Dialogue: 0,0:16:38.66,0:16:42.90,Default,,0000,0000,0000,,So there's numerous different directives\Nthat you can use but don't get buried and Dialogue: 0,0:16:42.90,0:16:44.11,Default,,0000,0000,0000,,doing the directives. Dialogue: 0,0:16:44.11,0:16:51.18,Default,,0000,0000,0000,,This first semester is not for spending\Ntoo much time on directives, just minimal. Dialogue: 0,0:16:51.18,0:16:54.34,Default,,0000,0000,0000,,There's just gonna be a minimal subset. Dialogue: 0,0:16:54.34,0:17:00.99,Default,,0000,0000,0000,,But you can,\Nyou can see what those directors mean, Dialogue: 0,0:17:00.99,0:17:04.61,Default,,0000,0000,0000,,that view Spice net list, so Dialogue: 0,0:17:04.61,0:17:09.90,Default,,0000,0000,0000,,this is the description of that circuit, Dialogue: 0,0:17:09.90,0:17:13.68,Default,,0000,0000,0000,,in code, this is spice code. Dialogue: 0,0:17:13.68,0:17:20.100,Default,,0000,0000,0000,,So its saying that there was a sub-circuit\Nwithin this guy, that is this R1, R2. Dialogue: 0,0:17:20.100,0:17:26.30,Default,,0000,0000,0000,,That's the circuit within here, Dialogue: 0,0:17:26.30,0:17:29.05,Default,,0000,0000,0000,,you have, okay. Dialogue: 0,0:17:29.05,0:17:35.11,Default,,0000,0000,0000,,So this is the value of using this\Nparticular software is that you're gonna Dialogue: 0,0:17:35.11,0:17:40.59,Default,,0000,0000,0000,,be introduced to doing these types\Nof things which is what you really Dialogue: 0,0:17:40.59,0:17:47.44,Default,,0000,0000,0000,,need to learn going on with your education\Nif you're gonna do anything in circuits. Dialogue: 0,0:17:47.44,0:17:50.40,Default,,0000,0000,0000,,This has taken plenty of time though.