Professional Documents
Culture Documents
كتاب برمجة المتحكمات المصغرة6
كتاب برمجة المتحكمات المصغرة6
ﺍﻟﺘﺠﺎﺭﺏ ﺍﻟﻌﻤﻠﻴﺔ
P rogramming E mbedded S
ystems M
icrocontroller
4.5VAVR
8MHZ3V
Vcc to Gnd
\
20~40mA
200mA
AVR
Itotal = Ioperating_current + (8 x ILED)
2V
150Ω
ILED = V / R = (5 - 2) / 150 = 20mA
2.4mA
Itotal = 2.5mA + 8 x ILED = 8 x 20mA = 162.5mA
AVR
90mAPIC200mA
Source
Sink
Faculty of Electrical and Electronic Eng. 111 Automatic Control & Automation Dept.
LED
IF VF VF VR Luminous Viewing
Type Colour Wavelength
max. typ. max. max. intensity angle
Standard Red 20mA 2.0V 2.3V 5V 5mcd @ 10mA 60° 660nm
Super bright Bright red 25mA 3.0V 3.4V 5V 80mcd @ 10mA 60° 625nm
Standard Yellow 20mA 2.1V 2.3V 5V 32mcd @ 10mA 60° 590nm
Standard Green 20mA 3.2V 3.5V 5V 32mcd @ 10mA 60° 565nm
High intensity Blue 20mA 3.4V 3.6V 5V 60mcd @ 20mA 50° 430nm
Super bright White 20mA 3.4V 3.6V 5V 500mcd @ 20mA 60° 660nm
IF max
VF typ
VF max
VR max
Luminous intensity
Viewing angle
Wavelength
2V/20mA
=
5− 2 3
= = = 150Ω
20 20
= × =( − ) ×
= (5 − 2) × 20 = 60
1/4Watt 150Ω
20mA––
On/Off
BJT
FET
FET/MOSFET BJT
VBE=0.6V 1 – 10mA
nS10 (uS) 200MHZ
12
(10 )
100V
On/Off
IB=0Off state ·
IC = IB x hFE On active state ·
:(On saturate state ·
Faculty of Electrical and Electronic Eng. 113 Automatic Control & Automation Dept.
BC337
IC_max=800mA, V BE_saturate =0.65V, VCE_saturate=0.2V,
hFE = 100, VCE_max=50V
IC
VLED=2VILED= 20mA
IC = 5 x 20mA = 100mA
− 5−2
= = = 150Ω
20
=( − )×
= (5 − 2) × 100 = 300
100
= × → = = =1
100
= × = 0.2 × 100 = 20
=( − )×
= (5 − 0.7) × 1 = 4.3
114
Practical Class 6 Programming Microcontrollers
BJT
(1) اﻟﺸﲁ “1”
GND /
NPN
(2) اﻟﺸﲁ
“0”
VCC /
PNP
VCC /NPN
GND/PNP
Faculty of Electrical and Electronic Eng. 115 Automatic Control & Automation Dept.
5V21
0.7V
(4) اﻟﺸﲁ
=
+
1
=5 = 0.87
4.7 + 1
Relay
3V, 5V, 6V, 9V, 12V, 15V, 24V, 36V, 48V, 60V
Relay
(6) اﻟﺸﲁ
(5) اﻟﺸﲁ
24V12V65
Q8 “1”6
P, SK1
Electromotive Force
D1, D2
“0” or “1”
Q
(7) اﻟﺸﲁ NPN7
Q
Pull-Up
.(5V, 12V, ..
“1”
“0”
Faculty of Electrical and Electronic Eng. 117 Automatic Control & Automation Dept.
MOSFETL
“N”
VDS_max =200V, IDS_max = 160mA, RDS = 0.16Ω, VG =5V
VLoad = 15V, ILoad=100mA
VG =5V
EMF
5V ~ 25V
“P” MOSFET L
VDS_max =100V, IDS_max = 12A, RDS = 0.3Ω, VG =15V
Faculty of Electrical and Electronic Eng. 119 Automatic Control & Automation Dept.
120
Practical Class 6 Programming Microcontrollers
2V
15mA
–– ––
–
P
“1”
“0”
P Q13
“0”
Q13 15V
“1”
“0”
“0”
Faculty of Electrical and Electronic Eng. 121 Automatic Control & Automation Dept.
“0”
BT138220V/50HZ IN1
“1”OUT1,2
C12 R51
95%
90V~265V / 45HZ~55HZ
220V AC
5V DC
220V
220V
5V, 6V, 9V, 12V, 15V, 28V, 24V, 36V, 48V
200mA, 300mA, 400mA, 500mA, 1000mA, 1500mA
6x2, 8x2, 9x2, 12x2, 15x2, etc…
Faculty of Electrical and Electronic Eng. 123 Automatic Control & Automation Dept.
+ , - , ~
~
+ , -
1A, 2A, 4A, 6A, 10A, 14A, 25A, 40A
124
Practical Class 6 Programming Microcontrollers
Vdc =
2Vm
Vdc =
2Vm Vdc = Vm
π π π
Vm Vm Vm
V = V = V =
rms 2 rms 2
rms 2
2 2V 2 2V 2V
Vdc = rms
Vdc = rms
Vdc = rms
p
p p
VDiod = Vm VDiod = 2Vm VDiod = Vm
Faculty of Electrical and Electronic Eng. 125 Automatic Control & Automation Dept.
×
=
×
78XX78XX, 79XX
79XX
5V, 6V, 8V, 9V, 10V, 12V, 15V, 18V, 24V
1A 78XX or 79XX
1A
Transformer + Rectifier
Faculty of Electrical and Electronic Eng. 127 Automatic Control & Automation Dept.
800mA5V
800mA
20%
1000mA
100uF ~ 220uF
100nF
100nF
Diode
Faculty of Electrical and Electronic Eng. 129 Automatic Control & Automation Dept.
= . × + +