Professional Documents
Culture Documents
1 | P a g e
2 | P a g e
Executive
Summary
The
overall
goal
of
this
project
was
to
create
an
environment
that
will
be
able
to
properly
test
and
hold
coin
battery
cells.
Specifically,
the
team
focused
on
implementation
of
a
control
system
to
the
existing
system
already
set
up
in
the
chamber.
XG
Sciences
has
provided
the
environmental
chamber
for
modifications
to
be
made.
Main
modifications
to
the
chamber
include
the
user
interface,
Microcontroller,
the
actuator,
and
the
temperature
sensor.
The
user
interface
in
combination
with
the
Microcontroller
involved
creating
a
custom
printed
circuit
board
(PCB)
to
connect
the
pins
of
the
two
devices.
It
also
required
the
team
to
write
C
code
to
handle
the
interactions
needed
to
make
the
Microcontroller
communicate
with
the
user
as
well
as
applying
the
correct
power
to
the
chamber
based
on
our
designed
PID
equation.
In
order
to
demonstrate
the
functionality
of
this
project,
the
team
developed
a
GUI
interface
with
the
Microcontroller
to
be
able
to
visually
track
the
temperature
over
time.
The
team
was
able
to
complete
most
of
the
objective,
although
it
was
unable
to
achieve
full
functionality
with
the
cooling
device.
This
project
should
be
useful
to
XG
Sciences
in
their
labs
for
accurate
testing
to
provide
more
concise
data
for
processing.
3 | P a g e
Acknowledgement
4 | P a g e
Contents
Executive
Summary ........................................................................................................3
Acknowledgement..........................................................................................................4
Chapter
1: ...........................................................................................................................7
1.1
Introduction .........................................................................................................7
1.2
Background ..........................................................................................................7
5 | P a g e
6 | P a g e
Chapter
1:
1.1 Introduction
1.2 Background
There
are
many
applications
of
environmental
chambers
that
can
do
much
more
than
our
project
calls
for.
Some
are
specially
used
for
temperature,
humidity,
or
even
thermal
shock
and
are
large
enough
to
stand
in.
These
chambers
are
great
for
what
they
are
used
for,
but
they
have
too
many
features
for
the
requirements
and
lacking
in
some
areas.
A
chamber
of
varying
temperatures
from
-65C
to
200C
is
not
needed,
as
well
as
other
chambers
with
thermal
shock
capabilities.
Our
project
is
special
because
it
fits
the
exact
specification
and
needs
that
XG
Sciences
will
need.
XG
is
looking
for
a
system
that
will
be
fully
compatible
with
their
labs.
What
team
7
will
be
able
to
achieve
that
a
commercial
industry
will
not
is
a
digital
feedback
reading
that
the
computers
at
XG
can
use
for
data
logging
as
well
as
a
custom
chamber
that
will
be
able
to
accommodate
XGs
coin
cells
for
easy
accessibility
and
testing.
7 | P a g e
1.3
Objectives
In
this
project
the
team
is
asked
to
create
an
environmental
chamber
that
will
be
able
to
hold
a
constant
temperature.
The
range
of
the
chamber
needs
to
span
from
-40C
to
85C.
The
accuracy
at
all
ranges
needs
to
be
with
one
degree
of
desired
set
point.
The
team
will
be
making
an
interface
to
communicate
to
the
system
what
the
reference
temperature
will
be,
based
on
this
reference
the
system
will
manage
the
two
elements
inside
the
chamber
to
be
able
to
achieve
the
reference
temperature
at
a
steady
state.
Meanwhile,
the
chamber
will
also
be
communicating
with
the
XG
lab
computers
in
order
to
track
the
temperature
over
time.
The
system
will
be
implemented
so
that
steady
state
operation
will
be
achievable
for
days
at
a
time.
Another
requirement
is
that
the
system
should
be
able
to
reach
stability
at
no
more
than
two
hours
from
starting
up
the
system.
Having
a
chamber
with
a
long
settling
time
is
not
desirable
for
testing
situations.
The
successfulness
of
the
project
will
help
the
sponsor
in
testing
their
batteries
efficiently
and
develop
them
to
be
better
optimized.
Power
for
portable
devices
is
a
hot
research
area
nowadays,
since
portable
devices
are
becoming
more
advanced
and
more
power
consuming.
The
system
would
help
the
sponsor
in
testing
the
current
coin
cell
batteries,
and
discover
the
best
way
to
build
the
battery.
Moreover
the
sponsor
is
planning
on
manufacturing
and
testing
some
pouch
battery
cells
in
the
future,
and
those
are
similar
to
the
batteries
that
are
currently
used
in
cell
phones.
In
this
case
the
sponsor
would
be
able
to
use
the
chamber
to
test
such
batteries
as
well
as
the
coin
cells.
If
the
tests
are
successful,
designs
for
a
new
solution
to
increase
battery
life
will
be
soon
to
come.
8 | P a g e
Chapter
2
9 | P a g e
10 | P a g e
Conceptual
Design
After
researching
different
control
design
applications
that
could
be
used
for
our
design,
a
decision
matrix
was
created
to
show
the
pros
and
cons
of
each
technology.
This
matrix
is
based
off
of
a
1
through
5
ranking
system
with
1
being
the
best
and
5
being
the
worst,
and
corresponds
to
criteria
that
are
required
for
our
design.
Some
criteria
that
were
seen
as
important
in
ranking
each
technology
were
stability,
ease
of
implementation,
reliability,
ease
of
use,
overall
cost,
and
previous
knowledge.
The
appropriate
data
was
inputted
into
the
matrix
and
totals
were
tallied
up,
which
produced
one
viable
option.
Criteria
Criteria Importance
On-Off Control
Phase Modulation
Stability
Reliability
Ease
of
Use
Overall
Cost
2
1
1
3
2
1
2
2
2
Previous Knowledge
36
23
Grand Total
11 | P a g e
Business
Model
This
six
sigma
business
model
tool
describes
the
rationale
of
how
an
organization
creates,
delivers,
and
captures
value.
It
is
a
blue
print
design
consisting
of
building
blocks
that
would
help
establish
milestones
for
our
product,
understanding
competition,
attracting
investors,
reducing
cost,
and
attracting
employees.
It
describes
and
innovates
the
business
and
its
product.
This
useful
tool
can
easily
illustrate
a
complete
picture
of
a
business
from
an
overall
perspective.
Figure
2
demonstrates
the
model
for
the
environmental
chamber.
Figure
2:
Buisness
Model
Canvas
12 | P a g e
Criteria
for
Success
The
main
purpose
of
the
environmental
chamber
is
to
provide
a
high
accuracy
temperature
controlled
area
for
testing.
Therefore,
the
primary
focus
is
whether
our
system
can
accurately
control
the
temperature.
A
successful
outcome
consists
of
demonstrating
that
the
temperature
can
be
kept
within
a
1C.
As
a
result,
our
design
is
focused
on
functionality
rather
than
efficiency,
with
the
assumption
that
future
implementations
of
this
project
will
perform
necessary
optimizations.
Our
design
revolved
around
functionality
instead
of
cost
or
size
restrictions.
A
Risk
Analysis
Diagram
was
created
and
followed
to
make
this
prototype
design
achievable,
as
shown
in
figure
3
on
the
following
page.
13 | P a g e
Risk
Effect
Level
of
Impact
(1,
3,
6)
Likelihood
(1,
3,
6)
Delayed
PID
Control
Design
Delayed
PID
Testing
Delayed Testing
Insufficient
time
to
perfect
design
Unable
to
read
temperature
inside
chamber
Unable
to
test/implement
PID
control
Unable
to
control
temperature
within
1C
range
Main
objective
not
met
18
Score
Likelihood
Risk
Analysis
Near
Certainty
10
15
20
25
Highly Likely
12
16
20
Likely
12
15
Low Likelihood
10
Extremely Improbable
Minimal
Minor
Major
Serious
Catastrophic
Severity / Impact
Low
Medium
High
Green
Yellow
Red
14 | P a g e
Figure
3:
The
figures
above
show
the
risk
and
likeliness
of
their
occurrence
during
the
design
process
2.2
Budget
Design
Team
7
was
allocated
$500
from
the
College
of
Engineering.
Once
the
team
had
created
an
initial
design
and
began
selecting
components,
the
estimated
cost
was
well
below
the
allocated
budget.
Table
2
displays
all
the
components
affecting
the
initial
cost
estimate.
The
computations
required
for
implementing
our
designs
could
be
done
all
with
the
microcontroller
provided
to
us
in
our
lab
assignments.
With
all
this
in
consideration,
all
of
our
costs
were
well
below
the
allocated
amount.
Microcontroller
(Explorer
16
Development
Board)
Temperature
Sensors
(Thermresistors)
Keypad
Display
Screen
Shelves
Resistors/Capacitors
Total
$129.99
$5.89
$13.52
On
MC
$40
Free
(ECE
Shop)
$189.41
Table
2:
Cost
Estimate
15 | P a g e
Chapter
3
To
effectively
control
the
temperature
within
the
chamber,
power
must
be
controlled
as
well.
With
the
use
of
a
triac,
which
is
a
multidirectional
silicon
controlled
rectifier,
the
power
of
the
chamber
can
be
controlled
through
careful
timing
against
the
power
wave.
The
the
gate
of
the
triac
low,
it
acts
as
an
open
circuit
and
blocks
power
to
the
load,
or
in
our
case
the
heating
element.
When
the
gate
is
pulsed,
the
triac
becomes
active
and
passes
current
to
the
load
like
a
short
circuit
until
the
waveform
signal
returns
to
a
zero
state.
When
the
gate
is
pulsed,
the
source
power
is
passed
to
the
load
as
well
as
the
gate
pins.
Since
our
microcontroller
will
be
triggering
when
the
pulse
is
fired,
a
way
to
16 | P a g e
separate
the
microcontroller
from
the
120V
wave
that
will
be
across
the
gate
is
needed.
An
MOC3020
optocoupler
completely
isolates
the
microcontroller
pulse
that
triggers
the
triac
from
the
hazardous
voltages.
This
optocoupler
itself
contains
a
triac
that
is
optically
pulsed
and
uses
the
main
AC
power
to
pulse
the
high
power
triac
controlling
the
load.
Figure
5:
Zero
cross
waveform
vs
sine
wave
input
17 | P a g e
There
are
three
main
PID
equations
that
could
be
utilized
for
control
stability
in
the
chamber.
Types
A
and
B
are
good
starts,
but
their
tuning
parameters
are
mostly
based
around
the
set
point
of
the
temperature.
Since
our
design
goal
calls
for
our
sponsor
to
be
able
to
enter
any
temperature
from
-40
to
85
degrees
Celsius,
a
type
C
equation
is
the
best
choice.
The
PID
type
C
equation
has
the
tuning
parameters
based
around
previous
temperature
values
instead
of
the
set
point
error.
The
PID
setpoint
is
what
will
be
compared
with
the
timer
value
of
the
microcontroller,
so
it
must
be
between
0
and
255.
Simple
if
statements
were
used
to
set
the
value
to
255
if
it
exceeded
255
and
0
if
it
was
less
than
0
as
seen
in
Figure
2.
Normally
the
higher
the
PID
setpoint
value,
the
more
power
applied
to
the
system.
The
way
the
system
applies
power,
the
opposite
is
true.
To
fix
this
error,
if
the
PID
equation
outputs
255
which
would
be
full
power,
we
want
to
subtract
255
by
the
PID
output.
This
sets
the
operating
point
of
the
triac
to
0,
which
is
full
power.
A
new
PID
setpoint
is
calculated
every
10
seconds,
or
600
zero
crosses.
The
sponsor
of
our
project
wanted
to
be
able
to
manually
enter
a
temperature
and
be
able
to
monitor
the
temperature
over
the
length
of
the
test.
If
after
achieving
steady
state
the
temperature
deviated
beyond
the
desired
tolerance,
an
alert
should
be
logged
letting
the
user
know
at
what
time
the
error
occurred.
To
allow
the
user
to
enter
a
temperature,
a
keypad
was
used
with
an
LCD.
As
the
microcontroller
is
powered
up,
after
initializing
all
of
the
settings
required,
it
enters
a
subroutine
allowing
the
input
of
a
temperature.
The
LCD
has
a
prompt
requesting
that
a
18
|
P a g e
user
enter
a
temperature,
as
the
temperature
is
typed
in,
the
LCD
is
used
to
verify
the
numbers
entered
are
correct.
Once
the
desired
temperature
is
entered,
pressing
#
will
call
an
atoi
function
that
converts
the
entered
character
string
to
an
integer
and
end
the
subroutine.
After
the
temperature
is
entered
the
control
system
will
run
until
it
is
disconnected
from
power,
or
until
*
is
held
which
will
stop
the
system
and
will
enter
the
set
temperature
routine
again.
To
monitor
the
temperature
throughout
the
test,
a
serial
to
USB
interface
will
allow
data
monitoring
on
an
external
computer.
Once
data
logging
is
started,
every
2
seconds
the
computer
will
call
for
the
microcontroller
to
send
the
currently
read
temperature
and
plot
it
against
the
time
of
the
test.
Once
the
program
has
detected
steady
state,
it
will
alert
the
user
and
begin
watching
for
steady
state
deviations.
If
a
deviation
greater
than
1
degree
Celsius
is
detected
it
will
create
an
alert
with
the
current
date
and
time.
This
allows
the
chamber
to
be
run
without
constant
monitoring
and
will
let
the
user
know
if
the
temperature
integrity
has
been
compromised.
Every
time
the
power
source
crosses
0,
or
a
call
to
send
temperature
data
to
an
external
computer
an
interrupt
service
routine
is
called.
This
interrupt
routine
when
entered
from
a
zero
cross
will
reset
the
internal
timer
that
determines
the
power
applied
to
the
chamber.
If
the
routine
is
entered
from
a
serial
communications
request,
it
will
disable
all
other
interrupts
and
send
the
requested
data.
These
interrupts
are
the
most
important
part
of
the
software.
Without
them,
the
microcontroller
would
have
no
timing
reference
and
would
not
be
able
to
accurately
apply
power
to
the
system.
Design
Issues
Interrupts
The
first
issue
big
issue
encountered
this
semester
was
the
interrupt
programming.
Initially
the
interrupt
was
sporadic
and
didnt
fire
after
every
zero
cross.
This
interrupt
problem
caused
stability
problems
with
the
power
applied
to
the
chamber
and
needed
to
be
fixed.
Since
the
zero
cross
detector
was
based
around
the
amount
of
current
flowing
through
an
infrared
LED,
we
lowered
the
resistor
values
from
10K
to
19 | P a g e
3.5K
to
allow
more
current
to
pass.
By
increasing
the
maximum
current
through
the
LED,
the
zero
cross
interrupt
became
more
responsive
and
fixed
the
sporadic
behavior.
LCD
display
The
LCD
used
for
this
design
would
only
function
if
it
ASCII
characters
were
sent
for
display.
Since
values
displayed
on
the
LCD
were
also
critical
parts
of
the
code,
a
way
to
convert
between
the
two
needed
to
be
found.
Research
done
online
gave
us
several
functions
that
could
be
used
to
convert
between
integers
and
characters
in
our
main
C
code.
This
allowed
the
microcontroller
to
keep
every
value
as
an
integer
or
double
value,
but
convert
to
a
character
string
when
a
value
was
to
be
sent
for
display
on
the
LCD.
PID
tuning
Starting
with
values
of
one
for
each
tuning
parameter
of
the
PID
equation,
it
was
observed
that
the
PID
didnt
function
as
intended.
It
functioned
like
an
on/off
controller
which
made
the
temperature
oscillate
outside
of
design
specifications.
Several
trial
runs
of
differing
tuning
parameters
had
to
be
tested
until
a
semi
functional
PID
system
could
be
observed
on
the
oscilloscope.
Once
the
PID
equation
did
not
jump
from
one
extreme
to
the
other,
we
were
able
to
tune
it
appropriately.
Initially
the
unturned
PID
would
overshoot
by
as
much
as
20C,
but
afterwards
overshooting
was
around
7C
and
overall
settling
time
was
around
15
minutes.
GUI
The
graphical
user
interface
relied
on
values
sent
via
the
serial
port
of
the
microcontroller
to
plot
the
temperature.
Getting
the
program
to
run
on
a
computer
that
did
not
have
Microsoft
visual
studios
was
a
problem.
Microsoft
visual
studios
had
a
lot
of
critical
files
that
were
used
to
run
the
final
executable
that
was
compiled.
The
proper
files
needed
to
run
the
created
GUI
needed
to
be
located
and
saved
so
the
user
could
have
the
tools
to
use
the
program.
Getting
the
software
to
run
on
all
computers
was
only
one
of
the
problems
that
were
found
while
writing
the
interface.
The
temperature
received
from
the
microcontroller
was
not
accurate
at
all.
This
throws
off
the
deviation
alert
and
provides
inaccurate
data
that
is
collected
throughout
the
test.
A
lot
of
debugging
that
included
reading
values
that
were
sent
to
visual
studios
was
done
to
find
where
the
issue
was
occurring.
The
voltage
which
was
converted
to
degrees
Celsius
was
not
an
average
value
like
what
was
found
on
the
microcontroller.
To
fix
this
problem,
the
temperature
that
was
being
displayed
on
the
LCD
was
sent
instead
of
the
voltage
so
both
values
were
identical.
20 | P a g e
21 | P a g e
Chapter
4
4.1
Control
System
User
Interface
Our
control
systems
user
interface
contains
a
12-key
keypad
and
a
LCD
display
screen.
The
keypad
enables
user
to
input
target
temperature
and
the
LCD
screen
will
display
both
the
target
temperature
and
the
current
temperature.
It
can
be
seen
that
in
Figure
6,
a
target
temperature
of
60C
is
entered
into
the
system.
The
current
temperature
of
57.8C
can
be
seen
on
the
screen.
(See
figure
7).
Figure
6:
LCD
Display,
Set
Temperature
Figure
7:
LCD
Display,
Current
Temperature
22 | P a g e
4.2
Sensor
Calibration
The
sensor
we
used
to
build
our
closed
loop
feedback
control
system
is
TC1046
made
by
Microchip.
It
is
a
3-pin
temperature
sensor
that
can
output
different
voltage
signals
which
depends
on
the
temperature.
We
calibrated
our
sensor
by
using
the
thermometer
Fluke
80T-150U
Universal
Temperature
Probe.
Here
is
the
calibration
result:
Fluke
80T
Temperature
80C
40C
20C
Output
Sensor
Voltage
0.924V
0.674V
0.549V
From
the
result
we
can
see
that
the
voltage-temperature
relationship
is
quite
linear
and
the
sensor
works
accurately.
This
linearity
makes
coding
for
the
relationship
between
temperature
and
voltage
very
simple.
Our
estimated
equation
for
the
linearity
of
the
sensor
is
as
follows:
VOut=(6.25(mV/C)*Temperature
(C)
+
424mV
23 | P a g e
Figure
8:
Triac
signal
with
wall
power
Step
2.
We
connect
our
control
system
to
the
environmental
chamber
and
we
heat
up
the
sensor
again.
The
voltage
that
feeds
into
the
chambers
working
circuit
is
monitored
and
shown
in
figure
9.
Figure
9:
Triac
signal
with
output
power
Step
3.
We
make
our
whole
system
working
together.
Sensor
is
positioned
at
the
center
of
our
battery
holder
and
the
battery
holder
is
placed
inside
the
chamber.
The
target
temperature
is
set
to
be
60C.
We
monitored
the
temperature
shown
on
the
LCD
screen
and
recorded
it
by
the
GUI.
The
measurement
is
shown
in
figure
10.
It
can
be
seen
that
our
control
system
works
perfectly
with
a
settling
time
of
about
900
seconds.
24 | P a g e
Figure
10:
GUI
test
results
25 | P a g e
Figure
11:
Thermoelectric
device
For
a
thermoelectric
material,
the
side
that
is
connected
to
the
heat
sink
is
chosen
as
the
constant
temperature
side
and
the
other
side
can
be
either
colder
or
hotter
than
the
constant
temperature
side
depends
on
the
voltage
direction
that
feeds
into
the
device.
Both
heating
and
cooling
tests
are
executed.
Test
results
can
be
found
in
figure
12.1
and
12.2.
26 | P a g e
Temperature
(C)
80
Temperature
70
60
50
40
30
20
10
0
0
0.5
1.5
2.5
3.5
Voltage (V)
Figure
12.1
:
Results
for
Heating
test
(Thermoelectric
Temperature
(C)
25
Temperature
20
15
10
5
0
-5
-10
0.5
1.5
2.5
Voltage (V)
Figure
12.2:
Results
for
Cooling
test
*Tested
by
Agilent
E3630A
power
supply
and
Omega
CN7800
temperature
sensor
27 | P a g e
28 | P a g e
Chapter
5:
5.1
Cost
Over
the
course
of
this
project,
Design
Team
7
was
able
to
stay
within
the
$500
budget
given
to
them
by
the
College
of
Engineering.
With
the
help
the
ECE
shop,
the
team
was
able
to
eliminate
many
items
from
their
budget
completely,
mostly
PCB
fabrication
as
well
as
microcontrollers.
Figure
__
displays
the
final
product
cost
for
the
chamber
modifications.
Qty.
1
8
6
1
1
1
1
2
3
2
1
Price
Free
(ECE
SHOP)
$5.90
$14.44
$20.31
Free
(ECE
SHOP)
Free
(ECE
SHOP)
$13.52
Free
(ECE
SHOP)
$1.23
$0.88
Free
(Extra
DT5)
$36.09
$92.37
29 | P a g e
5.2
Schedule
Design
Team
7
was
unable
to
stay
on
schedule
for
the
majority
of
the
project.
Time
management
and
project
management
are
two
complex
yet
essential
skills
needed
for
successful
completion
of
any
project.
DT7
was
about
to
stay
on
schedule
by
utilizing
the
Gantt
chart
created
early
on
in
the
semester
until
some
unforeseen
problems
occurred
that
delayed
our
progress.
Making
up
for
shipping
time
as
well
as
troubleshooting
accounted
for
our
failure
to
finish
the
project
within
the
given
semester.
Allowing
more
time
in
our
schedule
to
allow
for
our
testing
errors
would
have
been
the
key
to
our
success.
Besides
those
few
mistakes
the
semester
was
a
very
successful.
Team
management
for
the
project
was
very
well
done,
team
members
knew
exactly
what
they
were
in
charge
of
and
when
it
was
due
with
the
help
of
our
Gantt
chart.
We
were
able
to
complete
a
large
portion
of
the
project,
with
the
control
algorithm
set
in
stone,
as
well
as
the
heating
and
the
battery
cell
holder.
The
Gantt
chart
used
for
this
project
can
be
found
in
Appendix
3.
30 | P a g e
5.3
Conclusion
Design
Team
7
successfully
designed,
tested
and
verified
functionality
of
the
environmental
heating
chamber.
Testing
was
done
so
in
the
design
lab
and
XG
Sciences
criteria
has
been
satisfied.
DT7
has
also
created
an
easy
to
use
interface
as
well
an
easy
access
testing
mount
for
the
coin
battery
cells.
Due
to
time
constraints
that
faced
the
team,
the
cooling
portion
of
the
chamber
remains
non-functional.
With
problems
faced
during
our
testing
and
troubleshooting,
our
scheduled
plan
has
been
delayed
allowing
no
time
in
order
to
figure
out
the
cooling
valve
functionality.
With
a
functional
actuator
and
a
few
more
lines
of
code,
our
cooling
system
would
have
been
achieved.
While
not
every
customer
stipulation
was
satisfied,
the
completed
design
met
all
criterions
except
for
a
functioning
cooling
system.
Much
time
was
spent
on
the
design
and
PCB
fabrication
in
order
to
fit
the
design
inside
the
chamber
and
interact
from
the
outside.
In
terms
of
completion,
the
heating
portion
and
battery
holder
have
been
verified
to
design
specifications.
The
temperature
reading
stabilizes
to
the
reference
with
a
0.5C
accuracy.
In
terms
of
accuracy,
this
is
much
more
accuracy
then
what
was
expected
for
the
project.
For
the
settling
time,
the
chamber
reaches
steady
state
temperature
within
15
minutes
from
startup
time,
this
is
clearly
much
lower
than
the
2
hour
settling
time
which
was
expected
from
us.
In
addition,
DT7
was
able
to
implement
an
interactive
user
interface
that
is
able
to
take
in
a
desired
set
point
as
well
as
being
able
to
communicate
through
a
micro
USB
interface
to
transfer
temperature
data
to
an
external
computer.
Final
cost
of
the
project
was
under
$100.
Many
of
the
components
were
provided
by
the
ECE
shop
free
of
charge,
which
helped
tremendously
in
reducing
final
cost.
This
value
does
not
include
the
PCB
fabrication
in
which
ECE
shop
graciously
provided
us
with.
DT5
was
able
to
stay
on
schedule
for
the
majority
of
the
project
duration.
Minor
challenges
during
the
end
of
the
semester
had
altered
the
schedules
critical
path.
When
tasks
started
to
go
off
track,
many
team
members
worked
long
nights
in
the
engineering
building,
strictly
focusing
on
the
project
trying
to
get
the
team
back
on
schedule.
Experiences
such
as
this
and
many
other
real
world
design
issues
this
semester
have
given
the
team
valuable
experience.
Each
issue
presented
was
thouroughly
analyzed
and
systematically
resolved.
The
members
worked
together
in
such
ways
that
produced
results,
resolved
problems
and
taught
everyone
important
aspects
of
the
engineering
industry.
For
these
reasons,
design
team
7
did
have
success
in
their
project.
31 | P a g e
The
technical
impact
Chengeng
Qu
had
on
his
team
was
mostly
about
thermoelectric
material.
At
the
very
beginning
of
the
semester
when
the
team
was
trying
to
do
research
on
environmental
control
system
design,
the
team
figured
out
that
it
is
not
easy
to
implement
both
heating
and
cooling
functions
in
a
single
system.
The
team
was
trying
to
find
some
method
that
can
do
both
heating
and
cooling
accurately
inside
one
system.
Then
the
team
found
out
a
new
technology
called
thermoelectric
material.
It
is
a
type
of
material
that
if
one
side
of
it
is
kept
at
constant
temperature,
the
other
side
can
be
heating
up
and
cooling
down
when
we
feed
in
different
voltages.
Since
it
is
a
new
technology
and
not
a
lot
of
information
could
be
found
related
to
this
material,
Chengeng
was
assigned
the
task
to
do
some
research
on
this
material
to
see
if
it
can
work
for
our
project.
He
searched
the
Internet
and
read
a
lot
of
papers
related
to
the
topic.
He
also
contacted
Dr.
Tim
Hogan,
who
is
a
professor
in
this
field.
Chengeng
found
out
the
working
principle
of
this
material
and
how
it
could
be
used
in
our
daily
life.
The
teams
technical
lecture
was
also
based
on
this
topic.
Later
Chengeng
made
a
thermoelectric
device
and
did
some
test
on
it.
In
order
to
reach
the
temperature
range
a
multi-layer
structure
was
chosen
to
make
it
powerful.
In
order
to
make
the
temperature
stable,
a
big
heat
sink
was
also
added.
The
whole
device
worked
well
and
tests
for
both
heating
and
cooling
were
implemented
on
that
device.
However,
after
the
team
discussed
the
properties
and
applications
together,
the
team
figured
out
that
this
was
not
ideal
for
our
project.
For
the
reason
that
it
has
a
low
efficiency
and
it
is
only
good
for
surface
temperature
control.
Also
it
takes
a
lot
of
space
and
it
costs
too
much.
Though
the
thermoelectric
material
is
not
used
in
our
project,
Chengeng
learned
a
lot
during
the
research,
device
build
up
and
testing.
32 | P a g e
33 | P a g e
34 | P a g e
Matthew
Marcantonio
is
an
electrical
engineer
that
was
responsible
for
the
programming
of
the
entire
design
project.
The
source
code
was
one
of
the
most
vital
parts
of
the
entire
project.
With
the
programming
done
by
Matthew,
the
project
could
not
function
at
all.
The
code
Matt
worked
on
implemented
the
PID
controller,
interfaced
with
the
LCD
and
keypad,
sent
power
to
the
environmental
chamber,
and
interface
with
the
GUI
Interface.
Creating
a
functional
PID
controller
was
difficult
to
implement
with
the
code.
After
working
out
computational
errors,
the
code
was
able
to
implement
the
feedback
control
loop
properly.
Having
the
PID
equation
was
the
first
issue,
another
issue
Matt
has
dealt
with
was
the
actuator
of
the
chamber.
Needing
to
have
a
controllable
power
source
is
absolutely
necessary
in
order
to
control
the
temperature.
Matt
was
able
to
research
and
configure
the
Phase-Fire
controller.
This
actuator
provided
the
ability
for
the
Microcontrollers
PID
equation
to
effectively
tell
how
much
power
to
give
the
heating
coils.
Matt
also
focused
on
the
GUI
interface.
With
this
interface
the
team
was
able
to
properly
measure
the
temperature
over
time
with
a
simple
graph.
This
graph
will
enabled
them
to
measure
stability
as
well
as
fine
tuning
the
PID
equation
to
get
the
least
possible
overshoot
in
hopes
to
reach
a
very
fast
settling
time.
This
GUI
is
essential
for
XG
Sciences
as
well,
as
they
will
be
using
this
graph
in
order
to
determine
stability
of
the
system.
The
graph
will
tell
them
when
accurate
data
is
happening
or
when
the
temperature
has
spiked
due
to
opening
chamber
door
or
a
malfunction
in
the
chamber.
One
of
the
important
non-technical
responsibilities
Matt
held
was
being
the
team
manager.
As
a
manager,
he
was
in
charge
of
time
management
for
the
team
as
well
as
keeping
the
team
on
task.
Splitting
up
responsibilities,
setting
up
team
meetings,
and
communicating
with
the
sponsor
are
all
vital
roles
in
making
a
team
successful.
35 | P a g e
Programs
Used
MPLAB:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&d
DocName=en019469&part=SW007002
Microsoft
Virtual
Studios
http://www.microsoft.com/visualstudio/en-us
Technical
Datasheets
High
Percision
Temperature-to-Voltage
Converter:
http://datasheet.octopart.com/TC1046VNBTR-Microchip-datasheet-49029.pdf
Keypad
Datasheet
http://media.digikey.com/pdf/Data%20Sheets/Grayhill%20PDFs/96%20Series.pdf
Optocoupler
Datasheet
http://www.fairchildsemi.com/ds/H1/H11A1M.pdf
Optoisi
400vDRM
Triac
out
http://www.fairchildsemi.com/ds/H1/H11A1M.pdf
Triac
Datasheet
http://www.littelfuse.com/data/en/Data_Sheets/Littelfuse_Thyristor_Qxx15xx_Qxx16x
Hx.pdf
36 | P a g e
void main ()
{
OpenUSART (USART_TX_INT_OFF & USART_RX_INT_ON &
USART_ASYNCH_MODE & USART_EIGHT_BIT &
USART_CONT_RX & USART_BRGH_LOW, 63);
RCONbits.IPEN = 1; /* Enable interrupt priority */
IPR1bits.RCIP = 1; /* Make receive interrupt high priority */
INTCONbits.GIEH = 1; /* Enable all high priority interrupts */
PORTD = 0;
TRISB = 0xFF;
TRISD = 0x00;
PORTBbits.KBI0 = 1;
TRISC = 0xF0;
PORTC = 0x0F;
PORTAbits.RA6 = 0;
INTCONbits.TMR0IF = 0;
LCD_Init();
// set up LCD for 4-wire bus, etc.
LCD_PutCmd ( CLEAR_DISP );
// clear screen
LCD_SetPosition ( LINE_1 + 0 );
LCD_Putstring(string);
enter_temp();
INTCONbits.GIEH = 1;
// enable global interrupts
INTCONbits.RBIE = 1; //interrupt on change enable
INTCON2bits.RBIP = 1;
TMR0L = 0x00;
T0CON = 0b11100100;
OpenADC(ADC_FOSC_32 & ADC_RIGHT_JUST & ADC_12_TAD,
ADC_CH0 & ADC_INT_OFF, 0);
reading
ADCON1 =0x10;
power
while(1)
{
INTCONbits.GIEH = 1;
//Pulse fires sporratically at 5V but for some reason
//Works fine at 4.64V WTF is going on??? setpoint
if((255-TMR0L) <= setpoint && a == 0)//0x00(Full power) - 0xFF(No Power) 255 Set points between no and 50%
{
T0CONbits.TMR0ON = 0;
TRIAC = 1;
delay2();
TRIAC = 0;
a = 1;
b = b+1;
c = c+1;
TMR0L = 0x00;
}
if(b>=30)
{
T0CONbits.TMR0ON = 0;
INTCONbits.RBIE = 0;
SetChanADC(ADC_CH0);
LCD_TempAvg();
//LCD_PutInt();
PID();
INTCONbits.RBIE = 1;
b = 0;
}
if(c>=1200)
{
T0CONbits.TMR0ON = 0;
LCD_PutInt();
c = 0;
}
PORTCbits.RC3 = 0;
while(!PORTCbits.RC4)
{
PORTCbits.RC3 = 1;
enter_temp();
}
}
}
// stop
37 | P a g e
38 | P a g e
39 | P a g e
40 | P a g e
Final
Schematic
41 | P a g e