Académique Documents
Professionnel Documents
Culture Documents
POWER SUPPLY:
To run te electronic gadget at o+e it is pro!ided by so+e po#er supply%
Te +icrocontroller used 2at/3c1.5 re,uires .4! *%C supply% Te *T(- recei!er used
2+t//G05 re,uires 1! *%C% so design of tese regulated po#er supply is also an i+portant
part in ard#are design% Te &%C po#er supply fro+ +ains is ta$en and regulated using
te rectifiers%
-or design of a regulated po#er supply co+ponents used are>
IN4007
0
1
2
70!
LE
1
2
1000u"
T!A"#$%!ME!
&
'
4
IN4007
(
1)
2
1
100u"
4B0 C &C
S=''7Y
10 Hc
A
Transfor+er%
*iodes%
Rectifiers%
Regulated IC cips%
Capaciti!e filters%
Trans former
& transfor+er is re,uired to couple te +ains to te actual po#er supply
circuit% Tis is re,uired to isolate te +ains fro+ te actual regulated po#er
supply circuit and te oter part of te $it% Tis isolation eli+inates te da+e of
te $it to any po#er supply !ariations or fro+ a faulty soc$%
-or a transfor+er so#n belo#>
>
Diodes:
In bride rectifier four diodes are used% Te specifications of diodes are cosen
as>
'IC d input !oltage%
Si diode is better%
'o#er dissipation is $ept fixed #it respect to current troug te diode%
bunction capacitance need not be considered for fre,uencies Y. $H9%
V5 V6
#5 #6
V5 : #6 : n5
V6 #5 n6
RECTIFIERS:
Rectification is a process of con!ersion of &C to *C% Here, te &C of transfor+er
output is gi!en to te rectifier input, #ic con!erts it to *C output% Basically, bridge
rectifiers or diodes arranged in bridge called *iode arrange+ent are used for po#er
supply design%
& bridge rectifier +a$es use of four diodes in a bridge arrange+ent to acie!e
full@#a!e rectification% Tis is a #idely used configuration, bot #it indi!idual diodes
#ired as so#n and #it single co+ponent bridges #ere te diode bridge is #ired
internally
Current Flow in the Bridge Rectifier
-or bot
positi!e and
negati!e s#ings
of te
transfor+er, tere is a for#ard pat troug te diode bridge% Bot conduction pats
cause current to flo# in te sa+e direction troug te load resistor, acco+plising full@
#a!e rectification%
Wile one set of diodes is for#ard biased, te oter set is re!erse biased and
effecti!ely eli+inated fro+ te circuit%
Diode Bridge:
& diode bridge is an arrange+ent of four diodes connected in a bridge circuit as
so#n belo#, tat pro!ides te sa+e polarity of output !oltage for any polarity of te
input !oltage% Wen used in its +ost co++on application, for con!ersion of alternating
current 2&C5 input into direct current 2*C5 output, it is $no#n as a bridge rectifier% Te
diagra+ describes a diode@bridge design $no#n as a full@#a!e rectifier or Lraet9 circuit%
Tis design can be used to rectify single pase &C #en no transfor+er center tap is
a!ailable
Bridge Rectifier Circuit:
Te essential feature of tis arrange+ent is tat for bot polarities of te
!oltage at te bridge input, te polarity of te output is constant%
Capacitors:
Capaciti!e filters are used stabili9ed or perfect regulation of te !oltage% Te
capaciti!e filters are opted because, tey are +ore efficient% But tey are also +ore costly%
*ifferent types of capacitors are>
.% Cera+ic capacitors%
4% )lectrolyte capacitors%
B% 'aper?(ica capacitors%
A% Sil!er capacitors%
1% Tantalu+ capacitors%
Cera+ic, 'aper?(ica, Sil!er are nonpolari9ed capacitors% )lectrolyte and Tantalu+ are
polari9ed capacitors% -or ig fre,uency, Cera+ic capacitors are used% -or lo#
fre,uencies, )lectrolyte capacitors are used%
inear regulated !C"s:
7inear regulated IC<s are used for best regulated output% Te output fro+ tese
regulated IC<s is gi!en to +icrocontroller and *T(- recei!er% Tese linear regulated IC<s
are self protecti!e 2any accidental sot circuit in te IC is grounded auto+atically5%
G/xx series ICs are used for ;E!e< supply%
G3xx series ICs are used for ;@!e< supply%
G/xx and G3xx series ICs are fixed !oltage regulators% 7( B.G is a !ariable
!oltage regulator%
-or +icrocontroller and *T(- recei!er #e are using ;E!e< !oltage regulation%
-or ;E!e< !oltage regulation te connections are as so#n belo#>
Co+bining all te circuits #e can design a circuit #ose output is a perfect
regulated !oltage% Te regulated po#er supply $it used to po#er te +icrocontroller and
*T(- recei!er is as so#n belo#>
G/xx .
.
4
.
B
.
INPUT O!($!(
GND
Br#+)%
r%c(#&#%r
A.C
*'#n"
=?56 =?4; C;-
C56-
-IL> R)L=7&T)* 'OW)R S=''7Y
CIRC=IT
ULN6?47,!&&%r
-eatures>
100@+& Rated Collector Current 2Single Output5
Hig@Coltage Outputs % % % 10 C
Output Cla+p *iodes
Inputs Co+patible Wit Carious Types of
logic
Relay *ri!er &pplications
Co+patible #it =7N4/00& Series
+%"cr#$(#on8or+%r#n) #n&or*'(#on
Te =7N4/0B& is a ig@!oltage, ig@
current *arlington transistor array% Te de!ice
consists of eigt npn *arlington pairs tat feature
ig@!oltage outputs #it co++on@catode cla+p diodes for s#itcing inducti!e loads%
Te collector@current rating of eac *arlington pair is 100 +&% Te *arlington pairs +ay
be connected in parallel for iger current capability%
&pplications include relay dri!ers, a++er dri!ers, la+p dri!ers, display dri!ers 27)*
and gas discarge5, line dri!ers, and logic buffers% Te =7N4/0B& as a 4%G@$Oseries base
resistor for eac *arlington pair for operation directly #it TT7 or 1@C C(OS de!ices%
7ogic diagra+>
',"o!(% *'/#*!* r'(#n)" '( 6;C &r%%2'#r (%*$%r'(!r% @!n%"" o(1%r0#"% no(%+A
Collector@e+itter
!oltageeeeeeeeeeeeeeeeeeeeeeeeeeee% 10 C
Input !oltage 2see Note .5
eeeeeeeeeeeeeeeeeeeeeeeeee%B0 C
Continuous collector currenteeeeeeeeeeeeeeeeeeeeeeee%
100 +& %
Output cla+p diode
currenteeeeeeeeeeeeeeeeeeeeeeeee 100 +&
Total substrate@ter+inal
currenteeeeeeeeeeeeeeeeeeeeeeee @4%1 &
'ac$age ter+al i+pedance, b& 2see Notes 4 and B5> *W pac$age TB* C?W N
pac$age TB* C?W
Operating !irtual "unction te+perature,eeeeeeeeeeeeeeeeeeee
Tb .10 C
Storage te+perature range, eeeeeeeeeeeeeeeeeeee%%Tstg
@H1 C to .10 C %
=>LNS 6>>P ,!&&%r
B@State Outputs *ri!e Bus 7ines or Buffer (e+ory &ddress Registers
'N' Inputs Reduce *C 7oading
Hysteresis at Inputs I+pro!es Noise
(argins
D%"cr#$(#on
Tese octal buffers and line dri!ers are
designed specifically to i+pro!e bot te
perfor+ance and density of tree@state
+e+ory address dri!ers, cloc$ dri!ers, and
bus@oriented recei!ers and trans+itters% Te
designer as a coice of
selected co+binations of in!erting andnonin!erting outputs, sy++etrical, acti!e@
lo#output@control 2L5 inputs, and co+ple+entary output@control 2L and L5 inputs% Tese
de!ices feature ig fan@out, i+pro!ed fan@in, and A00@+C noise +argin% Te SNGA7S<
and SNGAS< de!ices can be used to dri!e ter+inated lines do#n to .BBo+s%
',"o!(% *'/#*!* r'(#n)" o-%r o$%r'(#n) &r%%2'#r (%*$%r'(!r% r'n)% @!n%""
o(1%r0#"% no(%+A
Sn'$ "1o(" o& K%# *#cro-#"#on 'n+ M#cro&'"1 $ro)r'**%r
Pro)r'* 0r#((%n #n C 'n)!')%
fincludeYstdio%d
fincludeYreg1.%d
!oid deley2int5:
!oid +sdeley2!oid5:
sbit sen.N'.g0:
sbit sen4N'.g.:
sbit bu99N'.gB:
sbit sig.N'.gA:
sbit sig4N'.g1:
sbit laserN'. gH:
!oid close25:
!oid open25:
!oid bu99er25:
int +N.0000:
!oid +ain25
h
'0N'4N'BN0x00:
'.N0xff:
bu99er25:
sig.N0x00: ??train stop?road go
sig4N0x0.:
open25:
for2::5
h
if2sen.NN0x005
h
sig.N0x0.: sig4N0x00: ??train go?road stop
bu99er25:
close25:
+sdeley25:
#ile2sen4NN0x0.5hi
#ile2sen4NN0x005hi
sig.N0x00: sig4N0x0.: ??train stop?road go
bu99er25:
open25:
i
if2sen4NN0x005
h
sig.N0x0.: sig4N0x00: ??train go?road stop
bu99er25:
close25:
+sdeley25:
#ile2sen.NN0x0.5hi
#ile2sen.NN0x005hi
sig.N0x00: sig4N0x0.: ??train stop?road go
bu99er25:
open25:
i
i
i
!oid +sdeley2!oid5
h
int lN0:
for2lN0:lYN400:lEE5
h
T(O*N0x.0:
T7.N0xfe:
TH.N0xa1:
TR.N.:
#ile2T-.NN05
h
if2laserNN0x005
h
sig.N0x00: sig4N0x0.: ??train stop?road go
bu99er25:
open25:
#ile2laserNN0x005hi
sig.N0x0.: sig4N0x00: ??train go?road stop
bu99er25:
close25:
i
i
TR.N0:
T-.N0:
i
i
!oid bu99er25
h
int y:
for2yN0:yYN/:yEE5
h
bu99N0x0.:deley2.10005:
bu99N0x00:deley2.10005:
i
i
!oid open25
h
'4N0x..:deley2+5:
'4N0xBB:deley2+5:
'4N0x44:deley2+5:
'4N0xHH:deley2+5:
'4N0xAA:deley2+5:
'4N0xcc:deley2+5:
'4N0x//:deley2+5:
'4N0x33:deley2+5:
'4N0x..:deley2+5:
'4N0xBB:deley2+5:
'4N0x44:deley2+5:
'4N0xHH:deley2+5:
'4N0xAA:deley2+5:
'4N0xcc:deley2+5:
'4N0x//:deley2+5:
'4N0x33:deley2+5:
i
!oid close25
h
'4N0x33:deley2+5:
'4N0x//:deley2+5:
'4N0xcc:deley2+5:
'4N0xAA:deley2+5:
'4N0xHH:deley2+5:
'4N0x44:deley2+5:
'4N0xBB:deley2+5:
'4N0x..:deley2+5:
'4N0x33:deley2+5:
'4N0x//:deley2+5:
'4N0xcc:deley2+5:
'4N0xAA:deley2+5:
'4N0xHH:deley2+5:
'4N0x44:deley2+5:
'4N0xBB:deley2+5:
'4N0x..:deley2+5:
i
!oid deley2$5
h
int iN0:
for2iN0:iYN$:iEE5hi
i
Pro)r'* H%/ co+%:
>0A044)00040C4G.0/G
>.00.AB00)A-1B0-1&0-1/0G130--.40.)AC43A*4))
>.00.1B0031.400/-4030.3.40.)0.400)*.40.33-G
>.00.HB00403.-*B03.-*C43A*431.40.)A.400/-CB
>.00.GB00403.)..40.)0.400)*.40.334030-*B0HG
>0)0./B0030-*C43A*431.40.)A.400/-/0CHB)
>.00.3300)A-10/-103-10/-103G1/3.0G1/B-)G1-B
>.00.&300/*&1*4/)40/-./403H-&C43A*431.40.H*
>.00.B300)A.400/-B03H-*.40.)0.400)*/0)1C4*1
>.00.C300/)C4/-0103)103G004010/*B3AC/)10/B0
>0H0.*300HA/03A/0A0CB41
>0.0.*-0044-*
>0A0.)000*43AC4311)
>.00.)A00)A-10&-10B*43BG-3/G)B&.404.HC43BG1
>.00.-A00G-3/G)B&.404.H010B)10BG004010&*B&)
>0&040A003A0/)10&HA/03A/0A0*B14
>0.040)0044C*
>.000/-00G1&0...404.4.4040-G1&044.404.4G140
>.0003-00&0HH.404.4G1&0AA.404.4G1&0CC.404B.
>.000&-00.4G1&0//.404.4G1&033.404.4G1&0..G4
>.000B-00.404.4.4040-G1&044.404.4G1&0HH.4-)
>.000C-0004.4G1&0AA.404.4G1&0CC.404.4G1&0G4
>0)00*-00//.404.4G1&033&-0*&)0C0404.H4G
>.000)*00G1&033.404.4G1&0//.404.4G1&0CC.4G3
>.000-*0004.4G1&0AA.404.4G1&0HH.404.4G1&0&&
>.00.0*0044.404.4.4040-G1&0...404.4G1&033G*
>.00..*00.404.4G1&0//.404.4G1&0CC.404.4G1H*
>.00.4*00&0AA.404.4G1&0HH.404.4G1&044.404CC
>0)0.B*00.4.4040-G1&0..&-0*&)0C0404.HC3
>0G040-00G1&0BB&-0*&)0C4&
>.004.H00)A-*-C*B)*3-))HA/0-/)CHA/03/100G.B
>0G044H000*B*000.0C/0)C/)
>0.044*0044&)
>0B00000004000B-/
>0C000B00G/G-)A-H*/-*G1/.0*0400A&-C
>.0000-00040.AB)A3B&B-/)A3B&BA00B-H/00.-4BB
>.000.-000/*--A/043)A3B&B-/1A0G4A0CC/CBBB-4
>.0004-00CA1A0-AA40C//BA00A-A1H/00.AH-H*-C.
>.000B-00)A/00B0.040A0/.040A0/030044))AG)4.
>.000A-000.3BH0BC&B--1AB-B0)1031A.--))A3BBH
>.0001-00&BH00.0)C-1AC041)0H0&/A0B/)A3B&BG*
>.000H-00-&)A3B&B-/)A3B&BC/C1/4C/C&C1/BC&&/
>.000G-00-0&BC/C1/4C/C&C1/BC&*-)3*))G/0B)H0
>0.04B40000CB
>0000000.--
R%&%r%nc%":
###%/014%co+?tutorial%pt+l
/01. +icrocontroller by 6ennet b% &yala
www.electronicsforu.com*electronicsforu*articles*hits.asp+id,1-.1
Programming Embedded Syste+s> Wit C and LN= *e!elop+ent Tools
by Michael Barr
Basic electronics By> LROB
'ractical transistor circuit design and analysis By> L)R&7* )% WI77I&(S
Sensor @ )lectronic circuit guide boo$ U Colu+e U . By> bOS)'H b%C&RR
'rogra++ing and Custo+i9ing te /01. (icro@controller By> (y$e 'red$o
Te concepts and -eatures of (icro@controllers @ By> Ra" 6a+al
The '0(1 Micro/controller Architecture0 programming 1 Applications
2y3 4enneth 5. Ayala
C(OS?TT7 IC *ata (anuals