ecs642u embedded systems simple electronics william marsh

23
ECS642U Embedded Systems Simple Electronics William Marsh

Upload: brenda-price

Post on 04-Jan-2016

228 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ECS642U Embedded Systems Simple Electronics William Marsh

ECS642U Embedded Systems

Simple Electronics

William Marsh

Page 2: ECS642U Embedded Systems Simple Electronics William Marsh

Outline

• Aims• Resisters and ohms law• LED• Oscilloscope

Page 3: ECS642U Embedded Systems Simple Electronics William Marsh

Aim

• Basic ideas of electronics

• Ignorance– “Software is simple and easy to change” – “Electronics just bolts together. The world is

really digital”

• Know enough to know what you don’t know– … and then ask

Page 4: ECS642U Embedded Systems Simple Electronics William Marsh

Voltage, Current and Resisters

Page 5: ECS642U Embedded Systems Simple Electronics William Marsh

Voltage and Current

• Current– Movement of electric charge (Amps)– Water analogy: volume of water flowing

• Volt– Relates to force on an electric charge (Volts)– Water analogy: pressure of water

• Water: pressure leads to flow• Electricity: voltage leads to current

Page 6: ECS642U Embedded Systems Simple Electronics William Marsh

Resistors

• A resistors resists the flow of current– Larger resistor less current

• Electrons do not flow frely– Collisons electrical

resistance– … and heat

Resistor Symbol

Carbon Film Through

Hole Resistor

Surface Mount

Resistors

Page 7: ECS642U Embedded Systems Simple Electronics William Marsh

Resistor Examples

Resistor

Contact leads

Symbol for resistor

Page 8: ECS642U Embedded Systems Simple Electronics William Marsh

Resistor Labels

• Resistance and power ratings.• Colour bars resistance• Right most colour tolerance• Three digits: A, B, C

Page 9: ECS642U Embedded Systems Simple Electronics William Marsh

Resistor Color Codes

x.01-Silver

X10000000009White

X1000000008Grey

X100000007Purple

X10000006Blue

X1000005Green

X100004Yellow

X10003Orange

X1002Red

X101Brown

X10Black

x.1-Gold

MultiplierDigitBand color

5%Gold

10%Silver

2%Red

1%Brown

ToleranceColor

None ±20%

Page 10: ECS642U Embedded Systems Simple Electronics William Marsh

Example

• The first band is yellow 4• The second band is violet 7• The third band is red, so the multiplier is • Resistor value is )%(51047 2

210

Page 11: ECS642U Embedded Systems Simple Electronics William Marsh

Ohms

• Resistance is measured in Ohms– 1 ohm is the resistance that requires 1 volt

to causes 1 amp of current to flow

Page 12: ECS642U Embedded Systems Simple Electronics William Marsh

Ohm's Law

• Resistance R• Voltage V• Current I

• V = I * R– Voltage need to get

current I through resistor R

• I = V / R– Current resulting

from V applied to R

• R = V / I – Resistance seen

when V causes current I

Page 13: ECS642U Embedded Systems Simple Electronics William Marsh

Ohm's Law – Application I

• Must not draw too much current from KL25Z

• V is 3volts

• Current limit 25mA

• Example– R = 100 Ohms– I = 3 / 100 = 30 mA– NOT OK

• Example– R = 300 Ohms– I = 10 mA– OK

Page 14: ECS642U Embedded Systems Simple Electronics William Marsh

Devices and Circuits

Page 15: ECS642U Embedded Systems Simple Electronics William Marsh

Switch

• Why R?

• When switch open see supply voltage

• R must be large• Pull-up

Page 16: ECS642U Embedded Systems Simple Electronics William Marsh

Printed Circuit Board

• Connect components

• Where are the wires?

Page 17: ECS642U Embedded Systems Simple Electronics William Marsh

Breadboard

• Prototyping

Page 18: ECS642U Embedded Systems Simple Electronics William Marsh

LED and current

Page 19: ECS642U Embedded Systems Simple Electronics William Marsh

What are LEDs?

• Light Emitting Diodes• Diode Symbol + Arrows for light• Points to ground

Page 20: ECS642U Embedded Systems Simple Electronics William Marsh

Measuring

Multi-meterOscilloscope

Page 21: ECS642U Embedded Systems Simple Electronics William Marsh

Digital Multimeter

• Voltmeter– Parallel connection

• Ammeter– Series connection

• Ohmmeter– Without any power supplied

• Adjust range (start from highest limit if you don’t know)

Page 22: ECS642U Embedded Systems Simple Electronics William Marsh
Page 23: ECS642U Embedded Systems Simple Electronics William Marsh

Summary

• It's all fun

• Voltage like pressure• Current like flow rate

• Ohms law: V = I * R