{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "Universidade Federal do Rio Grande do Sul (UFRGS) \n", "Programa de Pós-Graduação em Engenharia Civil (PPGEC) \n", "\n", "# PEC00144: Experimental Methods in Civil Engineering\n", "\n", "\n", "### Part II: Instrumentation\n", "[9. Review on electrical circuits](#section_8) \n", "\n", " [9.1. Voltage dividers and impedance](#section_91) \n", " [9.2. Power sources and batteries](#section_92) \n", " [9.3. Passive circuit components](#section_93) \n", " [9.4. How to light up a LED](#section_94) \n", " [9.5. Low and high pass RC filters](#section_95) \n", " [9.6. Regulated voltage and current sources](#section_96) \n", " [9.7. Microprocessed power sources](#section_97) \n", "\n", "---\n", "_Prof. Marcelo M. Rocha, Dr.techn._ [(ORCID)](https://orcid.org/0000-0001-5640-1020) \n", "_Porto Alegre, RS, Brazil_ \n" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# Importing Python modules required for this notebook\n", "# (this cell must be executed with \"shift+enter\" before any other Python cell)\n", "\n", "import numpy as np\n", "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "from MRPy import MRPy\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 9. Review on electrical circuits \n", "\n", "### 9.1. Voltage dividers and impedance \n", "\n", "\n", "\n" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Logic level output: 3.33V\n" ] } ], "source": [ "Vin = 5. # logic level 5V\n", "Z1 = 5000. # top resistor (ohms)\n", "Z2 = 10000. # bottom resistor (ohms)\n", "Vout = Vin*Z2/(Z1 + Z2) # logic level ~3.3V\n", "\n", "print('Logic level output: {0:5.2f}V'.format(Vout))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 9.2. Power sources and batteries \n", "\n", "\n", "\n", "\n", "\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 9.3. Passive circuit components \n", "\n", "#### 9.3.1. Resistors\n", "\n", "$$ Z_R = R + 0i$$\n", "\n", "\n", "\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### 9.3.2. Capacitors\n", "\n", "$$ Z_C = 0 - i \\, \\frac{1}{2\\pi fC} $$\n", "\n", "\n", "\n", "#### 9.3.3. Inductors\n", "\n", "$$ Z_L = 0 + i \\, 2\\pi fL$$\n", "\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 9.4. How to light up a LED \n", "\n", "