IE1206 Embedded Electronics Le1 Le2 PIC-block Documentation, - - PowerPoint PPT Presentation

ie1206 embedded electronics
SMART_READER_LITE
LIVE PREVIEW

IE1206 Embedded Electronics Le1 Le2 PIC-block Documentation, - - PowerPoint PPT Presentation

IE1206 Embedded Electronics Le1 Le2 PIC-block Documentation, Seriecom Pulse sensors I , U , R , P , serial and parallel Le3 Ex1 KC1 LAB1 Pulse sensors, Menu program Start of programing task Ex2 Le4 Kirchhoffs laws Node


slide-1
SLIDE 1

IE1206 Embedded Electronics

Transients PWM Phasor jω PWM CCP CAP/IND-sensor

Le1 Le3 Le6 Le8 Le2 Ex1 Le9 Ex4 Le7

Written exam

William Sandqvist william@kth.se

PIC-block Documentation, Seriecom Pulse sensors I, U, R, P, serial and parallel

Ex2 Ex5

Kirchhoffs laws Node analysis Two-terminals R2R AD Trafo, Ethernet contact

Le13

Pulse sensors, Menu program

Le4

KC1 LAB1 KC3 LAB3 KC4 LAB4

Ex3 Le5

KC2 LAB2

Two-terminals, AD, Comparator/Schmitt Step-up, RC-oscillator

Le10 Ex6

LC-osc, DC-motor, CCP PWM

LP-filter Trafo

Le12 Ex7

Display

Le11

  • Start of programing task
  • Display of programing task
slide-2
SLIDE 2

William Sandqvist william@kth.se

Magnetism?

What do you remember about magnetism and electromagnetism?

slide-3
SLIDE 3

William Sandqvist william@kth.se

Permanent magnets

Each magnet has a magnetic field. The field direction is defined from the North Pole and into the South Pole. Field, lines of force, can be illustrated with iron filings

  • r with spaced compass needles. Nowadays there are

also” Magnetic Field Viewer Film”.

slide-4
SLIDE 4

William Sandqvist william@kth.se

The force between magnets

You probably know the rules for the force between magnets.

slide-5
SLIDE 5

William Sandqvist william@kth.se

A magnet is divided into three pieces

If a magnet is cut into smaller parts, each part becomes a complete magnet with its own North Pole and South Pole.

slide-6
SLIDE 6

William Sandqvist william@kth.se

Magnetic domains

A magnetic material consists of a large number of "elementary magnets". Typically, these are disordered and therefore makes the material non-magnetic. If the material is magnetized elementary magnets are arranged so that they work together making the material magnetic.

slide-7
SLIDE 7

William Sandqvist william@kth.se

Flux and flux density

The basic magnetic quantity is the magnetic flux φ with the sort Weber [Wb]. Flow can be seen as the ”total amount of force lines”. The magnetic field is unevenly distributed in space, the flux density B = ∆φ/∆A [Wb/m2] is a measure of the local field strength. The magnetic force lines follow the "path of least resistance" and a material's magnetic conductivity is called permeability . Rule: Force lines are closed, and can never cross each other or go into another.

slide-8
SLIDE 8

William Sandqvist william@kth.se

Field images between poles

Figure: Electricity - Basic Navy Training Courses U.S. GOVERNMENT PRINTING OFFICE 1945

Path of least resistance - shorter route to the second magnet south poles than to its own! The magnets attract each other. Force lines may not cross each

  • ther.

The magnets repel each other.

slide-9
SLIDE 9

William Sandqvist william@kth.se

Quick question? Permanent magnets

(Ex. 9.5) Draw the magnetic force lines in the figure. Mark with arrows the direction of the field. Discuss with your nearest bench neighbors.

slide-10
SLIDE 10

William Sandqvist william@kth.se

Quick question! Permanent magnets

(Ex. 9.5) Draw the magnetic force lines in the figure. Mark with arrows the direction of the field.

slide-11
SLIDE 11

William Sandqvist william@kth.se

Permability µ

"Magnetizable" materials such as iron and nickel has good ability to support the formation magnetic field within themself – they have high permability µ µ µ µ. Many lines of force will take a "shortcut" through a piece of iron around a magnet. All other materials are ”non mgnetizable”.

They have µ = µ0 = 4π·10-7

slide-12
SLIDE 12

William Sandqvist william@kth.se

Relative Permability µr

It is convenient to compare different materials permeability with

  • vacuums. The relative permeability is called µr.

Permalloy µr ≈ 8000. My-metal µr ≈ 20000. These are expensive materials that can be used as "shields" against magnetic fields.

7

10 4

⋅ = ⋅ = π µ µ µ µ

r

slide-13
SLIDE 13

William Sandqvist william@kth.se

Quick question? Permability

(Ex. 9.6) Two magnets are positioned on each side of a

  • metal. The metal has µ

µ µ µr = 1. Draw the magnetic force lines in the figure. Mark with arrows field direction.

slide-14
SLIDE 14

William Sandqvist william@kth.se

Quick question! Permability

The magnetic field is not affected by the metal piece, it has relative permeability 1, the same as the air!

slide-15
SLIDE 15

William Sandqvist william@kth.se

slide-16
SLIDE 16

William Sandqvist william@kth.se

Both our earth and the electron are magnets

  • The earth rotating

ironcore creates a magnetic field

  • The electron spin creates

a magnetic field

slide-17
SLIDE 17

William Sandqvist william@kth.se

Right hand rule

  • The electric current creates a magnetic field.
slide-18
SLIDE 18

William Sandqvist william@kth.se

?

slide-19
SLIDE 19

William Sandqvist william@kth.se

  • ×

× × ×

!

There will be interacting field inside a loop! (Ex. 9.8)

slide-20
SLIDE 20

William Sandqvist william@kth.se

Electromagnet

slide-21
SLIDE 21

William Sandqvist william@kth.se

Electromagnet

Between the loops counteracts the field lines each other

slide-22
SLIDE 22

William Sandqvist william@kth.se

Electromagnet

Inside the loops the field lines amplify each other. Between the loops counteracts the field lines each other

slide-23
SLIDE 23

William Sandqvist william@kth.se

Field image becomes as for a bar magnet

slide-24
SLIDE 24

William Sandqvist william@kth.se

slide-25
SLIDE 25

William Sandqvist william@kth.se

Motor principle

A current carrying conductor is located in a magnetic field B (the length l is the portion of conductor that is in the field). The magnetic force lines can not

  • intersect. The field is therefore enhanced on one side of the conductor and

weakened on the other. A force F acts to eject the leader out of the field.

Force acts in electric motors based on this principle.

l I B F ⋅ ⋅ =

slide-26
SLIDE 26

William Sandqvist william@kth.se

DC-motor

The permanent magnet DC motor utilizes the relationship F = B·I·l When the loop is twisted half a turn the force action would stop if not a switching device changes the current direction.

l I B F ⋅ ⋅ =

slide-27
SLIDE 27

William Sandqvist william@kth.se

Generator principle

Figure: Electricity - Basic Navy Training Courses U.S. GOVERNMENT PRINTING OFFICE 1945

Conversely, a voltage/current is induced in a conductor moving in a magnetic field.

slide-28
SLIDE 28

William Sandqvist william@kth.se

Induction Law, amount (Faraday)

dt d N e Φ =

The induced emf amount is proportional to flux speed of change. Faraday induction law. When applied to a coil instead of a single conductor the emf also becomes proportional to the number of windings N.

slide-29
SLIDE 29

William Sandqvist william@kth.se

Lenz law (Direction = counteracting )

Lenz law says that the induced voltage have a direction so the current will counteract the movement. (If it were the other way around so it would be easy to build a perpetual motion machine!)

slide-30
SLIDE 30

William Sandqvist william@kth.se

Quick question? Lenz law (9.9)

We will draw out the magnet (as a cork from a bottle) from the coil. Which direction will the current I have?

slide-31
SLIDE 31

William Sandqvist william@kth.se

Quick question! Lenz law (9.9)

S N I

The current will counteract the movement. So will it be if the magnet leaves the coil at the "south side" (= attraction between the coil and magnet). Right hand rule then gives the current direction is out from the winding.

S

We will draw out the magnet (as a cork from a bottle) from the coil. Which direction will the current I have?

slide-32
SLIDE 32

William Sandqvist william@kth.se

slide-33
SLIDE 33

William Sandqvist william@kth.se

Inductance

  • A constant current I through a coil

gives rise to a magnetic flow Φ. The flux is proportional to the current I, but also depends on the coil's geometric design. If the current is unchanging, constant, there will be no voltage drop across the coil U = 0. The proportionality constant L is the coil inductance with the unit Henry [H].

I L ⋅ = Φ

slide-34
SLIDE 34

William Sandqvist william@kth.se

Self-induction

  • A changing current I is giving rise to a changing flux, and

then a counteracting voltage e across the coil is induced. This is the self-induction. The coil may be a voltage drop caused by the current rate of change.

dt di L e =

Lentz law counteracting here means that we are defining the direction of the voltage drop as for a resistor.

slide-35
SLIDE 35

William Sandqvist william@kth.se

slide-36
SLIDE 36

William Sandqvist william@kth.se

Inductance calculation

For coils that have constant flux density over the entire cross- sectional area, there is a simple formula for calculating the

  • inductance. This applies toroidal coil and ”elongated coil "

( l/D >> 10 ).

µ µ0 µ0

l A N l A N L

r

⋅ ⋅ = ⋅ ⋅ =

2 2

µ µ µ

Why do you think the factor N2 is included in all inductance calculation formulas?

l D

A A A

l l

slide-37
SLIDE 37

William Sandqvist william@kth.se

(9.11) Quick Question? L ∝ N2

Suppose that a coil is wound with N = 100 turns and then have the inductance 1 H. How many turns will be unwound if you want to change the coil so that the inductance becomes ½ H? l A N L ⋅ ⋅ = µ

2

slide-38
SLIDE 38

William Sandqvist william@kth.se

(9.11) Quick Question! L ∝ N2

  • L = 1 = 1002⋅K K = 10-4
  • 0,5 = N2⋅10-4 N = √5000 = 71

Unwound 29 turns so the inductance is halved! (100-29=71) l A N L ⋅ ⋅ = µ

2

Suppose that a coil is wound with N = 100 turns and then have the inductance 1 H. How many turns will be unwound if you want to change the coil so that the inductance becomes ½ H?

slide-39
SLIDE 39

William Sandqvist william@kth.se

slide-40
SLIDE 40

William Sandqvist william@kth.se

Inductor transients

Since the coil counteracts all current changes one may wonder what happens when you connect or disconnect, the coil to a circuit?

slide-41
SLIDE 41

William Sandqvist william@kth.se

Inductor transients

What happens when a coil is connected to a battery? We assume that the coil in addition to its inductance L, also has a resistance R from the wire the coil is wound with. (If R is the internal resistance of the coil then we can not reach to measure uR and uL separately.)

slide-42
SLIDE 42

William Sandqvist william@kth.se

Inductor transients

What happens when a coil is connected to a battery? We assume that the coil in addition to its inductance L, also has a resistance R from the wire the coil is wound with. (If R is the internal resistance of the coil then we can not reach to measure uR and uL separately.) t i L R i E t i L u u u E

L

d d d d

L R

⋅ + ⋅ =

= + =

slide-43
SLIDE 43

William Sandqvist william@kth.se

Inductor transients

t i L R i E d d ⋅ + ⋅ =

  • The solution to this differential equation is a exponential-

function with a time constant.

⋅ =

⋅ − L R t

e R E t i 1 ) (

slide-44
SLIDE 44

William Sandqvist william@kth.se

The inductor time constant

⋅ =

⋅ − L R t

e R E t i 1 ) ( L/R is called the time constant and is usually denoted by τ.

R L = τ

slide-45
SLIDE 45

William Sandqvist william@kth.se

slide-46
SLIDE 46

William Sandqvist william@kth.se

Energy stored in magnetic field

2 m

2 1 I L W ⋅ ⋅ =

2

2 1 d d d d d

∞ = = ∞ = = ∞ = =

⋅ ⋅ = ⋅ = ⋅ ⋅ = =

I L i i L t t i i L t p W

I i i t t t t

R E I =

Instantaneous power: Energy: Stored energy in the magnetic field: t i L i u i p

L

d d ⋅ ⋅ = ⋅ =

Remember the formula, but its allowed to skip the derivation…

t i L uL d d ⋅ =

slide-47
SLIDE 47

William Sandqvist william@kth.se

Energy in capacitor and inductor

2 E 2 L

2 1 2 1 U C W I L W ⋅ = ⋅ =

  • Imagined electromagnetic motor:

WM = L·I2/2 copper ”tolerate” 3A/mm2 inductance 1 H is a reasonable value for a motor.

  • Imagined electrostatic motor:

WE = C·U2/2 air "tolerates” 2,5 kV/mm capacitance 100 pF is a resonable value for a

  • motor. 1 mm between moving parts is reasonable.

J 10 13 , 3 2 ) 10 5 , 2 ( 10 100 J 5 , 4 2 3 1

4 2 3 12 E 2 M − −

⋅ = ⋅ ⋅ ⋅ ≈ = ⋅ ≈ W W

Now all electrostatic motors are micromechanical ... According to the calculations this fact will probably persist!

slide-48
SLIDE 48

William Sandqvist william@kth.se

Inductors

slide-49
SLIDE 49

William Sandqvist william@kth.se

Continuity requirements

In a capacitor, charging is always continuous The capacitor voltage is always continuous. In an inductor the magnetic flux is always continuous In an inductor current is always continuous.

The Capacitor has voltage inertia

Summary

The Inductor has current inertia

slide-50
SLIDE 50

William Sandqvist william@kth.se