Electrical Engineering Basics
Transcript
All right, you guys. Welcome to today's show. So let's learn some electrical engineering, shall we? There are three terms that you need to now learn, in order to understand this stuff. And they are depicted as V and I and Omega. And I'm going to try to explain in a way that I think will make you understand all this stuff. Perhaps you learned some of this in physics in school. But today, I believe you will actually learn all this stuff, because if you do, you will be able to build and design some remarkable things later on in this series. And. All right, so to the left here, we have a battery. And this right here is supposed to be an electrical circuit. But the mental model that I want you to have is that
this battery, the plus side of it is this bowl of water. Okay. And the minus side is this pump right here. And this is a pipe. So let's say we start pumping here and we have a hole in the circuit like you see here. No matter how much you pump, you will not get any flow of water anywhere in this circuit. That makes sense, right? However, if this hole here does not exist, if we have a full circuit and you pump here,
the water will flow along this path here. And as long as there is water inside of this bowl, the water will flow. But as soon as this water runs out, the flow of water will stop. So that's quite logical. And electricity works the same way. And the strength of this pump is measured in volts.
And let's say that we have a propeller... we mount a propeller here inside of this pipe. When we pump and the water will flow, this propeller will start to spin, right? And let's also say that we connect this to a counter. So this is a counter (cnt). And each time... if this is the propeller seen from the front...
each time that this propeller makes a full circle, 360 degrees, we will increase this counter by one. And next time we increase by one, one and so on and so forth. If we were to count the number of laps. So the number of times it does a full circle, and per second, then we have a value of the strength of this flow of water, right?
And this strength of the flow. So the... the number of laps that this propeller will do per second, that is measured in Ampère, or “amps” as it's called in America. Okay. So the voltage has only meaning if there is water here. If this water bowl is empty, we can put 10,000 volts or whatever on this pump, but there will not be any flow of water, so this propeller will not spin.
So the strength of this pump, the voltage, that is more of a potential. In order for the voltage to be an electrical current, measured in Ampère, we need to have an [enough] loaded battery, so water in this tank, and we need to have a full circuit. There can't be any holes or anything.
All right? So what if we were to shorten this whole pipe system when we still have the same strength of this pump? Let's say we had 1.5 volts before and we still have 1.5 volts, so that’s the strength of the pump, and we have this propeller right here. What will happen with the flow of water in this case if we compare it to the longer distance? Well, in order to figure that out, I want you to consider one thing. If you have a soda mug from like the hamburger restaurant or something
and you have a straw that you drink this soda with. If the straw is two inches long, it will be very easy to drink this stuff. But if it's like two yards long, then you will need to suck very hard on it for it to give any soda. And the same is true for this pump since this pipe system is much shorter than before, with the same power of this pump, this propeller will spin much faster.
And maybe the flow of water becomes so intense that this propeller will break. So we need to be we need to consider that when we build this kind of stuff, that all the components that we add to this circuit, if we put too much power, too much power on it, it will break. So we need to be able to handle that somehow because we cannot always count on
creating a long enough circuit. We never can do that. Actually. So how do we solve this problem? We need to some somehow artificially make this longer. And we do that by using one of these small things. It's called a resistor.
So a resistor, when we make a sketch for our circuit looks like something like this, and this explains it quite a lot. So when we put electricity through this resistor, it will take a longer path or it will be built in such a way that it has the same effect.
So even if we have the same power of the pump, if you had the same voltage and the same distance and we connect one of these resistors, the amperes, the amps will go down and this resistance is measured in over. And I'm not going to go into any math here, and I'm not going to describe how to calculate all of these values, because that's not the important thing here. The important thing is that, you know, the difference between these three things, that the voltage is the strength of the battery of the.
The Ampere is the flow of water. And usually in most cases, or at least in many cases, you have the same strength of the battery. It's often 1.50, for instance, and in electrical circuits it's often 3.3 or five floats. So what we can change is the oh, the resistance. And that way we can lower the arms.
Alright, so welcome back. When you do a sketch for an electronic engineering, all the different components have different symbols and a battery. Looks like this. So one long line and one kind of one. And then you have two connectors like this.
So the side with the long line is the plus side and the tinier line is the minus three. And if we were to call it a light of some kind, for instance, and indeed it looks something like this
with some beams going off from it. And as you can see, this is formed like an arrow. And that is because it needs to be connected to the right side. Food speak. So this the circuit or this component will only left and does the electricity go one way, so to speak? So if you turn this on the wrong side, it will not let the electricity through. And if you were to connect it like this, it would be too much power running through this LED. So it would probably break. So as we talked before, we need to connect a resistor
so we eliminate the current through this circuit and. Right. And if we were to connect without the through system and you connect the two sides of the batteries like this, this is called a pure circuit and you should avoid this. You should always avoid this because the fluid, the flow of electricity will be far too high. So you will damage the battery and possibly other components, but also the battery would run out very fast because there is no resistance or very little resistance. And when you create things, there are basically two ways you can do it. If we have, let's say, two of these lamps, these LEDs, and we connect them like this.
This is called a serial connection. And then when we connected left this both of these lights will shine as much as if we only had one of these connected. Basically. But the battery would run out faster because of this. But we can also do a parallel connection which would look something like this.
So we have the first one fixed and then we connect the second one, something like this. So the one side of the LCD lamp is connected to the left side, and both of these are connected together to the plus side and same for the minus side. This are a parallel solution and in this case the battery will run out as fast as if we only had one of these left basically. But both of these lamps will only shine with half the intensity.
So these are two different ways we can connect these things. And why does it behave like this? Well, this is because the lights and the electricity will always try to flow through the path of least resistance. But in this case, we have two possible ways for the circuits to go full circle, so to speak. It can go this way
and it can go this. So the electricity will work. How could I turn? I do not work where it is. The electricity will go. Half of the electricity will go through this one and half of the electricity through this one. But if we connect in this series and it's it works differently.
So there's another thing which is good is let's say we have a connection that looks like this. So we have one of these lights, the and so this before we have another one here but over here we have a resistor. So in this case, this luck will not shine at all because all electricity will take the power for the persistence, which is through the first light and nothing will go this direction because this has much higher resistance and it always tries to avoid the resistance.
However, if we were to disconnect this life, then the other life will go on because now we only have one way. We have to go through this one with the resistance. So using this technique, you can decide what path the electricity will take. And this is the basis for all the logical circuits, like in a CPU.
So guys, welcome here. So this is a transistor. A transistor is one of the most important components in electrical engineer, in computer science. And there the components that we have looked at this for as two connectors each, both the battery and the resistor and the LED. But this has three connectors and this works like a switch. So let's say we have a battery here or this is plus and this is minus and we connect the circuit like this and let's put an LCD here.
So let's do something like this. We let's do something like this. And, and of course we need to have a resistor here as well. But let's not focus on that right now. So if we were to connect this circuit, this lamp will not be left in this case because this transistor works like a switch and currently this switch is disconnected.
However, if we take this metal leg right here and we put to power, but if we put electricity on this leg right here, let's call this signal a we we don't need to put a lot of electricity, just this kind of signal. Then this light will turn on and we can do that either by connecting this to somewhere else, but we can connect it down here
and in this case, and this transistor would turn on. But the electricity would go this way. So it will still not go elsewhere. So we can fix this by adding a resistor like this, because the really even though this path contains a resistor
and a small amount of electricity, it will go this way and this will activate this transistor, which means that if the electricity will start flowing like this and the light will be turned up, and if we wanted to disconnect this, we could just let it flow like this, or we can connect to the plus side or something like that. But the important thing is that if we have an electricity flowing through the leg and that in turn creates a full circuit, then this will activate and put electricity this way. And this is the most important concept because then we can make if statements.
So we can create things like you get. It's also called logical gates. And one symbol for one of these looks something like this. It has two inputs A and B and one output, which often is just depicted as out. And this gate works like an if statement like this. So let's say we have a function which returns a boolean. So true or false, let's call this gate. And we have two parameters which are also booleans. So we have pool a
and B and it's a, and they are both true. In that case, we return through. Otherwise we return false. And using gets like this, we can combine them and create any logic. We can create an entire CPU just with gates similar to this one.
And this. We can make a table out of the possible values. And when we talk about logical great gates, we usually don't talk about Booleans. We often say that zero is equal to false and one is equally true. I used booleans here because I wanted to show that they are one bit of information which all right, So if we're going to make a table out of the different results of this gate, it will look sample this. We're going to have the a input and the input and the output. All right. So if A is zero and B is zero, that means that's the out is zero.
If A is one and B is zero, or if A is zero and B is well, the result is still zero. Right. But if both is are ones, then the result would be one. And this is called an and gate and you can see that here in the describing it statement
so it works same as this and C so if A is true and B is true then the result is true otherwise false. And same here. If both of these inputs are one, then we have a one as an output. So this is the end gate
and our next gate looks almost the same. It still has this shape, but instead of making a line directly across these two, we're going to form it like Oh and then we have the two inputs A and B and we have the word output. But and the code for this is the same as the other one, except that we have an or here is that and so this is a logical
or gate. So if both of these inputs are zero, the outputs of zero, if one is a zero and the other one is a one, then the result will be one in both cases. And if we have both inputs as one, the result would be well. So this is the direct opposite of the hand gate. So are you starting to see the pattern here? We have the electronic versions of these if statements. So if we can do this statement that takes two inputs and produces an output,
then we can build any type of logical circuit. And there are a lot of different other gates as well. But these are the two most common, I would say the most important ones. So I hope you like this episode and please like and subscribe because we are going to build really cool projects moving forward.
So thanks for watching. Thanks for today.

Ask anything
We've read this whole study set, so questions about it get the best answers.