Power Supply Project: Jason Xu 100564870
Power Supply Project: Jason Xu 100564870
Power Supply Project: Jason Xu 100564870
Jason Xu
100564870
Letter of transmittal
To: Louis Bertrand
From: Jason Xu
Date: April 14th, 2015
Re: Power Supply Report
I am pleased to submit this report in partial fulfillment of the requirements for the CAD1133CAD
for Electronics course in the Electronics Engineering Technology program at Durham College. The
report details the design, construction and testing of an electronics workbench power supply.
The attached report is of my own creation. It includes the work of others used by permission and
properly attributed, and I have reviewed its entire contents before submitting it for grading. I
understand what is meant by the terms "academic integrity" and "plagiarism" and guarantee that I
am abiding by Durham College's Academic Integrity Policy #ACAD-101.
Sincerely,
Abstract
The Power Supply Project is dedicated to help students better understand the information
taught throughout the program. Students are to design, and create a functional power supply from
basic resources given. Based on the theory taught in lectures, students must implement their
knowledge in order to succeed in a functional system.
Students begin with creating their circuit schematic. A hand drawn schematic will be the
basis of their project. From there, the students will create the board that corresponds to the
schematic. They will place the components on the border, and attempt to fit them within the
restrictions. Once drafted, the board schematic will be used to manufacture the PCB. All the
components will be soldered in order to match the board schematic. This completed circuit board
will be the entire basis of the power supply.
The students will also have to create the front panel of the power supply. Work in the shop
will be done so that the enclosure will be able to accommodate the circuitry within. Once complete,
minor adjustments and touches will be made to make the unit appealing and operational.
Acknowledgements
Nick Xidos, for lending and allowing the use of his solder iron, over an extended period of time.
Dave MacKay, for allowing the lending of a transformer for testing the circuit board connections.
Contents
ABSTRACT..................................................................................................................................................III
ACKNOWLEDGEMENTS.........................................................................................................................IV
CONTENTS...................................................................................................................................................V
LIST OF FIGURES....................................................................................................................................VII
1
INTRODUCTION...............................................................................................................................1
1.1
1.2
1.3
1.4
LAYOUT OF REPORT...............................................................................................2
2.1
DRAFT SCHEMATIC.................................................................................................3
2.2
2.3
2.4
2.5
FIXED 5V REGULATOR...........................................................................................7
2.6
2.7
3.1
3.2
3.3
SCHEMATIC CAPTURE...........................................................................................12
3.4
4.1
ENCLOSURE DESIGN.............................................................................................15
4.2
ENCLOSURE FABRICATION...................................................................................15
5.1
5.2
ENCLOSURE ASSEMBLY........................................................................................19
5.3
6.1
SUMMARY OF RESULTS........................................................................................23
6.2
RECOMMENDATIONS.............................................................................................24
REFERENCES/BIBLIOGRAPHY.............................................................................................................25
APPENDICES...............................................................................................................................................26
List of Figures
Figure 2.1a; schematic showing external connections, lacks internal circuitry: Source, Handout
Figure 2.1b; schematic lacks specific circuitry, simplified to "blocks" ; Source, Handout.4
Figure 2.2; A Multisim simulation showcasing the upper half of the circuit, or 2 "blocks".5
Figure 2.3; a more focused look at the primary circuit and transformer from Figure 2.1a. 5
Figure 2.4; Split-phase dual voltage rectifier circuit...........................................................6
Figure 2.5; Fixed 5V Regulator Source: CAD1133 WK7...................................................7
Figure 2.6; Variable positive regulator circuitry Source: CAD1133 ASMT3.....................7
Figure 2.7; Variable Negative Regulator Source: CAD1133 ASMT3.................................8
Figure 3.1a; EAGLE Program window...............................................................................9
Figure 3.2b; Schematic window of EAGLE........................................................................9
Figure 3.1c; The DRC detects a clearance issue................................................................10
Figure 3.2a; 1N4004 found in the CAD1133 library.........................................................11
Figure 3.2b; 1N4004 found under "diode"........................................................................11
Figure 3.3; Connection between 2 Diodes.........................................................................12
Figure 3.4a; Schematic View.............................................................................................13
Figure 3.4b; Board View....................................................................................................13
Table 5.1a...........................................................................................................................16
Figure 5.1a : DMM reading of voltage..............................................................................17
Figure 5.1b : V at max resistance.......................................................................................17
Figure 5.1c : V at min resistance.......................................................................................17
Figure 5.1e : V at min resistance......................................................................................18
Figure 5.1d : V at max resistance.......................................................................................18
Figure 5.1f: Complete circuit, component side.................................................................18
Figure 5.2a : Front Panel with sticker................................................................................19
Figure 5.2b : Panel meter connection................................................................................21
7
Introduction
ii.
iii.
10
This section discusses the Design and Theory of Operation regarding the circuit board. It
will detail the following in an order as such:
more on the
external
connections to the output and inputs. With three inputs, the circuit also has six related outputs:
12
Note that the hand drawn schematic does not contain all of the required circuitry. There are
"blocks" that replace what would otherwise be a very cluttered schematic. An additional handout
provided in class acts as an index that explains and details each block.
Figure 2.2; A Multisim simulation showcasing the upper half of the circuit, or 2 "blocks".
The circuit of the LM7805 and LM117 are what would be inside of the "blocks" shown in
Figure 2.2. The sequence of components placed with a direct connection with either IC's would
represent one block .These two blocks represent the Fixed 5V Regulator, being the LM7805, and
the Variable Positive Regulator, being the LM117. However, note that this power supply uses a
LM317, as opposed to the LM117 shown in Figure 2.2. The two different IC's have the same
function, with different temperate limitations. These two may be used interchangeably given that
the temperate will strictly follow the less lenient of the two.
13
28 V =
120V
4.29
Vpeak = Vrms * 2
Vrect = Vpeak/2 - 0.7V
28V*2
(39.6V/2) - 0.7V
=39.6 V AC
=19.1 V DC
(19.1V*2)/
=12.2 DC
thus, yield no purpose. However, in the event that the connections were reversed, the diode would
start to conduct, and protect the IC. The circuit in discussion,
is shown in Figure 2.5.
Figure 2.5; Fixed 5V Regulator
purpose.
15
The LM337
produces the 0V to -15V.
functions in the similar manner, just with a different polarity. The input of the LM337 comes from
the negative rail of the rectifier circuit. Despite the output being variable, it is directly related to the
output of the LM317. The output of the LM337 will match the LM317 in magnitude, but will be
opposite in polarity. This is due to the fact that the negative regulator gets its control voltage
directly from the output of the positive regulator. This is created with the use of a 741 OP-AMP.
Shown in Figure 2.7,the output from the LM317 feeds into the operational amplifier (OPAMP) at the negative of the OP-AMP. The chip's output feeds into the reference of the LM337,
which is how the negative and positive outputs are directly related. This chip acts to main that
voltage out = -VC.
C4 and D9 are used in the same manner as previously mentioned. C4 will help filter out the
voltage and D9 prevents damage in the event that the output is mistakenly connected to a positive
power supply. Note that because this is the negative voltage regulator, the output of the LM337 will
be less positive than ground, which is why C4 and D9 are placed as such.
16
This section entails the process of drafting the PCB. Details explaining the program, use of
the program, as well as producing the PCB are section off as:
window
program has built-in functions that help the user with their design. The user starts with drawing
their full schematic. They place their components which
are found in libraries, and complete their circuits. From
there, the user can "Generate" or "Switch to Board"
which will convert their schematic, and replace the schematic equivalents, with their real
counterparts. The components would have all the matching connections, but would have to
be placed by the user for an efficient and effective layout. Shown in Figure 3.1b, the
schematic of EAGLE be seen. The "Generate" function, as well as the ratsnest and DRC is
shown. The "Generate" function is found on the top toolbar, while ratsnest and DRC are
along the left hand side.
Figure 3.2b; Schematic window of
EAGLE
function, ratsnest, is a function that will reroute certain wiring. It will ensure that the connection
17
with respect to the schematic, will be identical. What changes is how it appears to the user. Instead
of having a connection cross the entire board because it was drawn that way, this function will give
a more optimal alternative. This is very common when moving components on the board. The
grounds for components are easily interchangeable.
The DRC(Design Rule Check) command is a function that will proofread your layout.
However, it is entirely up to the user to determine what the DRC will base the operation on. The
DRC will apply certain restrictions on proximity of wiring, components, and any other restrictions
set. These restrictions are placed so that it will ensure that the board will manufactured correctly. If
certain unrelated coppers happen to be too close, a poor solder or manufacturing can ruin the circuit.
After applying these restrictions, using the command will now alert the using when one of these
boundaries has been breached. It
will inform which parts are not
complying with the parameters. As
seen in Figure 3.1c, the DRC detects
a breach in the parameters set. There
appears to be an issue with the
Figure 3.1c; The DRC
detects a clearance issue
Wire
Pad
Via
Wire
40 mil
40 mil
40 mil
Pad
Via
40 mil
40 mil
40 mil
3.3 Schematic
Capture
From the window shown
in Figure 3.1a, the user can
chose to enter the schematic
Figure 3.2b; 1N4004 found under "diode"
through, File > New > Schematic. From there, the user will be brought to the window shown in
Figure 3.1b. Here, the user can begin to place and create their circuit board. In order to add
components to the board, the user will go to Edit > Add. This will prompt the window from Figure
3.2a and Figure 3.2b to appear.
19
After choosing the components that are to be used, the user can now begin to draft their
schematic. The user will connect the appropriate leads of components to one another. This is done
by clicking on the left mouse button on the lead of a component, and make the connection to where
they need it. The user can test to see if the connections are made properly by moving the
components. If the wire will follow the leads, then the connection was made correctly.
Shown in Figure 3.3, D1 and D2 show the initial connection. If the second diode were to be moved
such that they are arranged like D3 and D4, or D5 and D6, two things may occur. If the connection
is made correctly, then the wiring will
follow the diode, as seen with D3 and
D4. If the connection isn't made correctly, then the wire will remain static,
despite moving D6.
Figure 3.3; Connection between 2 Diodes
From the hand-drawn schematic, the student will replicate what is shown in
Figure 2.1b, or
replicated with a component which may appear as a basic wire. P1, P2, and P3 all appear to be a
basic lead, but are a component that have to be added from the library. P1 are the core outputs of the
power supply. These four connections are taken from the output of the LM7805, LM317, LM337,
and a ground connection. The two connections of P2 relate to an LED. The LED will be placed in
series with the output and the ground. The two connections at P3 lead to the potentiometer. All
mentioned connections will lead to a mounted component on the front panel.
20
into Figure 3.4b. The program will generate the appropriate components, and
Figure 3.4a;
Schematic View
21
large amount of heat, to relieve the system. It can also be seen in Appendix B1, as the large amounts
of copper surrounding all the components.
Following the board layout, the file will go through conversions to prepare for
manufacturing. From the top tool bar, File > CAM Processor will produce a new file. This new file
will go through another conversion, into a PDF, which will be used in the manufacturing process.
This new "PostCam" view can be seen in Appendix B2 and B3.
22
This section details the steps behind the construction of the enclosure. The section is divided
as such:
23
This section discusses the final steps in the project; assembling the components on the
board, as well as the connections amongst the other hardware in the power supply. This is sectioned
of as such:
After Diode
Lead 1 to CT
Lead 1 to 3
Lead CT to 3
16.3V
32.5V
16.2V
+ive to
Ground
21.3V
+ive to -ive
-0.05V
Ground to
-ive
-21.5V
Table 5.1a
Note that voltage under "After TB" are AC, while voltage under "After Diode" are DC. CT
represents center tap.
The calculations for the intended values after the diode can be found below. The values
calculated here show that the value should come close to 22.3V. The actual value is found to an
average of 21.4V. The voltage in this case, is reasonable.
Vpeak = Vrms * 2
Vrect = Vpeak/2 - 0.7V
32.5V*2
(45.9V/2) - 0.7V
=45.9 V AC
=22.3 V DC
The next section to be assembled was the 5V regulator. This section includes the following
components:
24
LM7805
C5
D10
R8
After the soldering, the voltage was taken across the output of the regulator, with respect to
ground. The voltage measured was determined to be 5.02 V, and can be seen in Figure
5.1a. The intended output for the 5V regulator is 5V. The actual circuit produces a
voltage of 5.02V. The voltage found here, is accurate.
reading of voltage
the variable positive regulator. This section is composed of the following components:
LM317
R2, R4, R5, R6
Figure 5.1b : V at max
D6, D7,
C3
resistance
Figure 5.1c : V at min
resistance
Following the
construction, the voltage
and at minimum. Shown in Figure 5.1b, the voltage reads at 15.4V with the maximum
resistance, is similar to the theoretical output of 15V. The voltage when taken at the minimum
resistance is shown in Figure 5.1c, at -0.06V. The intended value is 0.0V, which is reasonable
when compared with the actual value.
The final section to assemble on the circuit board is the negative variable regulator. This
block consists of:
LM337
LM741
R1, R7
D5, D9
C9
The voltage was tested across the output of the LM337. The readings can be seen in Figure
5.1d, and 5.1e.
Figure 5.1d : V at max
resistance
25
The
negative
resistance,
is
-15.41V. There is a
difference of -0.41V from the theoretical results. The voltage when the resistance is at the
minimum, is -0.06V, which differs from the intended 0V. These readings do deviate from the
preferred results, but not enough so to deem them "inaccurate."
Ultimately, the circuit
functions close to what is
expected. The variance in the
outputs and close enough that
they are reasonable. The full
assembly of the component
side can be seen in Figure
5.1f.
The initial set of tests were
conducted using a
transformer borrowed from
Dave MacKay. However, all
the calculated values are
adjusted for, and tested again
after switching to the
transformer intended for the
project.
Figure 5.1f: Complete circuit, component side
The enclosure assembly was broken up into four steps. They were done as listed:
Front Panel
Transformer/rear panel
Circuit
Wiring
26
The first thing that was accomplished was placing all the components related to the front
panel. This includes the three leads relating to the transformer output, the four leads relating to the
fixed 5V and variable voltage, the LED, the switch, and the panel meter.
Front view of front panel can be seen in
Figure 5.2a. The potentiometer is
intended to fill the hole in the center, but
is added later with the addition of the
PCB.
Figure 5.2a : Front Panel with sticker
Six other connections, that were discounted previously, are related to the transformer. Three
connections connect the transformer to the circuit board, and three connections that allow the leads
to tap in to the output of the transformer. This is where the error previously mentioned occurred.
The switch is intended to be placed on the primary side of the transformer, but was mistakenly
placed on the secondary side. This means that the switch is only half effective. Two of the three
connections related to the transformer are always live, with the last rail being mistakenly connected.
Finally, the front panel was to be wired. The front panel required the following:
a power source, fixed 5V
o connection across J2, to indicate a 5V input
a voltage to measure, variable voltage
o the voltage input needed to be indicated
o connection across DC, to indicate a DC voltage
o connection across 20V, to indicate display range
ground
connection across P2, sets display to 2 decimal places
28
Figure 5.2c : Without top casing
5.3
Expected
Top to CT
16.3 V AC
16.5 V AC
Top to Btm
32.5 V AC
33.0 V AC
CT to Btm
16.2 V AC
16.5 V AC
Fixed 5V
5.02 V DC
5.00 V DC
At Max
15.40 V DC
15.00 V DC
At Min
-0.06 V DC
0.00 V DC
At Max
-15.41 V DC
-15.00 V DC
At Min
0.06 V DC
0.00 V DC
Transforme
r
Positive
Variable
Negative
Variable
29
up when expected switch is on. The front meter also displays what it is intended to. It displays the
variable voltage, at the intended range of 0-20V, with the correct decimal count of two.
30
6.2 Recommendations
The main recommendation that can be made regards the enclosure. The holes that were
required to be made may result in components that do not match. It was not stated to bring the
components to test the compatibility. Either state to students to bring the components, supply it at
31
the lab, or change how the process is done to avoid the conflict. Students should only have to attend
the lab once, and may not always have the spare time to book another lab time.
32
References/Bibliography
Floyd, T. L. (2010). Principles of Electric Circuits: Conventional Current Version (9th ed.). Upper
Saddle River, New Jersey: Prentice Hall.
Robertson, C. T. (2004). Printed Circuit Board: Designers Reference Basics. Upper Saddle River,
NJ: Prentice Hall.
Texas Instruments Inc. (2013, February). LM317: 3-Terminal Adjustable Regulator. Texas
Instruments Inc.
Texas Instruments Inc. (2013, February). LM337: 3-Terminal Adjustable Regulator. Texas
Instruments Inc.
Texas Instruments Inc. (2013, February). LM7805: 3-Terminal Fixed Regulator. Texas Instruments
Inc.
Bertrand, Louis.(2015, January). CAD1133 Handout. Durham College
Bertrand, Louis.(2015, March). CAD1133 WK7. Durham College
Bertrand, Louis.(2015, February). CAD1133 ASMT3. Durham College
33
Appendices
Appendix A: Complete Schematic
A1.Hand drawn schematic, provided in class. Shows the external connections linking the
user should interact with, and the circuit board.
A2. The "PCB RECTIFIERS + REGULATORS" referenced to in the first schematic. This is
a slightly more detailed look at the internal connections.
34
A3. The schematic is recreated using CAD Eagle. This schematic features the details of the
blocks shown in A2.
35
36
37