SlideShare a Scribd company logo
Hardware Basics
Electricity
• Electricity is the flow of electrons
• Atoms contain
– In the nucleus (center)
• Protons with a positive charge
• Neutrons with no charge (no consequence here)
– “Orbiting” around the nucleus
• Electrons with a negative charge
-
+
+
+
+
-
-
-
Charged Atoms
• Atoms with more protons that electrons
– Positively charged
– Try to acquire additional electrons to get back in balance
• Atoms with more electrons than protons
– Negatively charged
– Want to give up electrons to get back in balance
• If you set up an imbalance, electrons will try to
jump (flow) between atoms to correct this
– This flow is electricity
Conductors and Insulators
• Materials that allow electrons to flow easily are
conductors
– Most metals are good conductors
• Materials that don’t allow electrons to flow easily
are insulators
– E.g., plastic, rubber, glass
• Some materials can be influenced to change from
conducting to insulating (a very useful property)
Semiconductors
Basic Law of Charges
• Like charges repel each other
• Opposite charges attract each other
• Exert a force
– Can do work: e.g., move something
+ -
+ + - -
Charge
• Charge is measured in Coulombs ( C )
– (A unit we won’t use much)
– Measure of how many more protons than
electrons in a substance
– 1 Coulomb = 2.15 x 1018 excess protons
2.15 x 1018
extra electrons
=
-1 C
Electromotive Force
(Voltage)
• Charge has the ability to do work
– A “potential” to e.g. move something in one
direction or another
• Difference in potential (in charge) provides a
force: Electromotive Force (EMF): Voltage
Extra
electron
s EMF (voltage)
+
Flow of electrons
• If this is a conductor then ½ the excess
electrons will very rapidly flow to the other
end to balance the charge
Conductor
Extra
electron
s EMF (voltage)
+
Flow of electrons
• If this is a conductor then ½ the excess
electrons will very rapidly flow to the other
end to balance the charge
Conductor
0 voltage
½ the extra electrons
Flow of electrons
• If this is a conductor then ½ the excess
electrons will very rapidly flow to the other
end to balance the charge
• And then things are not very interesting
Conductor
0 voltage
½ the extra electrons
Flow of electrons
• If this is a conductor then ½ the excess
electrons will very rapidly flow to the other
end to balance the charge
• And then things are not very interesting
– Hence we set up circuits
(cycles, loops) to keep this
going
Flow of Electrons
• “Current” is the flow of electrons
• Measured in Amperes (Amp, or A)
– 1A is 1 Coulomb of charge flowing past a point
per second
Current vs. Voltage
• Water analogy
– Useful, but only goes so far
• Coulombs analogous to quantity (gallons)
• Amps analogous to flow rate (gallons / sec)
• Voltage analogous to pressure (lbs/ft2)
Resistance
• Can have a lot of flow at low pressure or a
lot of pressure but low volume
– Depends on the size of the pipe
• Resistance is analogous to the size of the
pipe
• Resistance is the opposition to current flow
• Measured in Ohms ( Ω )
Ohm’s Law
• Relates current, voltage, and resistance
• Current normally denoted by variable I
• Voltage normally denoted by variable V
• Resistance normally denoted by variable R
V = I * R
Ohm’s Law
• V = IR
• R = V / I
• I = V / R V
I R
Ohm’s Law
• In the electronics we will do, we tend to
(try to) hold the voltage constant (or zero)
– Typically 5v
• starting to use 3.3v, but 5v still most common
• I = V / R I = 5 / R
– Raise the resistance, current drops
– Lower the resistance, current rises
Ohm’s Law
• I = V / R I = 5 / R
– Raise the resistance, current drops
– Lower the resistance, current rises
• What happens if we lower the resistance
towards zeros?
Ohm’s Law
• I = V / R I = 5 / R
– Raise the resistance, current drops
– Lower the resistance, current rises
• What happens if we lower the resistance
towards zeros?
– Current goes towards infinity
– Power = V * I (related to heat)
• Boom! (or Poof!)
Current Limiting
• Important
– This is how you (literally) fry hardware if you don’t pay
attention (trust me, I know)
• Always think carefully (and check!) that the path
from 5v source
– From power supply, or from output pin of a chip
to ground (0v location) has appropriate resistance
– Not a “short circuit” ~0Ω
– Current limiting resistor at value needed to stay within
current limits of the device
Aside: Units
• Volts, Amps, Ohms
• Normally use metric system unit prefixes
mega M million 1,000,000 106
kilo k thousand 1,000 103
one 1 100
milli m thousandth 0.001 10-3
micro μ millionth 0.000 001 10-6
nano n billionth 10-9
pico p trillionth 10-12
Examples
5V with 10Ω  5/10 A = 0.5A = 500mA
• For typical chips you will use = Poof!
5V with 100Ω  5/100 A = 50mA
• Still Poof!
5V with 250Ω  5/250 A = 20mA
• OK for PIC processors, not for lots of other digital electronics
5V with 10kΩ  5/10000 A = 0.5mA
• Good for most digital electronics
Schematic Diagrams xx
• Wire, connection, cross, hop-over
• Resistor, variable resistor (pot, rheostat)
• Battery, switch
• Capacitor, electrolytic capacitor
• Diode, LED
• Transistor (PNP, NPN)
• Inductor, transformer
• Integrated circuit
Schematic Diagrams
AC vs. DC
• DC – Direct Current
– Current flows steadily in one direction
– Most of what we will do is DC
• AC – Alternating Current
– Current flows in one direction then another
– Wall current does this
• Alternating 60 times per sec
• 60 Hz
V
V
Capacitance
• Capacitor
– Device with two conducting plates separated by
insulating material (called dielectric)
– Stores electric charge in the dielectric
– Water metaphor
• Consider a pipe with a rubber balloon blocking it
• DC current bulges out the balloon (charges the capacitor)
– But then stops flowing
– Release the pressure the charge drains back out over time
• AC current can go back and forth continuously
Capacitor blocks DC but allows AC to pass
Capacitance
• Capacitance is measured in Farads ( F )
and denoted by variable C
– Amount of charge divided by voltage across
plates
• Charge (in Coulombs) denoted by Q
• C = Q / V
Series and Parallel Circuits
• Series circuit
• Parallel circuit
Series and Parallel Circuits
• Combining resistors
• Rtotal-series = R1 + R2
• Rtotal-par = (R1 * R2) / (R1 + R2)
R1 R2
R1
R2
Series and Parallel Circuits
Combining capacitors
• Ctotal-series = (C1 * C2) / (C1 + C2)
• Ctotal-par = C1 + C2
C1 C2
C1
C2
Digital Electronics
• Computer circuits treat signals as digital
values
– Consider signals to only have two states: 1 or 0
– +5v is considered to be “1”
– 0v is considered to be “0”
Digital Electronics
• But need to leave some room for
error or fluctuation
– Between VHMin and +5v considered 1
– Between 0v and VLmax considered 0
– Between VLmax and VHMin is undefined
(and unpredictable)
• Can pass through this but you don’t want
to stay there long
+5v
0v
VHMin
VLmax
1
0
??
hardware.ppt

More Related Content

Similar to hardware.ppt

Auto 1 electrical fundamentals
Auto 1 electrical fundamentalsAuto 1 electrical fundamentals
Auto 1 electrical fundamentals
Craig Kielb
 
MODULE 1.ppt
MODULE 1.pptMODULE 1.ppt
MODULE 1.ppt
honeymariyambaby
 
Auto 1 electrical fundamentals
Auto 1 electrical fundamentalsAuto 1 electrical fundamentals
Auto 1 electrical fundamentals
Craig Kielb
 
H06 elo a
H06 elo aH06 elo a
Electricity and Electric Current
Electricity and Electric CurrentElectricity and Electric Current
Electricity and Electric Current
Bennet Hailink
 
Basic electronics by Prof. K. Adisesha
Basic electronics  by Prof. K. AdiseshaBasic electronics  by Prof. K. Adisesha
Basic electronics by Prof. K. Adisesha
Prof. Dr. K. Adisesha
 
Electricity class with additional info
Electricity class with additional infoElectricity class with additional info
Electricity class with additional info
swastik999
 
Week 1 intro powerpoint
Week 1 intro powerpointWeek 1 intro powerpoint
Week 1 intro powerpoint
Craig Kielb
 
Fundamental electronic.pptx
Fundamental electronic.pptxFundamental electronic.pptx
Fundamental electronic.pptx
HCCTAndTechnologycom
 
FREE AND BOUND CURRENTS Pooja chandravanchi
FREE AND BOUND CURRENTS Pooja chandravanchiFREE AND BOUND CURRENTS Pooja chandravanchi
FREE AND BOUND CURRENTS Pooja chandravanchi
Rai Saheb Bhanwar Singh College Nasrullaganj
 
Basic electronics Darya
Basic electronics  DaryaBasic electronics  Darya
Basic electronics Darya
Darya khan
 
electric_current_and_circuits.pdf
electric_current_and_circuits.pdfelectric_current_and_circuits.pdf
electric_current_and_circuits.pdf
ShakirMommand
 
Electricity 101.pptx
Electricity 101.pptxElectricity 101.pptx
Electricity 101.pptx
abdul basit
 
Electricity
ElectricityElectricity
Electricity
Jainam Mehta
 
ohm's law conductor insulator electric circuit ammeter voltmeter
ohm's law conductor insulator electric circuit ammeter voltmeterohm's law conductor insulator electric circuit ammeter voltmeter
ohm's law conductor insulator electric circuit ammeter voltmeter
Salman Salman
 
ELECTRONICS 10: SERIES CIRCUIT
ELECTRONICS 10: SERIES CIRCUITELECTRONICS 10: SERIES CIRCUIT
ELECTRONICS 10: SERIES CIRCUIT
paulangelomacaraeg
 
Current, Voltage, and Resistance.ppt
Current, Voltage, and Resistance.pptCurrent, Voltage, and Resistance.ppt
Current, Voltage, and Resistance.ppt
XgApaz
 
Electric current.pptx
Electric current.pptxElectric current.pptx
Electric current.pptx
theresabalatico1
 

Similar to hardware.ppt (20)

Auto 1 electrical fundamentals
Auto 1 electrical fundamentalsAuto 1 electrical fundamentals
Auto 1 electrical fundamentals
 
MODULE 1.ppt
MODULE 1.pptMODULE 1.ppt
MODULE 1.ppt
 
Auto 1 electrical fundamentals
Auto 1 electrical fundamentalsAuto 1 electrical fundamentals
Auto 1 electrical fundamentals
 
H06 elo a
H06 elo aH06 elo a
H06 elo a
 
Electricity and Electric Current
Electricity and Electric CurrentElectricity and Electric Current
Electricity and Electric Current
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
Basic electronics by Prof. K. Adisesha
Basic electronics  by Prof. K. AdiseshaBasic electronics  by Prof. K. Adisesha
Basic electronics by Prof. K. Adisesha
 
Electricity class with additional info
Electricity class with additional infoElectricity class with additional info
Electricity class with additional info
 
Week 1 intro powerpoint
Week 1 intro powerpointWeek 1 intro powerpoint
Week 1 intro powerpoint
 
Fundamental electronic.pptx
Fundamental electronic.pptxFundamental electronic.pptx
Fundamental electronic.pptx
 
TORQUE Antima mehta
TORQUE Antima mehtaTORQUE Antima mehta
TORQUE Antima mehta
 
FREE AND BOUND CURRENTS Pooja chandravanchi
FREE AND BOUND CURRENTS Pooja chandravanchiFREE AND BOUND CURRENTS Pooja chandravanchi
FREE AND BOUND CURRENTS Pooja chandravanchi
 
Basic electronics Darya
Basic electronics  DaryaBasic electronics  Darya
Basic electronics Darya
 
electric_current_and_circuits.pdf
electric_current_and_circuits.pdfelectric_current_and_circuits.pdf
electric_current_and_circuits.pdf
 
Electricity 101.pptx
Electricity 101.pptxElectricity 101.pptx
Electricity 101.pptx
 
Electricity
ElectricityElectricity
Electricity
 
ohm's law conductor insulator electric circuit ammeter voltmeter
ohm's law conductor insulator electric circuit ammeter voltmeterohm's law conductor insulator electric circuit ammeter voltmeter
ohm's law conductor insulator electric circuit ammeter voltmeter
 
ELECTRONICS 10: SERIES CIRCUIT
ELECTRONICS 10: SERIES CIRCUITELECTRONICS 10: SERIES CIRCUIT
ELECTRONICS 10: SERIES CIRCUIT
 
Current, Voltage, and Resistance.ppt
Current, Voltage, and Resistance.pptCurrent, Voltage, and Resistance.ppt
Current, Voltage, and Resistance.ppt
 
Electric current.pptx
Electric current.pptxElectric current.pptx
Electric current.pptx
 

Recently uploaded

7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
Danica Gill
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
ufdana
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
zoowe
 
Gen Z and the marketplaces - let's translate their needs
Gen Z and the marketplaces - let's translate their needsGen Z and the marketplaces - let's translate their needs
Gen Z and the marketplaces - let's translate their needs
Laura Szabó
 
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
cuobya
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Florence Consulting
 
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
CIOWomenMagazine
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Brad Spiegel Macon GA
 
Bài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docxBài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docx
nhiyenphan2005
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
cuobya
 
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
fovkoyb
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
zyfovom
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
Javier Lasa
 
Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
Trish Parr
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC
 

Recently uploaded (20)

7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
 
Gen Z and the marketplaces - let's translate their needs
Gen Z and the marketplaces - let's translate their needsGen Z and the marketplaces - let's translate their needs
Gen Z and the marketplaces - let's translate their needs
 
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
 
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
 
Bài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docxBài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docx
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
 
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
 
Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
 

hardware.ppt

  • 2. Electricity • Electricity is the flow of electrons • Atoms contain – In the nucleus (center) • Protons with a positive charge • Neutrons with no charge (no consequence here) – “Orbiting” around the nucleus • Electrons with a negative charge - + + + + - - -
  • 3. Charged Atoms • Atoms with more protons that electrons – Positively charged – Try to acquire additional electrons to get back in balance • Atoms with more electrons than protons – Negatively charged – Want to give up electrons to get back in balance • If you set up an imbalance, electrons will try to jump (flow) between atoms to correct this – This flow is electricity
  • 4. Conductors and Insulators • Materials that allow electrons to flow easily are conductors – Most metals are good conductors • Materials that don’t allow electrons to flow easily are insulators – E.g., plastic, rubber, glass • Some materials can be influenced to change from conducting to insulating (a very useful property) Semiconductors
  • 5. Basic Law of Charges • Like charges repel each other • Opposite charges attract each other • Exert a force – Can do work: e.g., move something + - + + - -
  • 6. Charge • Charge is measured in Coulombs ( C ) – (A unit we won’t use much) – Measure of how many more protons than electrons in a substance – 1 Coulomb = 2.15 x 1018 excess protons 2.15 x 1018 extra electrons = -1 C
  • 7. Electromotive Force (Voltage) • Charge has the ability to do work – A “potential” to e.g. move something in one direction or another • Difference in potential (in charge) provides a force: Electromotive Force (EMF): Voltage Extra electron s EMF (voltage) +
  • 8. Flow of electrons • If this is a conductor then ½ the excess electrons will very rapidly flow to the other end to balance the charge Conductor Extra electron s EMF (voltage) +
  • 9. Flow of electrons • If this is a conductor then ½ the excess electrons will very rapidly flow to the other end to balance the charge Conductor 0 voltage ½ the extra electrons
  • 10. Flow of electrons • If this is a conductor then ½ the excess electrons will very rapidly flow to the other end to balance the charge • And then things are not very interesting Conductor 0 voltage ½ the extra electrons
  • 11. Flow of electrons • If this is a conductor then ½ the excess electrons will very rapidly flow to the other end to balance the charge • And then things are not very interesting – Hence we set up circuits (cycles, loops) to keep this going
  • 12. Flow of Electrons • “Current” is the flow of electrons • Measured in Amperes (Amp, or A) – 1A is 1 Coulomb of charge flowing past a point per second
  • 13. Current vs. Voltage • Water analogy – Useful, but only goes so far • Coulombs analogous to quantity (gallons) • Amps analogous to flow rate (gallons / sec) • Voltage analogous to pressure (lbs/ft2)
  • 14. Resistance • Can have a lot of flow at low pressure or a lot of pressure but low volume – Depends on the size of the pipe • Resistance is analogous to the size of the pipe • Resistance is the opposition to current flow • Measured in Ohms ( Ω )
  • 15. Ohm’s Law • Relates current, voltage, and resistance • Current normally denoted by variable I • Voltage normally denoted by variable V • Resistance normally denoted by variable R V = I * R
  • 16. Ohm’s Law • V = IR • R = V / I • I = V / R V I R
  • 17. Ohm’s Law • In the electronics we will do, we tend to (try to) hold the voltage constant (or zero) – Typically 5v • starting to use 3.3v, but 5v still most common • I = V / R I = 5 / R – Raise the resistance, current drops – Lower the resistance, current rises
  • 18. Ohm’s Law • I = V / R I = 5 / R – Raise the resistance, current drops – Lower the resistance, current rises • What happens if we lower the resistance towards zeros?
  • 19. Ohm’s Law • I = V / R I = 5 / R – Raise the resistance, current drops – Lower the resistance, current rises • What happens if we lower the resistance towards zeros? – Current goes towards infinity – Power = V * I (related to heat) • Boom! (or Poof!)
  • 20. Current Limiting • Important – This is how you (literally) fry hardware if you don’t pay attention (trust me, I know) • Always think carefully (and check!) that the path from 5v source – From power supply, or from output pin of a chip to ground (0v location) has appropriate resistance – Not a “short circuit” ~0Ω – Current limiting resistor at value needed to stay within current limits of the device
  • 21. Aside: Units • Volts, Amps, Ohms • Normally use metric system unit prefixes mega M million 1,000,000 106 kilo k thousand 1,000 103 one 1 100 milli m thousandth 0.001 10-3 micro μ millionth 0.000 001 10-6 nano n billionth 10-9 pico p trillionth 10-12
  • 22. Examples 5V with 10Ω  5/10 A = 0.5A = 500mA • For typical chips you will use = Poof! 5V with 100Ω  5/100 A = 50mA • Still Poof! 5V with 250Ω  5/250 A = 20mA • OK for PIC processors, not for lots of other digital electronics 5V with 10kΩ  5/10000 A = 0.5mA • Good for most digital electronics
  • 23. Schematic Diagrams xx • Wire, connection, cross, hop-over • Resistor, variable resistor (pot, rheostat) • Battery, switch • Capacitor, electrolytic capacitor • Diode, LED • Transistor (PNP, NPN) • Inductor, transformer • Integrated circuit
  • 25. AC vs. DC • DC – Direct Current – Current flows steadily in one direction – Most of what we will do is DC • AC – Alternating Current – Current flows in one direction then another – Wall current does this • Alternating 60 times per sec • 60 Hz V V
  • 26. Capacitance • Capacitor – Device with two conducting plates separated by insulating material (called dielectric) – Stores electric charge in the dielectric – Water metaphor • Consider a pipe with a rubber balloon blocking it • DC current bulges out the balloon (charges the capacitor) – But then stops flowing – Release the pressure the charge drains back out over time • AC current can go back and forth continuously Capacitor blocks DC but allows AC to pass
  • 27. Capacitance • Capacitance is measured in Farads ( F ) and denoted by variable C – Amount of charge divided by voltage across plates • Charge (in Coulombs) denoted by Q • C = Q / V
  • 28. Series and Parallel Circuits • Series circuit • Parallel circuit
  • 29. Series and Parallel Circuits • Combining resistors • Rtotal-series = R1 + R2 • Rtotal-par = (R1 * R2) / (R1 + R2) R1 R2 R1 R2
  • 30. Series and Parallel Circuits Combining capacitors • Ctotal-series = (C1 * C2) / (C1 + C2) • Ctotal-par = C1 + C2 C1 C2 C1 C2
  • 31. Digital Electronics • Computer circuits treat signals as digital values – Consider signals to only have two states: 1 or 0 – +5v is considered to be “1” – 0v is considered to be “0”
  • 32. Digital Electronics • But need to leave some room for error or fluctuation – Between VHMin and +5v considered 1 – Between 0v and VLmax considered 0 – Between VLmax and VHMin is undefined (and unpredictable) • Can pass through this but you don’t want to stay there long +5v 0v VHMin VLmax 1 0 ??