Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/extras/SPS.m4

raw
1 .PS
2 # `SPS.m4 Astrodyne OFM-1501'
3 # AoE p. 666
4 cct_init
5 iflatex(`latexcommand({\sf)')
6
7 del = dimen_
8 T1: transformer(down_ elen_,,,WD21)
9 {"70t" at T1.TP rjust; "$T_1$" at T1.n below}
10 { "$L_m=895\mu$H $L_{\ell}=42\mu$H" at T1.P1+(-del/2,0) above ljust }
11 line left_ del*2/3 from T1.P1
12 Bd1: tline(down_ T1.ht/3,,del/6); { "bead" at last [].nw rjust }
13 D2: diode(down_ T1.ht/3,Z); rlabel(,\shortstack[r]{$D_2$\\P6KE\\$200$})
14 D3: reversed(`diode',to (Here,T1.P2)); rlabel(,,D_3); {T1L: line to T1.P2}
15 HS201: heatsink(,,D) with .ne at T1.P2-(0,del/2); "$\,$HS" at last [].s below
16 pushdef(`dimen_',dimen_*3/4)
17 MF: mosfet(up_ del*2/3,,FdMdSD) with .Channel at (D3,HS201) popdef(`dimen_')
18 line from MF.D to (MF.D,T1L); dot
19 CTRL: box wid 30bp__ ht 16bp__ with .e at (MF.G,MF) "CTRL"
20 line from CTRL.s to (CTRL,MF.S) then to MF.S
21 line from CTRL.n to (CTRL,MF.D) then to MF.D
22 TOP201: box wid MF.D.x-CTRL.w.x+del/6 ht MF.D.y-MF.S.y+del/6 \
23 with .w at CTRL.w-(del/12,0)
24 "$U_1$" at TOP201.nw above ljust; "TOP201" at TOP201.sw below ljust
25 "$D$" at (MF.S,TOP201.n) above rjust
26 "$S$" at (MF.S,TOP201.s) below rjust
27 "$FB$" above rjust at TOP201.w
28 dot(at TOP201.w-(del/4,0))
29 { capacitor(down_ dimen_*4/3); llabel(,,`0.1\mu{}F'); Grnd: Here; ground(,T,E)
30 line from MF.S to (MF.S,Grnd); ground(,T,E) }
31 dot(at Here-(del/2,0)); { line to TOP201.w }
32 { resistor(down_ (Here.y-Grnd.y)/2); rlabel(,33); capacitor(to (Here,Grnd),C)
33 rlabel(,\shortstack[r]{$22\mu{}$F\\50V}); ground(,T,E) }
34 U3b: bi_trans(up_ del,,BUdEC) with .E at Here
35 em_arrows(N,225,del/4) at U3b.e; "$U_{3b}$" at last [].n above ljust
36 spline dashed 3bp__ from U3b.E+(0,del/8) left_ del/2 \
37 then left_ del/6 up_ del/4 then up_ del/4 \
38 then up_ del/4 right_ del/6 then right_ del/2
39
40 L4: inductor(down_ elen_*3/4 from (T1.P2,Grnd)-(0,del/3),W); rlabel(,"7t")
41 Grnd2: ground(,T,E)
42 line from T1.M4Core1.end to (T1.M4Core1,L4)-(0,dimen_/4)
43 line from T1.M4Core2.end to (T1.M4Core2,L4)-(0,dimen_/4)
44 dot(at last [].S+(dotrad_*2,dotrad_*2),dotrad_/2)
45 D4: diode(left_ elen_ from L4.start); rlabel(,,D4); dot
46 { capacitor(down_ to (Here,Grnd2),C+); llabel(,\shortstack[l]{$22\mu{}$F\\50V})
47 ground(,T,E) }
48 dot(at Here-(del,0)); resistor(down_ to (Here,Grnd2)); rlabel(,"$1$k")
49 ground(,T,E)
50 Wc: U3b.C-(del,0)
51 line from D4.end to (Wc,D4.end) then up_ U3b.C.y-D4.end.y then to U3b.C
52
53 L3: inductor(up_ T1.ht with .c at T1+(del*2/3,0),W); rlabel(,"3t")
54 dot(at (L3.end,last [].n)+(-dotrad_*2,dotrad_*2),dotrad_/2)
55 dot(at L3.end); dot(at L3.start)
56 line from T1.S2 right_ (L3.start.x-T1.S2.x)*2
57 X2: dot
58 line down_ del/2; dot
59 D5: parallel_(`Sep=del/2; reversed(`diode',down_ dimen_*2/3,S)',
60 `reversed(`diode',down_ dimen_*2/3,S)'); {"$D_5$" at D5.n above rjust}
61 heatsink(at D5.w-(del/4,0),,U); "HS" at last [].s below
62 dot(at D5.s); line down_ del/2
63 Bm: dot
64 Bo: dot(at L4.end+(0,del/7))
65 line to (Bm,Here) then up (Bm.y-Bo.y)/4
66 capacitor(up_ (Bm.y-Bo.y)/4)
67 { "$2.2$nF" ljust at last [].e "$250$V$_{\hbox{\scriptsize ac}}$" ljust \
68 "($2$)" ljust }
69 capacitor(up_ (Bm.y-Bo.y)/4); line to Bm
70 line from L3.start right_ del
71 capacitor(down_ distance(Here,Bm)*0.4); llabel(,,\shortstack[l]{$0.1$\\$\mu$F})
72 line down_ del/4; resistor(to (Here,Bm)); llabel(,10); dot
73 dot(at (Here.x+del/2,L3.end.y))
74 {capacitor(down_ to (Here,Bm),C+); {"\shortstack[r]{$680\mu$F\\ $10$V ($2$)}" \
75 at last [].n+(0,4bp__) above rjust}; dot }
76 dot(at Here+(del/2,0))
77 {capacitor(down_ to (Here,Bm),C+); dot }
78 dot(at (Here.x+del/2,L3.end.y))
79 {R150: resistor(down_ to (Here,Bm),); llabel(,150); dot }
80 { line to T1.S1 }
81 line right_ del/8
82 L2: inductor(right_ dimen_*3/4,W,,M); llabel(,"$L_2$ $4.3\mu$H")
83 tline(right_ T1.ht/3,,del/6); {"bead" at last [].s below rjust}; Tm: dot
84 { tline(right_ T1.ht/3 from (last line.start,Bm),,del/6)
85 { "bead" at last [].n above rjust }; dot
86 line from Bm to last line.start }
87 { capacitor(down_ to (Here,Bm),C+); rlabel(,,\shortstack[r]{$680\mu$F\\$10$V})}
88 dot(at Here+(del/2,0))
89 { capacitor(down_ to (Here,Bm),C+); llabel(,,\shortstack[l]{$220\mu$F\\$10$V})
90 dot }
91 dot(at Here+(del,0))
92 { resistor(down_ dimen_*2/3); rlabel(,100)
93 U3a: diode(down_ dimen_*2/3); T3a: dot
94 { em_arrows(N,210,del/4) at U3a.c+(-del/4,0)
95 "$U_{3a}$" at last line.c+(-del/2,del/4)
96 spline dashed 3bp__ from U3a.end+(-del/10,del/8) right_ del/4 \
97 then up_ del/4 right_ del/6 then up_ del/4 left_ del/6 \
98 then left_ del/4 }
99 capacitor(down_ to (Here,Bm),C+); rlabel(,,"$3.3\mu$F"); dot
100 dot(at Here+(del/2,0))
101 U2: diode(up_ dimen_,Z); llabel(U_2); rlabel("TL$431$")
102 line to (Here,T3a); dot }
103 dot(at U2+(del/2,0))
104 capacitor(up_ (T3a.y-Here.y)/2); rlabel(,,"$0.1\mu$F")
105 resistor(up_ to (Here,T3a)); rlabel(,120)
106 { dot; line to (U3a,Here) }
107 resistor(to (Here,L2.end)); rlabel(,680); dot
108 dot(at Here+(del*1.1,0))
109 { resistor(down_ R150.len/3); llabel(,"$2.49$k")
110 Pt: potentiometer(down_ R150.len/3,,,-del/4) with .Start at Here
111 llabel(,\shortstack[l]{$1$k\\set\\$V_{\hbox{\scriptsize out}}$})
112 adjust(at Pt.Start-(del/4,del/6))
113 line from U2.c to (Pt.T1.end,U2.c) then to Pt.T1.end
114 resistor(from Pt.End to (Pt.End,Bm)); llabel(,"$2.49$k"); dot }
115 dot(at Here+(del,0))
116 { resistor(down_ R150.len/2); llabel(,"$220$")
117 diode(down_ to (Here,Bm)); llabel(,,D_6)
118 { em_arrows(N,45,del/4) at last [].ne +(del/8,del/8)}; dot }
119 dot(at Here+(del*2/3,0)); {reversed(`diode',to (Here,Bm)); rlabel(D_7); dot}
120 dot(at Here+(del/2,0)); {capacitor(down_ to (Here,Bm));llabel("$0.1\mu$F");dot}
121 Op: circle diam del/3 "$+$" at Here+(del*2/3,0); line from Op.w to Tm
122 "$5.0$V" rjust at Op.e+(0,-del/2) "$0$--$3$A" rjust
123 Om: circle diam del/3 "$-$" at (Op,Bm); line from Om.w to (Tm,Bm)
124 dot(at Bd1.start)
125 Pwr: [
126 DB: [ W: dot(at (0,0)); N: dot(at (del/2,del/2));
127 S: dot(at (del/2,-del/2)); E: dot(at (del,0))
128 diode(from W to N); diode(from W to S)
129 diode(from N to E); diode(from S to E) ]
130 "$D_1$" at DB.N ljust above
131 dot(at DB.E+(del/4,0)); {capacitor(down_ del*3/4,C+); G2: Here; ground(,T,E)}
132 { "$47\mu$F" at Here+(0,del/2) ljust "$400$V" ljust }
133 line from DB.W left_ del/4; continue to (Here,G2); ground(,T,E)
134 L1: transformer(right_ dimen_,,,W) at DB.W+(-del,0)
135 {"$L_1$" at last [].n above }
136 line from DB.N up_ del/8; continue to (L1.S2,Here) then to L1.S2
137 line from DB.S down_ del/8; continue to (L1.P2,Here) then to L1.P2
138 Pair: [ N: dot; resistor(down_ (DB.ht+del/4)/2); C: Here
139 resistor(down_ (DB.ht+del/4)/2); S: dot ] with .C at L1+(-del*3/4,0)
140 "$270$k ($2$)" at Pair.s below
141 dot(at Pair.N+(-del/2,0))
142 { capacitor(down_ to (Here,Pair.S))
143 rlabel(,\shortstack[r]{$0.1\mu$F\\ $275$V$_{\hbox{\scriptsize ac}}$}); dot}
144 { line to (L1.S1,Here) then to L1.S1 }
145 fuse(left_ del,D); rlabel(,"$3.5$A")
146 H: box wid del/3 ht del/4; N: box same at (H,Pair.S)
147 "$H$" at H.n above; "$N$" at N.s below
148 line from N.e to (L1.P1,N.e) then to L1.P1
149 ] with .N.w at (Wc.x,Bd1.start.y+del*3/4)
150 line from Pwr.DB.E right_ del/2 then down_ del
151 continue to (Bd1.start,Here) then to Bd1.start
152
153 iflatex(`latexcommand(})')
154 .PE