diff --git a/Areas/electricity/current-voltage-characteristic.svg b/Areas/electricity/assets/current-voltage-characteristic.svg similarity index 100% rename from Areas/electricity/current-voltage-characteristic.svg rename to Areas/electricity/assets/current-voltage-characteristic.svg diff --git a/Areas/electricity/diode-voltage-graph.svg b/Areas/electricity/assets/diode-voltage-graph.svg similarity index 100% rename from Areas/electricity/diode-voltage-graph.svg rename to Areas/electricity/assets/diode-voltage-graph.svg diff --git a/Areas/electricity/assets/kirchhoffs-law-01.svg b/Areas/electricity/assets/kirchhoffs-law-01.svg new file mode 100644 index 0000000..34cc9bd --- /dev/null +++ b/Areas/electricity/assets/kirchhoffs-law-01.svg @@ -0,0 +1 @@ +5001k2ki1i3i2i4 \ No newline at end of file diff --git a/Areas/electricity/assets/kirchhoffs-law-02.svg b/Areas/electricity/assets/kirchhoffs-law-02.svg new file mode 100644 index 0000000..4873a2f --- /dev/null +++ b/Areas/electricity/assets/kirchhoffs-law-02.svg @@ -0,0 +1 @@ +1.25 V+5005V1.5k3.75 V+R1R2 \ No newline at end of file diff --git a/Areas/electricity/assets/led-example.svg b/Areas/electricity/assets/led-example.svg new file mode 100644 index 0000000..4e3e81f --- /dev/null +++ b/Areas/electricity/assets/led-example.svg @@ -0,0 +1 @@ +9VVf = 2VIf = 20mA diff --git a/Areas/electricity/voltage-divider-load-example-2.svg b/Areas/electricity/assets/voltage-divider-load-example-2.svg similarity index 100% rename from Areas/electricity/voltage-divider-load-example-2.svg rename to Areas/electricity/assets/voltage-divider-load-example-2.svg diff --git a/Areas/electricity/voltage-divider-load-example.svg b/Areas/electricity/assets/voltage-divider-load-example.svg similarity index 100% rename from Areas/electricity/voltage-divider-load-example.svg rename to Areas/electricity/assets/voltage-divider-load-example.svg diff --git a/Areas/electricity/voltage-divider-load.svg b/Areas/electricity/assets/voltage-divider-load.svg similarity index 100% rename from Areas/electricity/voltage-divider-load.svg rename to Areas/electricity/assets/voltage-divider-load.svg diff --git a/Areas/electricity/voltage-divider.svg b/Areas/electricity/assets/voltage-divider.svg similarity index 100% rename from Areas/electricity/voltage-divider.svg rename to Areas/electricity/assets/voltage-divider.svg diff --git a/Areas/electricity/datasheets/tlur6400.pdf b/Areas/electricity/datasheets/tlur6400.pdf new file mode 100644 index 0000000..505bfaa Binary files /dev/null and b/Areas/electricity/datasheets/tlur6400.pdf differ diff --git a/Areas/electricity/formulas.md b/Areas/electricity/formulas.md new file mode 100644 index 0000000..0b79cb6 --- /dev/null +++ b/Areas/electricity/formulas.md @@ -0,0 +1,116 @@ +# Ohms Law +Solve for voltage: + +$$ +\begin{flalign} +V &= \frac{I}{R}& +\end{flalign} +$$ +*Solve for resistance:* + +$$ +\begin{flalign} +R &= \frac{V}{I} & +\end{flalign} +$$ +_Solve for current_ +$$ +\begin{flalign} +I & = \frac{V}{R} & +\end{flalign} +$$ + +# Resistors in Series + +$$ +\begin{flalign} +R &= R1 + R2 + R3 ... & +\end{flalign} +$$ + +# Resistors in Parallel + +$$ +\begin{flalign} +&\frac{1}{R} = \frac{1}{R1} + \frac{1}{R2} + \frac{1}{R3} ... &\\ + +\\ +&\textit{For two resistors in parallel:} &\\ +\\ +&R = \frac{R1 * R2}{R1 + R2} +\end{flalign} +$$ + +*Tip:* +If two resistors of the same value are in parallel the total resistance is half the value of a single resistor + +# Kirchhoff's Law + +### Conservation of Charge + +All current entering a node in a circuit must also leave that node + +$$ +\begin{flalign} +& \sum{I_{IN}} = \sum{I_{OUT}} & +\end{flalign} +$$ + +**Example:** + +![](./assets/kirchhoffs-law-01.svg) + +For this circuit kirchhoffs law states that: +$$ +\begin{flalign} +&i1 = i2 + i3 + i4 & +\end{flalign} +$$ + +### Conservation of Energy +$$ +\begin{flalign} +& \sum{V} = 0 & +\end{flalign} +$$ + +**Example:** + +![](./assets/kirchhoffs-law-02.svg) + +For this circuit this means. + +$$ +\begin{flalign} +V_{R1} = -(I*R1) && \text{Voltage Drop across R}_{1} \\ +V_{R2} = -(I*R2) && \text{Voltage Drop across R}_{2}\\ +\\ + +V_{S} - IR_{1} - IR_{2} &= 0 & | + IR_{1} + IR_{2}\\ +V_{S} &= IR_{1} + IR_{2} \\ +\\ +V_{S} &= I(R_{1}+R_{2}) \\ +V_{S} &= I*R_{t} \\ + +\end{flalign} +$$ + +We can change that formula around to find out the current of the entire circuit, aswell as current through single resistors + +$$ +\begin{flalign} +& V_{S} = I*R_{t} & | \div R_{t} \\ +\\ +& I = \frac{V_{S}}{R_{t}} = \frac{V_{S}}{R_{1}+R_{2}} \\ +\\ +& VR_{1} = V_{S}(\frac{R1}{R1+R2}) \\ +& VR_{2} = V_{S}(\frac{R2}{R1+R2}) \\ +\\ +& VR_{1} = 5(\frac{500}{500+1500}) \\ +& VR_{1} = 1.25v +\\ +& VR_{2} = 5(\frac{1500}{500+1500}) \\ +& VR_{2} = 3.75v + +\end{flalign} +$$ \ No newline at end of file diff --git a/Areas/electricity/glossary.md b/Areas/electricity/glossary.md index 1edeeca..fa59fbd 100644 --- a/Areas/electricity/glossary.md +++ b/Areas/electricity/glossary.md @@ -15,6 +15,11 @@ V = \frac{I}{R} $$ ## Impedance += Resistance for Nerds + +## Current +How many electrons flow through a circuit in a second + ## Polarity Means if a component is symmetric or not Polarised means that a component is not symmetric @@ -28,5 +33,9 @@ Cathode - The longer Leg ## Diode ## Anode The positive end of a diode + ## Cathode -The negative end of a diode \ No newline at end of file +The negative end of a diode + +## Conventional Current Flow +When electricity was discovered people thought the electrons flow from the positive terminal to the negative, in actuality they flow in the opposite direction, but it is still possible to calculate the flow with the old way. \ No newline at end of file diff --git a/Areas/electricity/index.md b/Areas/electricity/index.md index 35608df..3430e84 100644 --- a/Areas/electricity/index.md +++ b/Areas/electricity/index.md @@ -1,6 +1,8 @@ # Learning Analog Hardware +[Glossary](./glossary.md) +[Formulas](./formulas.md) -## Volts -## Watts -## Amps +## Building Blocks +- [LED](./led) +- [Voltage Divider](./voltage-divider) \ No newline at end of file diff --git a/Areas/electricity/led.md.md b/Areas/electricity/led.md.md index 51dbf93..16a57be 100644 --- a/Areas/electricity/led.md.md +++ b/Areas/electricity/led.md.md @@ -4,8 +4,50 @@ Leds have polarity, that means they only allow current to flow in one direction. While in resistors the relations of voltage to current is linear: -![](./current-voltage-characteristic.svg) +![](current-voltage-characteristic.svg) -that is not the case for leds +that is not the case for leds: -![](./diode-voltage-graph.svg) \ No newline at end of file + +![](diode-voltage-graph.svg) + +Each led has a specific Vd or voltage drop, it needs that amount of voltage to turn on, after that amount is reached the current will increase exponentially. + +Because of this we will always need a resistor infront of the LED, because when the current is too high the LED will burn out. + +Values that are important for the led: +$$ +\begin{flalign} +&Vd = \text{Voltage Drop} \\ +&Vf = \text{Forward Voltage}\\ +&If = \text{Forward Current} +\end{flalign} +$$ + +Our power source must have more voltage than the voltage drop, otherwise we cant turn on the led. + +## Example (TLUR6400) + +First we need to find the datasheet of the specific component, it can be easily found by googling it + +![TLUR DataSheet](./datasheets/tlur6400.pdf) + +Now lets put that LED into a test circuit and calculate the resistance for it: + +![](led-example.svg) + +Because we now the Voltage Drop of the entire circuit must be 9v and the LED already drops 2V, we now know that the resistor must drop the remaining 7v. + +$$ +\begin{align} +R &= \frac{V}{I} &\text{Ohms Law} \\ +R &= \frac{7}{0.02} &\text{Replace the values} \\ +R &= 350 \text{Ω} +\end{align} +$$ + +If we would pack everything into one formulare it would look like this + +$$ +R = \frac{Vs - Vf}{i} +$$ diff --git a/Areas/electricity/voltage-dividers.md b/Areas/electricity/voltage-dividers.md index 85d6f89..11c87ea 100644 --- a/Areas/electricity/voltage-dividers.md +++ b/Areas/electricity/voltage-dividers.md @@ -4,7 +4,7 @@ This is sort of unrealistic because there is no current flowing out of the voltage divider on the right side: -![Voltage Divider](./voltage-divider.svg) +![Voltage Divider](voltage-divider.svg) #### Equation @@ -18,7 +18,7 @@ $$ When the output of the voltage divider is connected to something the current drops on the output, as that something uses some of it. -![Voltage Divider](./voltage-divider-load.svg) +![Voltage Divider](voltage-divider-load.svg) The load is connected in parallel to R2, so we can calculate it as a parallel resistor. @@ -34,7 +34,7 @@ $$ Lets calculate the current in this circuit: -![Voltage Divider Load Example](./voltage-divider-load-example.svg) +![Voltage Divider Load Example](voltage-divider-load-example.svg) 1. We calculate the Resistance in the subcircuit (R2 and RL) as they are connected in parallel which means @@ -50,7 +50,7 @@ $$ The simplified circuit now looks like this; -![Voltage Divider Load Example](./voltage-divider-load-example-2.svg) +![Voltage Divider Load Example](voltage-divider-load-example-2.svg) Now we can easily calculate the Resistance in the circuit