Download Lecture 1 - IEEE@UCSB

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Lecture 1
ECE 92
Projects in Electrical and Computer
Engineering
Saturday, March 21, 2015
IEEE @ UCSB
0
Basic Concepts
Voltage
V
• Defined as
the amount
of potential
energy in a
circuit.
Current
I
Resistance
R
• The rate of
charge flow
in a circuit.
• Units: Amperes
(A)
• Units: Volts (V)
Saturday, March 21, 2015
IEEE @ UCSB
1
Current
High Current
Saturday, March 21, 2015
Low Current
IEEE @ UCSB
2
Voltage
Water
Tower
V
Water
Tower
V
More Energy == Higher Voltage
Saturday, March 21, 2015
Less Energy == Lower Voltage
IEEE @ UCSB
3
Resistance
Water
Tower
Water
Tower
V
V
Big Pipe == Lower Resistance
Saturday, March 21, 2015
Small Pipe == Higher Resistance
IEEE @ UCSB
4
Example
10mA
Saturday, March 21, 2015
Rx
Find Rx and the
power delivered to
the resistor.
100V
IEEE @ UCSB
5
Example
Node – any point where 2 or more circuit elements are
connected together
Wires usually have negligible resistance
Each node has one voltage (w.r.t. ground)
Branch – a circuit element between two nodes
Loop – a collection of branches that form a closed path
returning to the same node without going through any
other nodes or branches twice
How many nodes, branches & loops?
Saturday, March 21, 2015
IEEE @ UCSB
6
Kirchoff’s Voltage Law (KVL)
• The algebraic sum of voltages around each loop is zero
 Beginning with one node, add voltages across each branch in
the loop (if you encounter a + sign first) and subtract voltages (if
you encounter a – sign first)
• Σ voltage drops - Σ voltage rises = 0
• Or Σ voltage drops = Σ voltage rises
10Ω
10Ω
30 V
10Ω
10Ω
5Ω
10Ω
Saturday, March 21, 2015
IEEE @ UCSB
Out
What is the current
through the load
resistor using KVL?
7
Kirchoff’s Current Law (KCL)
• The algebraic sum of currents entering a node is zero
 Add each branch current entering the node and subtract each
branch current leaving the node
• Σ currents in - Σ currents out = 0
• Or Σ currents in = Σ currents out
10Ω
10Ω
30 V
10Ω
10Ω
5Ω
Out
What is the current
through the load
resistor using KCL?
10Ω
Saturday, March 21, 2015
IEEE @ UCSB
8
Equivalent Resistance
Parallel Resistors:
R2
R1
1
1 1
1
   ... 
REQ R1 R 2
RN
RN
Series Resistors:
R1
R2
REQ  R1  R2  ...  RN
RN
REQ
Saturday, March 21, 2015
IEEE @ UCSB
9
Example
px
100V
2kΩ
1.5kΩ
3kΩ
ix
Saturday, March 21, 2015
1kΩ
1kΩ
vx
IEEE @ UCSB
Use circuit reduction to
find vx, ix, and px.
10
Thévenin and Norton Equivalent
Circuit
R
Is
Vs
Norton Circuit
Thévenin Circuit
Saturday, March 21, 2015
R
IEEE @ UCSB
11
Summary of two-terminal equivalent
circuits
Saturday, March 21, 2015
IEEE @ UCSB
12
Example
Saturday, March 21, 2015
IEEE @ UCSB
13
Capacitors
•
Saturday, March 21, 2015
IEEE @ UCSB
14
Equivalent Capacitors
Parallel Capacitors:
C2
C1
CEQ  C1  C 2  ...  CN
CN
Series Capacitors:
C1
C2
1
1
1
1
 
 ... 
CEQ C1 C 2
CN
CN
CEQ
Saturday, March 21, 2015
IEEE @ UCSB
15
Inductors
•
Saturday, March 21, 2015
IEEE @ UCSB
16
Equivalent Inductors
Parallel Inductors:
L1
L2
1
1 1
1
   ... 
LEQ L1 L2
LN
LN
Series Inductors:
L1
L2
LEQ  L1  L2  ...  LN
LN
LEQ
Saturday, March 21, 2015
IEEE @ UCSB
17
Example
R
L
VAu(t)
C
VA=10V
R=1kΩ
Saturday, March 21, 2015
Vc(t)
C=0.5μF
L=2H
IEEE @ UCSB
18
Arduino Uno
USB
Analog Reference
Pin
Test LED
(pin 13)
Digital Pins
Toggles External
Power and USB
Power
On LED
Reset Button
External Power
Supply In (9-12V)
Digital
Ground
Saturday, March 21, 2015
IEEE @ UCSB
Analog In Pins
0-5V
19
The Arduino IDE
Check
Syntax
Upload
Code
Runs when
reset pushed
Runs when
setup() done
and loops
infinitely
Saturday, March 21, 2015
Console
IEEE @ UCSB
20
Useful Functions for the Arduino
pinMode(pin, INPUT/OUTPUT);
ex: pinMode(13, OUTPUT);
digitalWrite(pin, HIGH/LOW);
ex: digitalWrite(13, HIGH);
delay(time_ms);
ex: delay(2500); // delay of 2.5 sec.
// NOTE: -> commands are CASE-sensitive
Monday, August 20, 2007
IEEE @ UCSB
21
Make an LED blink
-
+
- +
Monday, August 20, 2007
IEEE @ UCSB
22
Examples of Arduino Code
Saturday, March 21, 2015
IEEE @ UCSB
23
Components that you will be using
Saturday, March 21, 2015
IEEE @ UCSB
24
Shields
Datalogging Shield
Wifi Shield
Touchscreen Shield
Wave Shield
Saturday, March 21, 2015
IEEE @ UCSB
25
Project Ideas
• http://playground.arduino.cc/
• http://www.ucsbieee.org/ECE%20199%20Spring%202012.html
• http://www.ucsbieee.org/ECE%20199%20Spring%202014.html
Saturday, March 21, 2015
IEEE @ UCSB
26
Related documents