Modaajan lyhyt sähköoppi (Basic electricity for moders)
Got questions like how to get a LED on? How to decrease the RPM of a fan? The aim of this article is to search for answers and solutions to the questions mentioned above. To try to keep the terms simple and easily to understand and of course and for sure, to rise new questions. After you have read this, you should have the basic skills to calculate required resistances, power usage, etc. Let's see how we manage there. Index: Voltage
VoltageThe quantity is U and the unit is volt (V). Voltage means the differences in charges in an electric state between two points. Difference in potential. When you connect these points, the state electric strives to get balanced, thusly creating an electric current.
CurrentThe quantity is I and the unit is ampere (A). The leveling of electric charges appears as current. It is caused by the movement of electrons in the conductor. The electrons travel from the negative (minus) pole to the positive (plus) pole, but it is a common agreement that the current goes in the direction from plus to minus.
Ohm's lawProbably one of the most important laws that electronics contains. With the help of this law, you can calculate the relations between voltage U, current I and resistance R. When you cover the desired quantity from this formula, you have the required calculation in front of you. When you know the voltage and resistance, the current is calculated with the formula I= U/R When you know the voltage and current, you can calculate the resistance with R= U/I When you know the current and resistance, you calculate the voltage with the formula U= I*R Example: We want to light up a red LED from a line with five volts. Each LED has its own specific voltage threshold and current. In our example LED, let's use a voltage of 1.6 volts and the current is usually 20 milliampere in LEDs. (20 mA = 0.02 A). As said, the power source supplies us with five volts, but our LED needs only 1.6 bolts. We need to get rid of this excess voltage, for which we will use a resistor, which transforms this voltage into heat. So, the LED takes 1.6 volts, so the resistor should remove 5 V  1.6 V = 3.4 volts from the connection. To get the resistor to eliminate the correct amount of voltage, we will calculate a resistance value for it. Because we know how much the resistor must eliminate of the voltage, and we know that a current of 0.02 ampere will go through the connection, we can use a familiar formula for this: R= U/I With the right values placed in their rightful places, we get 3.4 V/0.02 A = 170 ohm. The closest resistor available for this situation is 180 ohm. As we are forced to connect a resistor with 10 ohm more than we calculated for, the LED will shine a tad darker and the current going through the connection is a bit smaller than 0.02 A.
Kirchhoff's first lawThis law presents you a model according to which the currents of components connected in parallel are summed up with eachother. The current going to the circuit is the same as the one going out from it. If we now switch the power on, a current of 0.02 amperes would go through each LED. So the whole circuit requires 0.02 A + 0.02 A + 0.02 A = 0.06 amperes.
Kirchhoff's second lawAccording to the law, the sum of losses of voltage within a circuit equals the voltage of the power source. Because we have two LEDs and one resistor, and because we know that the voltage threshold of the LED is 1.6 volts, we are able to calculate mow much the excess voltage will be. 5 V  1.6 V  1.6 V = 1.8 volts. We know that the current in the connection is 0.02 amperes, because we have a serial connection. This way, we can calculate the value for the resistance with the help of Ohm's law. The voltage that exceeds the resistance divided by the current going through the resistor: R= U/I= 1.8 V / 0.02 A = 90 ohm. The closest resistor available is 82 ohm.
PowerDifferent resistors have different endurance to power. This is important to remember, as the function of a resistor is to turn the exceeding voltage into heat. Because of this, it is important to know the power which is going through the resistor, so that we can choose the right resistor with the right power endurance. So, you count the power using the voltage U and current I. For example, a serial connection including one resistor and one LED. The resistor is affected by 3.4 volts and the current going through it is 0.02 amperes. Thus the power affecting the resistor is 3.4 V * 0.02 A = 0.068 watt. Here you have an example with several LEDs. Example: This circuit includes one resistor which limits the voltage to suitable levels for three LEDs. The LEDs have to be similar. This time, we have a 12 volt powersource. First, let's calculate the total current flowing in this connection. According to Kirchhoff's first law, we sum the current of three parallel LEDs with eachother. 0.02 A + 0.02 A + 0.02 A = 0.06 amperes. Then we calculate the voltage affecting the resistor with Kirchhoff's second law. The voltage going through the LEDs subtracted from the voltage from the powersource. 12 V  1.6 V= 10.4 volts. The power affecting the resistor will thusly be: 10.4 V * 0.06 A = 0.624 watts. The smaller and cheaper resistors can endure about 0.25 W, so one of those wouldn't last for long in this connection. So, we are forced to pick a resistor which can endure at least this 0.6 watt. Onewatt resistor would be enough, for example.
The resistorAs its name would indicate, the function of a resistor is to resist the flow of electric current, so it causes a loss of voltage. This treat is caused by the material it is fabricated out of, which leads poorly electricity. The physical property of a resistor is resistance, which is labeled with R and the unit is ohm. The resistance of this connection is 150 + 150 + 250 = 550 ohms. Parallel connection of resistors. The result is: 1 / (1/150 + 1/150 + 1/250) ~ 57.69 ~ 58 ohms.
The values of resistors are indicated with color codes. The code is read by starting in the end which is closer to the first colored ring. The first ring indicates the first number value of resistance, and the second ring indicates the second number of resistance. The third ring indicates how many zeroes are to be added ('the place of the comma'). This value is in ohms. The fourth ring indicates the tolerance, which means the accuracy of the amount of ohms in percents. A table which helps you to read the value follows:
To avoid constructing a resistor for every amount of ohms, there is something called the E series. This table enables you to find the closest available resistor. The most common one is the E12series which defines that each decade has 12 different values of resistance. A decade means tenfolding of a value. For example, from 10 to 100.
You get the the real resistance values by moving the comma. E.g. 0.15 ohm, 1.5 ohm, 15 ohm, etc. So, if you want to find a closest match for a calculated value of 175 ohms, you multiply the values of this table by 10. This way, the closest match is 180ohm.
Examples of resistors: Yellow, violet, orange and silver. 4 and 7 multiplied by 1000. 47 kiloohms with a tolerance of 10 percent. Red, red, brown and silver. 2 and 2 multiplied by 10. 220 ohms with a tolerance of 10 percent.
The LEDThe LEDs (Light Emitting Diode) are these funny things that light up when the required voltage threshold is exceeded. The LEDs can be found in various colours, brightnesses, diameters and so on. A LED requires always a resistor to limit the current going through it. You can see every now and then connections where this has been ignored. In these cases, the LED isn't going to last for long and often causes functioning problems for the rest of the circuit. When you are calculating the resistance, you need to know the voltage threshold and current of the LED. Exceptions are those blinking LEDs which have a builtin resistor, so they don't need an external one. General values for threshold voltages of LEDs:
The current is usually about 20mA. This is a good value to remember, if you don't know the exact value. The calculation of resistance you will use Ohm's law, which is presented earlier in this article.
The transistorA transistor is often used to enhance a signal. This way, it is suitable for example for an electric switch which controls a greater current. Simplified, you could say that a transistor is a variable resistor, controlled by electricity. With a small controlling current you can alter the resistance of the resistor, which affects the greater current which is desired to be controlled. There are two types of transistors, PNP and NPN. The most common one is the NPN transistor. This transistor is suitable for controlling a large amount of LEDs than you would be able with direct connection, for example. Here you have an example of a connection which would enable a NPN transistor to control six leds from the hard drive connector of your motherboard. The value of a preresistor of a LED is counted by assuming that each of the LEDs have a threshold voltage of 1.6 volts and the current is 20 mA. Three LEDs in a serie, so the voltage is 4.8 v. The transistor take some voltage too, a suitable average would be 0.3 volts. The resistor is left with 12 V  4.8 V  0.3 V = 6.9 V. The LEDseries are two in parallel, so the current through the resistor is 20 mA + 20 mA = 40 mA. According to Ohm's law, the value of the resistor should be 6.9 V / 40 mA = 172.5 ohm (180 ohm). The power through the resistor is P= U*I, which means 6.9 V * 40 mA = 0.276 watt. Because of this you maybe wouldn't be okay with one of those cheaper resistors, as they can endure only 0.25 watt.
Examples
Two superbright LEDS in parallelWe'll make a connection including two superbright LEDs in parallel and those connected to a five volt line. This can be applied to the KeySpot, GlowPad mods, and of course illuminating the case interior, and much much more. The voltage threshold for the LEDs are 3.8 V and the current 20 mA. Because the LEDs are in parallel, they are affected by the same voltage, but the current is doubled to 40 mA. The voltage affecting the resistor is therefore 5 V  3.8 V = 1.2 V. The value for the resistor should therefore, according to Ohm's law, be R= U/I= 1.2 V / 0.04 A = 30 ohm. Because the Eseries doesn't include a resistor of this value, we have to choose the closest match, which is 33 ohms.

So, this was the course we had now. Hopefully this left you with something useful. You can easily find guides and primers in electronics such as this one with different search engines in the net. I know that some of the terms used in this article might not be right but you should still be able to understand what I'm after for.
22.12.2001  ©Japala 29.12.2001 translated to English by Henrik Paul