Top Banner
Electronics for the Internet of Things SUMMER SCHOOL
36

Electronics for the Internet of Things

Aug 03, 2015

Download

Education

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Electronics for the Internet of Things

Electronics for the Internet of ThingsSUMMER SCHOOL

Page 2: Electronics for the Internet of Things

2

Outline

Electronic Signals

Electricity Equations

General Purpose Input / Output (GPIO)

Pulse Width Modulation (PWM)

Analog to Digital Converters (ADC)

Microcontrollers and Computers

Questions

Page 3: Electronics for the Internet of Things

3

Electronic Signals

Image from http://autosystempro.com/analog-and-digital-principles/

Page 4: Electronics for the Internet of Things

4

Analog and Digital We can only store digital signals

◦ Using 1 or several bits / sample

We store an array of numbers

Parameters◦ Bits per sample◦ Sampling rate

Image from http://www.centerpointaudio.com/Analog-VS-Digital.aspx

Page 5: Electronics for the Internet of Things

5

Bits per sample 1 bit signals sample

◦ Values LOW (0) and HIGH (1)◦ digital

n bits signals sample◦ Values 0 .. 2n-1◦ digital representation of an analog signal (analog)

Image from http://www.centerpointaudio.com/Analog-VS-Digital.aspx

Page 6: Electronics for the Internet of Things

6

Sampling Sensor signals are analog

Image from http://www.snotmonkey.com/work/school/405/overview.html

Page 7: Electronics for the Internet of Things

7

Sampling Rate The faster we sample the higher the accuracy

Nyquist Theorem◦ Sampling frequency >= 2 x maximum frequency

Voice is 0.3 .. 3.4 KHz◦ 8KHz phone

Image from http://www.jazzpoparkisto.net/audio/audio32.html

Page 8: Electronics for the Internet of Things

8

Electricity Equations

Page 9: Electronics for the Internet of Things

9

Ohm’s Law

Page 10: Electronics for the Internet of Things

10

Kirchhoff Law I

Page 11: Electronics for the Internet of Things

11

Kirchhoff’s Law II

Page 12: Electronics for the Internet of Things

12

Voltage Divider

We measure Vout

Page 13: Electronics for the Internet of Things

13

Voltage Divider

Page 14: Electronics for the Internet of Things

14

Voltage Divider

Page 15: Electronics for the Internet of Things

15

Voltage Divider

Page 16: Electronics for the Internet of Things

16

Voltage Divider

Page 17: Electronics for the Internet of Things

17

Voltage Divider

Page 18: Electronics for the Internet of Things

18

Voltage Divider

Short circuit

Page 19: Electronics for the Internet of Things

19

General Purpose Input / Output

Page 20: Electronics for the Internet of Things

20

Output and Input Digital Pins

◦ Value LOW (0) or HIGH (1)

Each pin acts like a ◦ battery (OUTPUT)◦ voltage meter (INPUT)

Page 21: Electronics for the Internet of Things

21

Output Pins act like a battery

◦ LOW – 0V◦ HIGH – 5V, 3.3V or 1.8V

Page 22: Electronics for the Internet of Things

22

Input We measure Vout

◦ It goes into the pin

Page 23: Electronics for the Internet of Things

23

Pulse With Modulation

Page 24: Electronics for the Internet of Things

24

Pulse Width We set the % of “high” cycle

◦ 0 – 0%◦ 255 – 100%

◦ Depends on the library

Implementation◦ Hardware◦ Software

Usage◦ LED dimming◦ Servo Motors

Page 25: Electronics for the Internet of Things

25

Analog to Digital Converters

Page 26: Electronics for the Internet of Things

26

Analog and Digital Converters Measure voltage

Parameters◦ Bits per sample◦ Sampling rate

For 1 bit we have …

Image from http://www.centerpointaudio.com/Analog-VS-Digital.aspx

Page 27: Electronics for the Internet of Things

27

Analog and Digital Converters Measure voltage

Parameters◦ Bits per sample◦ Sampling rate

For 1 bit we have …◦ GPIO Input

Image from http://www.centerpointaudio.com/Analog-VS-Digital.aspx

Page 28: Electronics for the Internet of Things

28

Analog and Digital Converters Measure voltage

Parameters◦ Bits per sample◦ Sampling rate

For 1 bit we have …◦ GPIO Input

Image from http://www.centerpointaudio.com/Analog-VS-Digital.aspx

Page 29: Electronics for the Internet of Things

29

Analog and Digital Converters Measure voltage

Parameters◦ Bits per sample◦ Sampling rate

For 1 bit we have …◦ GPIO Input

For n bits we have …

Image from http://www.centerpointaudio.com/Analog-VS-Digital.aspx

Page 30: Electronics for the Internet of Things

30

Analog and Digital Converters Measure voltage

Parameters◦ Bits per sample◦ Sampling rate

For 1 bit we have …◦ GPIO Input

For n bits we have …◦ 0 – 2n-1

Image from http://www.centerpointaudio.com/Analog-VS-Digital.aspx

Page 31: Electronics for the Internet of Things

31

Analog and Digital Converters One ADC

Multiplexed◦ Reads for A0◦ Reads for A1◦ Reads for A2◦ Reads for A3…

Image from http://www.centerpointaudio.com/Analog-VS-Digital.aspx

Page 32: Electronics for the Internet of Things

32

Microcontrollers and Computers

Page 33: Electronics for the Internet of Things

Microcontrollers and Computers

Simple systems

Control hardware

Low speeds

Small memory

GPIO

PWM

ADC

Run single software

Full CPUs

High speeds

Large memory

GPIO

Run OS

Page 34: Electronics for the Internet of Things

Microcontrollers and computers

Firmware Software

Page 35: Electronics for the Internet of Things

Intel® Edison

Firmware (will be available) Software

Page 36: Electronics for the Internet of Things

36

Questions?