BUILDING YOUR OWN SMART DEVICE
iLab 2
1
BUILDING YOUR OWN SMART DEVICE 1 Agenda Introduction to - - PowerPoint PPT Presentation
iLab 2 BUILDING YOUR OWN SMART DEVICE 1 Agenda Introduction to Electronics Voltage and current Units and parameters Resistance: Ohms Law and Kirchhoff's Laws (Light Emitting) Diodes Common Sensor types 2 Agenda
iLab 2
1
2
3
7
Voltmeters measure static and fluctuating voltages
Source: Fluke 80 Series V User Manual, May 2004 Rev.2, 11/08, page 14 8
Oscilloscopes display time-variant voltage curves
Source: https://www.adafruit.com/products/2145, 18.11.2015
10
11
Ammeters measure static and fluctuating currents
Source: Fluke 80 Series V User Manual, May 2004 Rev.2, 11/08, page 25 12
13
Voltage and Current
Measurements
14 Source: https://commons.wikimedia.org/wiki/File:Masc henregel.svg, 19.11.15 Source: Adapted from http://www.elektronik-kompendium.de/sites/grd/0201113.htm, 19.11.15
15
Name Symbol SI-Unit Formula Voltage U or u(t) or V V Current I or i(t) A Electric Power P W 𝑄 = 𝑉 ⋅ 𝐽 Electric Energy W Ws, J 𝑋 = 𝑄 ⋅ 𝑢 Electrical resistance R Ohm (Ω) 𝑆 = 𝑉/𝐽
Ohms Law
Resistance
𝑆 = 𝑉 𝐽 Resistor (circuit symbol) Resistor (picture)
Source: Adapted from https://upload.wikimedia.org/wikipedia/commons/d/d7/FourIVcurves.svg, 19.11.15
𝐽(𝑉) = 𝑉 ⋅ 1 𝑆
Resistor Current-Voltage characteristic
Resistor color codes
Source: http://www.digikey.com/- /media/Images/Marketing/Resources/Calcul ators/resistor-color-chart.jpg, 19.11.15 18
Kirchhoffs 1st Law
„The sum of currents into and out of any single node of a network is always zero.“ Pay attention to the direction of the current-arrows:
Kirchhoffs 1st law holds for all nodes in a circuit.
𝑗𝑙
𝑜 𝑙=1
= 0
Source: http://www.elektronik-kompendium.de/sites/grd/0608011.htm, 19.11.2015
𝐽 − 𝐽1 − 𝐽2 − 𝐽3 = 0
Source: https://commons.wikimedia.org/wiki/File:Kirchhoff%27s_Current_Law.svg, 19.11.2015
Kirchhoffs 2nd Law
„The sum of Voltages in any closed loop through a cirquit is always zero.“ Source: http://www.elektronik-kompendium.de/sites/grd/0608011.htm, as of 19.11.2015
𝑉2 + 𝑉1 − 𝑉𝑟1 − 𝑉𝑟2 = 0
Source: https://en.wikipedia.org/wiki/File:Kirshhoff-example.svg, as of 19.11.2015
𝜁1 − 𝑆1 ⋅ 𝑗1
𝑃ℎ𝑛𝑡 𝑀𝑏𝑥
− 𝑆2 ⋅ 𝑗2 = 0 𝜁2 − 𝜁1 − 𝑆2 ⋅ 𝑗2 − 𝑆3 ⋅ 𝑗3 = 0
Series circuit 𝑆𝑢𝑝𝑢𝑏𝑚 = 𝑆𝑙
𝑜 𝑙=1
Parallel circuit 𝑆𝑢𝑝𝑢𝑏𝑚 = 1 1 𝑆𝑙
𝑜 𝑙=1
Source: http://www.iris.uni-stuttgart.de/lehre/eggenberger/eti/, Chapter 8, as of 19.11.2015
𝑜 𝑘=0
Source: https://commons.wikimedia.org/wiki/File:Einfacher- unbelasteter-Spannungsteiler.svg, as of 19.11.2015
𝑜 𝑘=0
Source: https://commons.wikimedia.org/wiki/File:Stromteiler.svg, as of 19.11.2015
(Light Emitting) Diodes – I-V Diagram
Source: http://electronics.stackexchange.com/questions/76367/accounting-for- led-resistance, as of 19.11.15
LEDs I-V Diagram, Case specs
Source: http://www.electronics.dit.ie/staff/tscarff/DT089_Physical_Computing_1 /LEDS/Leds.htm, as of 19.11.15
𝐸 = 𝐽𝑇 𝑓
𝑊𝐸 𝑜⋅𝑊𝑈 − 1
𝑛𝑏𝑦
𝑛𝑏𝑦 when the circuit is operating
Resistor-Diode and Diode I-V Diagram
Source: Own work using LTSpice simulation program, IN4148 Diode
I2C / TWI GND, TCL, SDA Master-Slave-Bus GPIOs PxN, i.e. PB1
29
UART / Serial TIA-232-F GND, Rx, Tx Point-to-Point SPI SCLK, MOSI, MISO, nSS / nCS Master-Slave-Bus Selected Star or Daisy-Chaining
– Preemption – Priorities – Cyclic approach – Event driven approach
– Priority Scheduling – Preemptive Scheduling
34
36
ATmegaX: 8-Bit Harvard RISC
Source(s): https://nishantnath.com/2012/03/23/introduction-to-atmega-microcontrollers/, as of 23.05.16
USB/Programmer (ATmega16U2)