Tác giả giữ toàn bộ bản quyền (All Rights Reserved) — không phải giấy phép mở. Bạn vẫn xem và học miễn phí trên OpenER; muốn tái sử dụng cần xin phép tác giả.
PROFESSOR
Okay, welcome. Welcome to the second lecture of module 2 of EE16.
I see we have fewer faces this time than last I optimistically attribute this to the midterm, which from initial feedback I understand went really well.
So I'm sure Professor [INAUDIBLE] is extremely happy about that, and so I'm sure are you.
OK, so second module, lecture 2, we are talking about circuits.
Our big goal is to design a touchscreen, just like the one that some of you see I see actually perusing right now.
But before we jump right back into this, today we are going to sort of a technique, or a language if you want, for analyzing circuits that we are going to use throughout whenever we deal with circuits.
So this is really important.
You need to learn how to do that, and there are several ways to do that, so we make it hopefully easy for you so that you all can learn this language.
Obviously, in the lecture today, I will explain what's going on. There is also a handout on the web.
It's actually posted on last week's lecture, but it's called node voltage analysis, NVA. So the NVA notes or something like that on the website, so that's something you probably want to download.
There is a completely worked out example there. And so that is probably going to be of help. Then we are also going to talk about this technique in the discussions.
And, of course, there's going to be plenty of homework problems.
So, again, this is important because you need to understand this in order to be successful in the rest, do all the other interesting stuff, more interesting stuff.
So what is this? What do we want to do? Well, we have a circuit like this one. And we want to know all the node voltages.
We talked briefly about node voltages at the end of last lecture. Let me repeat that.
So we are not going to analyze here a circuit that is quite so complicated like the one in the handout. We use something a little bit simpler.
So we have a world source in our simple example circuit. The voltage source and then we have two resistors.
So they have a value, let's say, for 1 and 2. So there's two resistors.
So the goal of this method of this node voltage analysis missive is to figure it out all the voltages and all the currents in this circuit. Okay?
And the approach — so the overall approach, of course, is that we're going to use equations.
No big surprise, right? And we have Kirchhoff's equations.
And we also have component equations, like Ohm's law.
And, of course, if we have more components, there may be other equations also like this type, those orders.
So that's basically our ingredients that we will do this analysis with.
Now, if you look at that, you will quickly find out that, wonderful, you can actually write down a very large number of equations.
And you will find if you do that, arbitrarily you will find that, first of all, you have more equations than you need. And, secondly, they are not too surprisingly linear dependent on each other.
We don't want that. So what we want is a technique that gives us just the right number of equations that we need to solve for a problem.
And, also, if we can help it, sort of the minimum or close to the minimum number of equations to solve a particular problem.
So a technique that does this is called a node voltage analysis. So that's the technique.
So I should say there are lots of ways to do that. And, in fact, the technique that we are using this semester is slightly different from the technique that was taught last semester.
But the result is the same.
So the technique is called node voltage analysis, or for short, NVA.
Oh, did I change the size of something. Okay, well, yes. Okay, node voltage analysis.
Now, the name, it will make sense in just a moment, because the technique clearly gives us the node voltages.
So the other thing I should say that's important is that this is sort of one of these mind numbing techniques. It's like a computer program.
In fact, there were seven or eight steps that you just have to go through. And not surprisingly, some people already wrote up this technique in a computer program.
In fact, there's lot of computer programs that can do this. The most famous one is called SPICE. And you know where it has been invented?
STUDENT
Berkeley PROFESSOR: Berkeley, right, in Cory Hall. Professor Peterson and some co-workers they invented that. And it really has been a boon for the industry, because it allows us to analyze very complicated circuits.
Without that, there wouldn't be any smart phones today.
So it's a technique that we can sort of apply like a computer.
So now again, we're going can analyze this particular circuit here as an example. And we are going to proceed in technique — in steps. So it's like a procedure.
Or if you prefer, you can call it a program.
So there is a step 1.
So if we want to know something about node voltages, what is the very first thing we need to do?
Well, if I wanted to know the voltage at this particular node here in the circuit, would it have a value?
STUDENT
No.
PROFESSOR
Why not?
Okay, I think I read it off the lips of somebody already. So the reason is that there is no reference node. Without the reference node, it's like sort of asking how tall is Mt.
Everest.
If you don't have any notion of sea level or any some other useful reference — well, we all use sea level for altitude — if you don't have a reference, it's moot to us how tall is it.
How tall compared to what? Okay, compared to your reference. So the step one is choose reference.
And we do that by drawing somewhere in our circuit this nice little inverted Christmas tree. This is our reference. We could have chosen another node. In this circuit there are actually how many nodes?
Well, there is one here that I just marked. There is the node between the two resister. And there is also the node at the top. Three nodes.
I could have chosen any one of these three notes as reference. It doesn't matter. It's just afterwards we get node voltages with respect to that point.
Like it's choosing sea level somewhere else.
So step 2, mark known node voltages.
So which node voltages are known? Well, sort of obvious one is the reference. It's 0 volts, right, by definition. So we're not really going to have to mark that one.
But there is an other node voltage that would be very easy to say what the value is. Let's say that this voltage source the value is, let's say, 5 volts or something.
Can you see one of the nodes where we see right away what the voltage would be?
Well, the node that is connected to this voltage source — this one here — well, here, if we have 0 on the voltage source in between is 5 volts, then this node up here, Vs — I call it also Vs — is then also 5 volts.
Not too surprising. Okay? Fine, so there is one more node. Do we know the voltage at the additional node here, at this node here?
Do we know the node voltage at the red node? We don't know that. Okay, so we are done with step 2, and we can move onto step 3.
Node voltages, unknown this time. Okay?
STUDENT
Can't read it.
PROFESSOR
Oh, thank you.
Okay, so unknown voltages, well, we've already said that there's this one here. I call it Vn1 so that I remember.
And I also put it in red so I remember, hey, this is something that I don't know and I would like to find out. That's the whole point of this node voltage analysis.
So incidentally, what does it mean this Vn1 here?
Well, what it really means is that the voltage between this node and the reference, this one here, this voltage here is Vn1. That's the meaning of node voltage.
So node voltage basically is a shorthand that we don't have to indicate where the plus and minus is.
The plus is always at the node that has the particular node voltage, Vn1 in this case. And the minus is always where reference is, the inverted Christmas tree.
So this was easy. So now we finally — you see that these steps are really meant for computer.
Step 4, KCL. Anybody remembers what KCL stands for?
STUDENT
Kirchhoffs Current Law.
PROFESSOR
Kirchhoffs Current Law. So we're now going to write Kirchhoffs current law for all unknown.
For all the unknowns. So obviously, we need to have an equation for all the unknowns. So that kind of automatically does this for — ooh, actually, you know what?
This is going to be step 5. I went ahead of myself. So step 4 — sorry about that — it's more tedious.
So step 4 is mark element voltages and currents.
For all the elements, we will mark the voltages and currents. So, for example, we have resistor R1. We have to mark the voltage in the current. So which direction does the current go in?
Does it go down? Who is for the current should go down?
Who is for the current to go up? And who says it does not matter? Okay, I agree. It doesn't matter.
You can pick. So should we pick current up, current down?
STUDENT
Down.
PROFESSOR
Down, okay, make it down. We make that the current goes down. So that's IR1. And we pick it that it goes down.
We could have picked it to go up. And we go through the entire procedure. And we got exactly the same results.
So, now, the voltage across R1, there, we are using this thing that's called passive sign convention. What is passive sign convention?
Well, passive sign convention simply says that the voltage direction is the same as the current direction. So the plus has to be here, and the minus has to be here.
And so this is VR1. So once you pick one of either the current or the voltage, that's it, no more choices.
The other thing that's important — and you can see I taught circuits for a few times already — the other time, it should be obvious, right?
Once you've made your choice, you can't change it anymore. I mean, you can if you start again at the beginning.
But once you've made a choice, in the middle of the calculation, then you go and change the direction of your arrows, you'll get all the garbage results, obviously.
So we also need to mark the element voltages for R2.
Do you want to cut it to go up or down?
I haven't quite heard. But let's pick this one that it goes up, just for the heck of it.
You can pick the opposite, and in the end, we compare — oop, I made a mistake. The voltage needs to go in the same direction. So this is now a big fat minus.
So this is VR2. This is a minus.
All right, now we are at step 5. Well, we already wrote down what step 5 is. KCL equation for all nodes with unknown node voltages. So fortunately, I marked those in red.
And fortunately also, there is just one of them. So we have only one KCL equation to write. Well, what is KCL?
KCL simply says the sum of all parents leaving the node is equal to the sum of all currents entering the node.
So now, there seem to be two currents coming out of this node, IR1 and IR2. And they're both leaving.
So the sum of these two currents — IR1 plus IR2 equals 0.
All right, so then, I think in the notes this is step 6.
Whatever. So now, we are going to — is there a question about this? Anybody unsure?
Both of these currents, because we have declared IR1 going down — so it goes out of node VN1 — and IR2 going up, it also goes out of node VN1.
We have to add all these currents that are leaving the node together. And their sum must be equal to all the currents entering the node. Well, there is no current coming into the node.
Consequently, the sum must be 0. So that's what we wrote here? Okay? Agree?
So now, we are going to step 6.
Step 6, now we are going to write component equations.
We're going to write component equations for all the components that are connected to our different — or in this case, just one unknown node voltages.
So these R1 and R2 in this case.
So we're going to write the IR1 equals — well, that's just Ohm's law now — VR1 over R1.
And likewise, IR2, VR2 over R2.
And so incidentally, just a quick remark here, here, it's important that we use passive sign convention. Because if you don't use passive sign convention, these equations can change.
In particular, if you did that for resistor, then suddenly Ohm's Law would be IR equals minus VR over R. So just take with passive sign convention.
Then you don't need to worry about this stuff.
So now we are going to replace the element voltages, VR1 and VR2.
We are going to replace those with node voltages. Why do we do that? Well, the node voltages are unknown. We are going to solve for those.
But VR1 and VR2 are just yet other things. And we don't want to have them show up in our equation. So replace component voltages.
So in, for example, VR1 and VR2 with node voltages.
So VN1 and there could be, of course, other ones. In this particular case, there are not.
So how would we represent VR1 with node voltages?
Well, where is VR1, well, VR1 — let me use a different color — VR1, that's this branch here.
So it is connected between node VN1 — that's at the plus terminal — and 0. So VR1 is actually equal to VN1 — the one at the plus — minus 0.
Or that, of course, is just VN1. And exactly the same, we can also do for VR2. That is equal — where the plus sign? The plus, well, that is connected to VN1.
So it's VN1 also minus — well, what's the other side here? Well, that's the node voltage VS.
STUDENT
Can't read it.
PROFESSOR
Thank you. Okay, so we have the two component voltages expressed in terms of node voltages now.
So then we substitute — now I'm going to move down a little bit again. What do we substitute in? Well, we substitute into our component current equations. So I move this up again.
But I'm going to rewrite. IR1, one I copied from above. That was VR1 over R1. I just copy so that you can see the whole thing.
And so VR1 is now VN1 — minus 0, we're not going to write — R1. And then the exactly same story for IR2.
It's equal to VN1 minus VS over R2.
Fine, so next step, step number 7, I guess.
Step number 7, so now, we have expressions for IR, for the currents as a function of node voltages or unknowns, and also where VS happens to be something we know, the node component values.
And so we have our KCL equation from step 5, just one in this particular simple example. So now we are going to substitute into the KCL equation.
I'm going to write it again down, so that you can see everything.
So we have step — what was it? Step 6 we were at. So this is going to be step 7.
So substitute step 6 into step 5.
So step 5, again, if you look up in your notes was IR1 plus IR2 equal to 0.
And so now we have these expressions up here for IR1 and IR2. And we're simply going to substitute those. So, again, I told you this is mind numbingly trivial.
It's just work. But that's a good thing. Even in an exam, you're a little bit anxious or so, you can't do this. Or late at night, you can do this.
So IR1 is VN1 over R1 plus IR2 is VN1 minus VS over R2 equals 0.
So in this particular case, we only got one equation, because we have only one unknown node voltages in the simple circuit.
Again, in the example and in the homework there's going to be more complicated circuits with more unknowns.
So actually we can see now the only unknown thing in this equation is VN1.
So, of course, we can solve for that with any one of your techniques. And, in fact, so step 8 is solve.
So multiply, for example, both sides with R1 and R2. And then solve for VN1.
I do this — I'm not going to make a stupid algebra mistake in front of you.
VN1 is equal to VS times R1 over R2, R1 plus R2.
So this happens to be the result for this particular example if you solve this. I'll let you. I'll let you do this on your time.
So this is the grand result. And, again, if we had a more complicated circuit, of course, it would be VN2 and VN3 and so on also.
So kind of we were lucky with the example that we picked, because this example, it's not only a good example for node voltage analysis, but actually this result turns out to be very useful.
It's so useful that this actually is called voltage divider.
So the circuit, the circuit that we have here, happens to be called voltage divider. Well, why is it called voltage divider?
Well, if you look at it, we have a source, VS. And then we have a term that is always less than 1, or at most 1.
But generally, it's less than 1, unless R2 is 0. And note the resulting node voltage is the product of the two. So how could this be useful?
Well, suppose you had a battery. And your battery has 5 volts. Easy number, okay.
But in your circuit for some reason, you actually need 3 volts. What you would you do? Well, you could use your battery here. It's 5 volts.
And then you use two resistors. And you choose the value of these resistors such that the voltage in the middle at VN1 is just equal to 3 volts.
So all you need to do is choose appropriate values for R1 and R2. And you can generate any voltage you want as long — what the condition?
It's got to be smaller than VS. This circuit, you cannot use it to jack up the voltage. You can make it smaller, anything that's smaller. And also it has to remain positive.
You cannot flip the sign. You have to flip the wires for that. So this is a voltage divider, and we are going to use this circuit liberally.
In fact, you know, somehow the voltage here depends on the value of these resistors.
So if somebody said that maybe we could build a resistive touch sensor.
So maybe if we somehow could mock around in a way that when we touch these resistors somehow change, then we could use the voltage that they produce as an indication of where we touched our screen.
I mean it sounds a bit nebulous right now. but let's not discount this idea completely. So let's see if there is something we can do about this.
So in order to do that, so let's look at resistors.
What is actually resistor?
So resistor is a little bit like a wire, except that it's made out of something that conducts some current, but not perfectly.
So let's say we make resistor out of a sheet of material. And I try to draw this here in perspective. So hopefully this is going to turn out.
So this our resistor. So this is some material. For example, it could be copper or something else. So it's going to have a length.
It's going to have a length, L. It's going to have a width, W. And it also has a thickness, T. This is our resistor.
So how are we going to use it? Well, we are going to attach two wires, one here and the other one here. And this is our resistor.
So really what we want between the red thing, this thing should act like a resistor.
So the blue is the physical thing, that's this chunk of material, this sort of rectangle of material.
And on the right side in red, we have the circuit symbol for that thing. So now, the question is, what is the value of the resistance?
I'll give you a trick. I never can remember these equations. So I think, how it should work.
Well, if I make the length of this blue box longer, the current has to flow now through a longer piece of material that is resistive.
So do you think the resistance goes up? Or do you think the resistance goes down? Who is for up? It goes up, right.
So L. And then if I make the width of this box, I make it wider, will the resistance go up or will it go down?
STUDENT
Down.
PROFESSOR
It will go down. So it must be dividing by W. And the same thing, of course, if we make it thicker, it also goes down. You could think about it like a highway.
If it's more lanes, probably you get through faster. Longer, well, it takes you more time, whatever. And then there is a proportionality factor. And this is called rho.
Actually, it's called resitivity. The symbol is rho.
And the units, if you just add it, you can figure it out easily, is ohms times meter, units. But that's the unit. So then I downloaded this from the web.
So this is not something you need to copy. In fact, you, Google and you find much longer tables. So but anyways, this is a table that lists a few materials.
And then it lists the resitivity of them. At the top here, we have copper. We all know copper.
The resistivity is very small. That means that it's a very good conductor.
And I guess we shouldn't be surprised because what are the wires that carry all the current through our lights and what not made out of? Well, they're probably made out of copper.
Aluminum is a pretty good conductor also. And actually in all the houses, the wiring is actually out of aluminum. Today, it's no longer allowed. But anyways, it's still a pretty good conductor.
But already it's sort of a knock down. Graphite, well, that's a fancy word for carbon, carbon dust. Your basic coal, right. And, you know, it's a conductor.
But you can see it's like two orders of magnitude or so poorer conductor. So if we want to make a wire, let's use copper.
If you want to make resistors, well, then graphite or again carbon dust is not a bad choice.
And, in fact, many of these resistors like I shown last time that you can buy, they're actually made out of carbon dust, something like that, some type of mixture.
Silicon, well, you know that our chips, our integrated circuits, the stuff that powers the computer, that powers your smart phone and so on, they are made out of silicon.
Silicon is a little bit a special case here. I don't like it too much that it's on this table, because silicon is a semiconductor.
And we are not going to talk about any details about semiconductors.
But just one thing that is so terrific about semiconductors is you can vary the conductivity or the resitivity you can vary that over orders of magnitude.
In fact, by making the silicon a little bit dirty, you can make it that it's pretty much an insulator or it's actually a pretty good conductor.
And so transistors and so on, they use that stuff. But you're not going to get into that. And then there is quartz. Quartz, that's actually silicon dioxide glass.
You probably know this as glass. Well, that's a pretty lousy conductor. In fact, pretty much it's not a conductor. You don't get current flowing through glass.
So the important thing to carry away from this table is that there are lots of materials. There are much longer tables. And you get the resitivity for anything you want.
And if you want to change the value of a resistor, you can choose either a different material that has the different resitivity or you can change dimensions. Make it longer or make it wider.
So that's about resistors.
So we're now getting back to a touch screen.
So what is it that we want to do?
If this is your smartphone or whatever gadget that has a touch screen, well, what we really want is that we sort of think of the touch screen to be divided up into regions that, for example, we could call pixels.
And what we want is that our touch screen tells us, well, this is the point where it has been touched. That's probably obvious to all of you. So that's what we want to do.
We want to know how high up and how far left or right. So now, could we make this out of a resistor?
So actually I have a little bit space left on the right side. So let me try to make this out of a resistor.
We're going to use — no, I'm not going to — nevertheless I'm going to make this more space. So I make this.
This is a resistor. But now this is top view here. Here, that's sort of a perspective view of our resistor. Now, here we are looking simply at the top of our resistor.
It has a width, W. And it has a height, L.
And so, of course, we could figure out if we also know the thickness, which is into the page, we could figure out the resistance. We need to know also what material it is.
But let's not worry about that. So then at the top and at the bottom, we're going to make contact, basic piece of copper or something else that conducts well.
So we can attach to this. So this whole thing now is really going to act like resistor.
So then we can make a circuit out of it. We can, between this node and this node, we can attach a voltage source.
And we going to get current flowing. And if you want to know how much current, well, you can use Ohm's law, VS over R tells you what the current is.
But that's not what we're after now. What we're after is that — let's also define this node as ground.
So it also means that this node here would ground then. So that's our reference. So now that we have a reference, we can ask anywhere in our circuit, what is the voltage?
So I would like to know first what is the voltage here, where my red dot is.
Well, we are just connected to the reference through this piece of green that we said that is going to be well conducting. It's probably copper or something.
So that's like a wire. That means there is no resistance. So the voltage here is actually 0 volts. What about here?
Let's say VS is again very innovative, another 5 volts. What is the voltage up here?
So again, the VS is — the source is actually connected here also. So this is VS plus minus.
So what is the voltage here at the top? Well, we are just at the top side of our voltage source. We said it's 5 volts. So that means that here is 5 volts.
And that the green stuff again, that's a good conductor. So here we also have 5 volts.
This is not a touchscreen yet. But, well, maybe, maybe.
Look, what is the voltage if we, let's say, somehow we stuck a wire in this other — let me make it a little star or a cross.
What's the node voltage at that cross?
It's probably going to be somewhere in between. It's not going to be 0 volts. And it's probably not going to be 5 volts, but somewhere in between. Let's figure out what it would be.
Any ideas on how we could that?
Yes.
STUDENT
[INAUDIBLE] the distance from the zero to that [INAUDIBLE]..
PROFESSOR
Yes.
STUDENT
So you can use that ratio times the [INAUDIBLE]..
PROFESSOR
Okay, so what we hear here is that we somehow should be able to calculate that voltage as a ratio, as a function of where exactly the height of this thing is — actually, let me introduce a coordinate system for this.
So let's call this coordinate y, so it's same as it's going to be in the homework. And this is then Y1. So that's the solution.
And you have great insight, because the solution you propose is actually correct. But let us figure out a way on how to do this.
And so the way we are going to do this is we going to simply break up this rectangle. If you want, we break it up into two pieces.
We sort of do as if the piece at the top was one resistor and the piece at the bottom was another resistor.
And the reason that's a good thing is that then we have a circuit with two resistors. And, heck, that's a voltage divider. We already know how to calculate things with that one.
Okay, so let's do that. So we have now two resistors.
The length of this one, if you want, L1, is going to be equal to y1. And the length of this one, well, that has to be L minus y1.
So now let me just immediately go to the circuit diagram for this. So again, we have our source VS, 5 volts we said.
Then we have the first resistor. And we have the second resistor. Let's also call this voltage here, let's call this V touch.
Make sense? Let's call this again R2 and this one R1, so we are the same as before. And this voltage here is R touch.
Well, that's what we would like to — oh, this is V touch. V touch. And we would like to know what this is. Well, it should be straightforward.
It's a voltage divider. So we can use the voltage divider equation. But in order to use it, we need to know the value of these resistors, R1 and R2.
Well, fortunately, that is easy too.
R1 is equal to rho — whatever that is, whatever material we picked, maybe graphite — times L. Well, that is now y1 over W times T.
And the resistor R2, it's made out of the same material, so same resistivity.
L minus y1 W times T. And, finally, we have the voltage divider equation, V touch is equal to v VS. Anybody remembers what that equation was?
Well, it's always the resistor. Across, we want to know the voltage, which is R1 in this case, because we want to know what is V touch.
R1 divided by the sum of the two resistors, R1 and R2.
So that's how I remember this without having to use too many neurons in my brain.
So now we need to substitute again.
So this is going to be equal to VS times — and if you do this, what you will find out is that the rho and the W and the T, they, of course, all drop out.
And you're going to get y1 over L minus y1 plus y1.
So that's be equal to y1 over L, which is this is precisely what your colleague said.
There should be somehow proportional to however high you're here. Depending on the y, we're going to get a different voltage. And if y1 happens to be 0, well, we get 0 volts.
Yeah, makes sense. If y1 happens to be L, we get VS, 5 volts. Makes sense too. And in between, we can get any role whatsoever.
So now we kind of have almost — in fact, we could even go as far as drawing here the voltage, or maybe here, V touch, as a function of y.
And so it would be 0 here. And it would be VS up here. And so this is V touch, as we move up and down this system.
So now it's still just — oh, I need to move this up — now, it's still just a resistor.
Well, the question is, is it a touch screen? Well, kind of sort of. We can take a wire. I mean, this would be perhaps not the biggest selling point.
But suppose you had this touch screen, you would tell the user, well, my special phone is a little bit different.
You have to take a wire and you have to put it where you want to touch.
But then somehow the voltage that would come out would indicate where we touched. Okay, fair enough, it only says what y is.
We have to figure it out something a little bit more about — to figure it also what the x dimension is.
But again, in design, as we've said already last lecture, it's good to make a little steps, because otherwise it's just too hard. So that wire business is a bit disconcerting.
We really don't want to tell user for a smartphone it's somehow better you got to put a wire there. But maybe you have an idea.
Maybe there is a better way to do that.
Let's draw a side view.
8 — already has all these marks — 8, 8, so touch screen.
So side view, so we have for our diagram sort of this resistive screen.
Now, look at it from the side. And then on either side, we have this piece where we can make connections to our voltage source.
And then when somebody touches it, we make this a bit flexible.
Wherever we touch it, it's going to look like this. And we want to know what the voltage is there. How are we going to do that?
Well, we simply go ahead and put another conductor here at the bottom. And what's that?
Well, that's the node we touch.
So our circuit then, if I draw it pictorially for once, that's going to be plus minus. That's going be RVS. We're going to hook up our voltage source here.
That's going to generate a voltage here.
Here, that is V touch.
And again, the position of that depends. That's at position y. And depending if I move my finger over to the right, then the voltage we touch is going to be different.
But how are we going to sample it? Well, we simply sample it on the black conductor. So basically what we're going to do is we simply take two sheets.
The top one is our resistor. But then when we touch it, well, people put some force in. So it bends down a little bit. Bends down a little bit.
Then it touches the black one. Well, the black one is another conductor. That one maybe we make out of copper — or aluminum foil. That's easy.
We have it in the kitchen. So we make that out of aluminum foil. And then all we need to do is measure the voltage and node voltage at this node, V touch.
And depending on where we touch it, this sort of bubble here moves to the left or to the right. The voltage we touch changes according to that equation that you already calculated.
And we know why. So it's a one V touch screen, just one dimensionally. Only we knows where we touch in one direction. The other direction, we'll still have to figure it out.
But, hey, you know, we're a lot better. Remember, last time, we needed to have basically a switch for every one of these pixels here. And that was lots of switches and lots of wires.
And it was a big mess. It was a start. But this is better. I like this a lot better.
So does this make sense? We have a one V resistive touch screen. It tells us exactly where we are touching. How does it tell us?
Well, it tells us by a voltage that varies between 0 and VS, VS 5 volts. That voltage is going to change between 0 volts and VS.
Incidentally, the way you build this normally — really, I looked it up. Phones are made like that. They simply put little dimples here.
So that the top, the green sheet, that must be a little bit flexible is a bit suspended. We're not going to get into those details. We just say, the rest is solvable.
We have a one V touch screen. I believe there was a question back there. Yes.
STUDENT
Is the one with the green [INAUDIBLE] And where does the [INAUDIBLE] PROFESSOR: Okay, I didn't completely understand your question.
Is the — STUDENT: [INAUDIBLE] the black one, is that current? And if so, where does that current flow?
PROFESSOR
Okay, so the question is, is that bottom screen, the black one, is that conducting current? And where is this current flowing? That's a really good question.
Really, I guess what it gets to, this question, the touch screen in your phone doesn't say, you know, you touched at voltage 3.2 volts.
It tells you coordinate, right. So what we need to do is let's say this V touch 3.2 volts. We somehow need to do something with this. Ultimately, what do we want?
Well, we want that this is going to be a number in some kind of a program that runs on the processor that's inside your phone or your tablet.
So we have to do something a little bit extra now.
We have to build some kind of a gizmo that takes V touch and then it converts this in a number that we can use inside a computer.
And whether or not current flows into this black wire, well, that depends on what that gizmo that makes this measurement, what that gizmo is.
Maybe that gizmo needs a lot of current. Well, then a lot of current flows. Maybe that gizmo doesn't use any current whatsoever, and then no current is flowing in the black screen.
It's just passing on the voltage.
So we need one more piece in the picture here. We need something that can measure voltage.
And, you know, when we are at it, let's make it that we have also something that can measure current. So we have an instrument that can measure voltage or current.
I bought one. Look at this.
So that's our instrument. And you already know this thing here. That was this little touch light meter.
So now what I do is I hook this up to this meter.
Then conveniently, we have here a ground node that is sort of at this post here. I guess you cannot see this extremely well. Sorry about that. And then we can have the other terminal.
We can hook this up to this thing here. Well, if you actually could see something, this would be the resistor. Then we need to turn this on. It has all sorts of positions.
It can measure volts and amps. It can also measure ohms. That's a fancy thing. But we want volts.
So now apparently it says it measures the voltage. You just frankly can see this measure of voltage of 0. And then if I put my finger here, the microcontroller detects my touch.
So that's a different touchscreen. It's capacitor. We're going to get to this. And it measures only one point.
So maybe more of a touch button. But anyways, the voltage now was 2.3 volts. But now it disappears because the microcontroller said, hey, you know, let's not drain the battery.
But anyways, the point here is not — all this setup was — so the point is that there are thingies — there are thingies like this yellow box here — it happens to be called a voltmeter or multimeter because it can also measure current — that you can attach to your circuit.
It measures the voltage. And it displays it on this nice LCD display.
Now, even better, the thing is, of course, if we want to look at that voltage in the lab or so, it's very convenient to have a big box like this one, because we can see the voltage right away.
We can read it off the screen. But if you're a little computer that is inside a smartphone. That's not what we want. We don't want that screen.
We want one line of Python code or whatever.
And that one line of Python code goes out and uses some part that is inside here, runs that, that measures that voltage and spits back a number, 3.2.
And remember, that's voltage. So 3.2 volts. So there is some kind of a gizmo inside here, inside this one here that we want to have in our microcontroller.
Now, I already told you that the big black rectangle here, that happens to be a microcontroller. So it's a computer, just like your laptop. It doesn't have quite the power.
You can't do spreadsheets on this one. It also doesn't have quite the memory. I don't remember how much it has. It has a few kilobytes of memory.
A few kilobytes, not gigabytes, kilobytes. But you know it cost $0.10, $0.20. And that your laptop doesn't have.
It has this gizmo that allows us to attach a wire to one of its — they're called pins on the side.
And then, you run a line of code, for example, Python, and it tells us, yeah, the voltage on that pin is 3.2 volts or 1.6 or whatever. And so that's inside there.
The cost of this is near zero. Because of Moore's law, transistors and all of that is very cheap. So the manufacturers of these little computers just throw it in for free.
You can use it. If you have a use for your touch screen, use it. And otherwise, it's there. It didn't cost much.
So it's actually not difficult to do this. Designing this thing is a little bit — but you're not going to get there. So voltmeter.
Let's look a little bit how we are actually going to use this. So, again, let's stick with the circuit that we have.
So we have a voltage, VS. And we have our two resistors, R2, R1.
And we have our count node. And let's say, again, that we wanted to know what this voltage is here, V touch.
And again, the value, of course, depends because the values of these resistors, they actually vary depending on where we touch.
Sometimes I indicate when components can vary in my schematic just I indicate that with this arrow here. You don't need to do that. But you know you can.
So here, we are going to put our voltmeter.
Now, so the yellow box, or if you prefer the equivalent yellow box, much smaller, probably not yellow, inside this little thing.
And what it does is it samples this voltage. And it spits out a number, a number that you can either read off the screen or use in your program.
So just in order to perform our measurement, we have a circuit that is just one voltage source and two resistors, so R1 and R2.
Just to make this measurement now we added a new component, this V here or voltmeter. So we kind of changed our circuit. Is that's a good thing? Well, not really.
If we want to know something about our circuit, we don't want to change the circuit, because we want to know about the circuit what it is without making any changes.
So how could we add a component — in this case, the voltmeter — how could we add this component to our circuit without this component doing any changes to our circuit?
Yes.
STUDENT
[INAUDIBLE] resistance [INAUDIBLE]..
PROFESSOR
Okay, so the resistance of these three boxes should be what?
STUDENT
Extremely high.
PROFESSOR
It should be extremely high. In fact, if you had a choice, how high would you like it to be?
STUDENT
Infinity.
PROFESSOR
Infinity. Actually, resistor is valuing infinity, do we have another name for that?
STUDENT
[INAUDIBLE] PROFESSOR: It's an open circuit, right. So anyways, you're totally, absolutely correct. We want to express this a little bit differently.
We want this current here, you want this to be 0, ideally 0.
And we want the resistance here — if this was a resistor here, we want this R to be very, very large, ideally infinite.
Do you think voltmeter exist with this resistance being infinite? No, it's not possible to build. But, you know, you can make it like 1 gigohm or so.
What is a 1 gigohm? 1 gigohm is 10 to the 9 ohm, 1 billion ohm.
So that if you had a 1 volt across, it would have a current flowing of 1 volt over 1 billion. That would be 1 nanoamps. That's a very small current, very difficult to measure.
So anyways, yes, the ideal thing doesn't exist.
But this little cheap box here is close enough to ideal in most cases, unless you make extremely sophisticated measurements in very special circuits. Most of the time, it just doesn't matter.
And the one you have in the lab, I think is more expensive and bigger than this one. It's even better. Okay? Yeah.
STUDENT
[INAUDIBLE] number [INAUDIBLE] PROFESSOR: Oh, how does it turn this voltage into a number? Exactly. You know, there is another course, 240C.
I created it here about 15 years ago or so. Do you want a little interlude now?
It's going to only take three or four weeks or so and I can speed through how to do this.
I would love for you to be excited about this and take a couple of courses. And then ultimately it is 240C. But let's keep it out of this lecture, okay?
It's a very good question and maybe — actually, if you come to my office hours, I'll show you a few tricks, just a few ways on how you could do that.
Maybe I'll even think of a homework where I show you that, yeah, it's maybe not so difficult. You don't even need to quite take 240C.
But nevertheless, it's a question that we don't want to quite grapple with in this course. Okay? Agree? I love to teach you all this.
But, you know, I have a tendency to go off tangent. And this would be a big tangent. Okay, so that's the voltmeter.
So but when we are at it, there is, of course, also the ammeter.
Ammeter, not surprising, this measures current.
So this thing measures current. And, often, if you buy one of these, you just put it down here. Now, it measures amps.
So let's say we had again this circuit from before — R2, R1, our reference, VS. So let's
suppose that we wanted to know the current that flows out of a battery. Maybe we want to know how long this is going to last before we need to replace the battery.
So anyways, we want you to measure that current. And let's, for simplicity, assume that we had a box like the yellow one here. Where would we connect it?
So let's say that we will use the following symbol for an ammeter. These, by the way, are not completely standardized and international. But it's good enough. We can use this.
We know what you mean.
How are we going to connect our ammeter?
It needs to measure the current. Well, if it needs to measure the current, the current somehow needs to get into this instrument.
How can it measure something if the current doesn't go into the thing? So we have to actually cut this wire and then insert — so here's a cut.
And then insert the ammeter into the wire.
So if we want to measure the current, and go in this direction, connect it like this. Now, we measure the current. Now, you have the same question as before.
We started with a circuit. And then afterwards, we ran with the wire cutter and mucked around with it just so we could measure the curtain. Well, we didn't really want to change the circuit.
So that much for the wire cutter, right?
What do we want from this ammeter? from this A box? What do we want so that it does not change, our circuit whatsoever?
Even though now we have this green thingie there, the circuit is exactly the same as it was before we inserted that. Yeah.
STUDENT
That's like a load resistance.
PROFESSOR
Okay, that's like a load resistance, yeah. Any other comments? Yes.
STUDENT
[INAUDIBLE] PROFESSOR: The what?
STUDENT
Is that where all the current goes through?
PROFESSOR
All the current should go. So if before we had 1 amp flowing, we want that — once we put the green stuff there, 1 amp should still be flowing.
So the green thingy, what should it be?
STUDENT
Zero.
PROFESSOR
Yeah, exactly, the voltage should be zero. The current arbitrary, whatever it wants to be, that thing is either resistance with 0 ohms, absolutely correct.
And then we have also an other name for that — actually, we have two other names for that.
STUDENT
Wire.
PROFESSOR
Wire. And the other one sounds dangerous.
STUDENT
Short circuit.
PROFESSOR
Short circuit, right. So we have lots of names for this. So the ammeter should be a short circuit. So the resistance of this thing should be zero.
It should be a short circuit.
That's what we'd like it to be. It turns out this isn't quite as perfect.
The resistance of the ammeter depends a little bit on what you're measuring. And this is not something that I ask you to understand and so on.
But I'm telling you anyways, because obviously, at least many of you are interested in this stuff. So actually what the ammeter is it's the voltmeter and the resister.
So all it does when you switch it to amps, actually inside it puts the resistor between these two terminals. And then it measures the voltage across that resistor.
And then it does the division. It uses Ohm's law to figure out what the current is. So that resistor, of course, you want it to be very, very small, ideally zero.
But if you make it zero, then you measure always 0 volts. And consequently, you can detect the current. So in practice, the resistance is pretty small.
It could be 0.1 ohm or more or something like that. But if you want to measure very, very small currents, then the resistance has to be larger, because otherwise you just don't measure anything.
So you understand now. You know, this looks like a big box and maybe complicated. But you already understand quite a bit on how it ought to work.
So now let me ask you a trick question so that you know already the answer when in the midterm 2 comes around or so. I'm nice. I'm going to tell you.
So then afterwards, I can say, I'm such a fantastic teacher, they all know the answer. Okay, so suppose that I made a mistake.
Instead of setting my meter to amp, I set it to volts and I try to measure the current. What would I measure?
STUDENT
Zero.
PROFESSOR
I would measure zero, right, because this would be an open circuit — well, actually that's not true. That's not true. If I set it to volts — no, let's think this through very carefully.
I'm actually not going to measure zero.
The current is going to be zero, all right, right, because if I set this to — let me use a different color pen — so if I set these two volts instead, what is it now?
It's no longer a short circuit. Ideally, it's an open circuit. So it's an open circuit. So what's the current actually that's flowing here?
Now, the current is equal to be zero, because it can't go through this open circuit. Because I set it wrong. I set it to volt instead of amps.
If it's volts, well, it's an open circuit. This green thing set to volts is an open circuit. It's now a voltmeter. So no current can flow.
Well, if no current can flow. Then here what's the voltage here? Well, that's 0 volts. What's the voltage here?
Well, that's 5 volts, because, yes, it's 5 volts. We'll stick with the same numbers. What's the voltage drop across this resistor? Well, the current is zero.
The voltage drop, Ohm's law, it's also zero, right? Same thing here. So there is no voltage drop across these two resistors. So the voltage here is zero.
The voltage here is zero. No voltage drop. The voltage here is zero.
So if I set this to voltmeter instead of current, I measure between these two points, I measured between 5 volts and 0 volts.
And what I measure with the voltmeter then is?
STUDENT
5 volts PROFESSOR: 5 volts. Okay, so I get something totally wrong. So we have to set the dial to the right thing. And, of course, you can do exactly the same thing also.
You can ask yourself now the question that, hm, what would happen if I have this circuit here?
If I have this circuit, I want to measure the voltage V touch, but I set my meter to amps instead of volts.
Now, what would be the current that's flowing? Well, this would be S if I made a short circuit here.
So my new circuit really is R2. And then R1 one is short circuited.
So it doesn't matter even any more, like this. And here, I have my ammeter. It was supposed to be a voltmeter, but I set it wrong.
I want to measure the voltage, but it's going to display me the current. So what is the current going to be? Well, that I leave for midterm 2.
You can figure that out in midterm 2. I'll be also more than happy to explain it to you in office hours or any of the TA can explain it to you.
But, of course, it's a simple Ohm's law question. So you can figure that out. Okay, I'll see you again Thursday.
[APPLAUSE] [AUDIO OUT]
Đăng nhập để đánh giá học liệu này.
Đăng nhập để bình luận — chưa ai bình luận về học liệu này.
Không có khóa học liên quan.