MSP430 Group Project ECE 300 Spring 2007 Dr. Walter Green

advertisement
MSP430 Group Project
ECE 300
Spring 2007
Dr. Walter Green
Jeffrey Logsdon
John Ly
Daniel Henderson
Nataly Sumarriva
Project Objectives








Develop team-oriented skills
Interpret printed circuit board layout
Make ultra-fine solder connections
Compile programs and files to run software
Be introduced to C-Spy debugging tool of IAR
Software
Flash software to microprocessor board
Select and learn the characteristics of sensors
Troubleshoot a circuit board
Overview of Project Stages

Stage 1


Stage 2


Adjusting computer codes to show sensor output on LCD screen
Stage 6


Selecting and studying various sensors
Stage 5


Flashing “Hello” message to LCD screen by programming MSP430 chip
Stage 4


Soldering circuit components and microchip to board
Stage 3


Soldering practice and familiarity with the circuit components on the
practice circuit boards
Demonstration of sensor and data collection
Stage 7

Project team presentation
Stage 1 - Practice
After years of no soldering, the team
members obtained practice soldering
components onto the practice circuit board
 Each team member soldered one side of
the microchip to the circuit board, a task
which was tedious but useful

Stage 2 – The Real Deal

The microchip and the circuit components
were soldered in the following order:
Surface-mounted capacitors and resistors
 Push-button switch, voltage regulator, 5 volt
input plus, slider switch
 MSP430 microchip
 LCD pins
 JTAG Connector

Stage 3 – Flashing “Hello”
The files lcd.c, lcd.h, delay.c, delay.h,
demo.c, sensor.c. were downloaded from
the class website
 New project was created under IAR
Embedded Workbench
 Flashed “Hello” and “88880888” by
adjusting code in the demo file

Stage 4 – Sensors, Sensors,
Everywhere

Various sensors were investigated from Analog
Devices





AD 590 – Temperature Sensor
AD 22103 – Temperature Sensor
TMP04F5 – Temperature Sensor
AD 22151G – Magnetic Field Strength Sensor
Ultimately, the AD 590 and AD 22103 were
selected to allow for most efficient temperature
output, considering the necessary components
and the accuracy of the sensor
Spotlight on…the AD22103K

Features







3.3 voltage input from circuit
board itself
0 to 100º C temperature span
Minimal self-heating
Cost-effective: uses the same
voltage that the analog-to-digital
converter uses as a reference,
eliminating the need for a
precision reference
Requires no calibration
Less expensive than the AD590
and no need for extra reference or
calibration components
By using voltage output instead of
current output, there is a
minimization of leakage errors,
such as those caused by
condensation at low temperatures
AD22103K’s Theory of Operation




Output voltage is proportional
to power supply voltage
Sensor contains temperaturedependent resistor, RT, whose
resistance changes linearly
with temperature
Op amp in sensor takes the
voltage across RT and applies
appropriate gain and offset to
achieve the output voltage
function
At the nominal supply voltage
of 3.3 V, the output voltage is
0.25 V at 0º C and 3.05 V at
100º C
Connecting the AD22103K to
Circuit Board

Pin 1 - Voltage Input


Pin 2 - Voltage Output


Connection to voltage
output terminal on
circuit board
Connection to input
terminal on board
Pin 3 - Ground
Spotlight on…the AD590JH

Features






Produces output current
proportional to temperature: 1
microAmp per Kelvin
-55º C to 150º C temperature
range
Wide power supply range: 4V to
30V
Electrically durable – withstands a
voltage as high as 44V and a
reverse voltage of 20V, so pin
reversal does not damage sensor
High output impedance (over
10MOhms) allows for minimum
changes in output current despite
large changes in input voltage
Low cost
Stage 5 – Sensor Ouput



Previously-made codes
were obtained from class
file
These new files were
integrated into the circuit
board with the IAR
Embedded Workbench
and the C-Spy Debugger
Many trials were needed
to obtain the correct
sensor output
Stage 6 – Demonstration and Data
Completed Circuit Board
Stage 6 – Demonstration and Data
Our breadboard with sensors
Their breadboard with sensors
Stage 6 – Demonstration and Data

Sensor 22103K Temperature Rising
92
90
88
Temperature (F)

Data of Temperature Rising 75
to 90º F
Theoretically, the time and
temperature relationship
should be linear and equal for
both sensors. Since the
AD22103 reaches 90 degrees
faster, this may indicate either
less accuracy or greater
efficiency of the sensor. Thus,
the 590JH may be a more
accurate yet less efficient
sensor
Less efficiency at the
temperature extremes
86
84
82
80
78
76
74
0
5
10
15
20
25
Time (sec)
Sensor 590JH Temperature Rising
90
Temperature (F)

85
80
75
70
0
5
10
15
20
Time (sec)
25
30
35
40
Stage 6 – Demonstration and Data
Sensor 22103K Temperature Falling
90
88
Temperature (F)

Data of temperature
falling from 90 to 75º C
For decreasing
temperature, the 590JH
sensor demonstrates a
more linear relationship
between time and
temperature, again
demonstrating the slightly
finer quality than the
22103K
86
84
82
80
78
76
74
0
5
10
15
20
25
30
35
40
Time (sec)
Sensor 590JH Temperature Falling
92
90
Temperature (F)

88
86
84
82
80
78
76
74
0
10
20
30
Time (sec)
40
50
Stage 7 – The Fruits of Hard Work

A Happy Dr. Green
Stage 7 – The Fruits of Hard Work

An Enlightened Group of Students
Stage 7 – The Fruits of Hard Work

Reduced risk of future injury from circuit
boards and electrical devices
Conclusion

This project allowed the team members to
learn to work together, to become familiar
with basic circuit board design, and to
combine various aspects of previous
engineering education to output a real
product
Thank you
Are there any questions?
Download