160 likes | 362 Views
MSP 430 Project ECE 300 Spring 2004. William S. McLemore Ruben D. Briano Cheng-Han Tsai. Purpose of this Project. Have an opportunity to work as member of a team. Learn basic skills of soldering Learn to compile program in order to flash the computer chip
E N D
MSP 430 ProjectECE 300Spring 2004 William S. McLemore Ruben D. Briano Cheng-Han Tsai
Purpose of this Project • Have an opportunity to work as member of a team. • Learn basic skills of soldering • Learn to compile program in order to flash the computer chip • Select and study the characteristic of a sensor • Learn to calibrate the chosen sensor in order to get accurate readings through the computer chip and to the LCD
Process of Building the Project • Solder all components to the board • Test the board by flashing demo file • Create working circuit between board and sensor • Change and correct the code to display wanted results • Test sensor and board together in various cases
Soldering Order • Surface mounted capacitors and resistors • Push button switch, voltage regulator, 5 volt input, and slider switch • MSP430 chip • LCD • JTAG connector
Steps for Programming the MSP430 Chip • Copy the files from the ECE 300 website • Create a new project in the IAR software • Add the Delay, Demo, and LCD files to the project • Compile the project and then select the Debugger • Open the lcdDisplay and select f430p • Now the chip has been flashed and it should scroll ‘HELLO’ across LCD display.
AD590 Temperature SensorFeatures • Linear current output • Wide Temperature Range: -55°C to 150 °C • 4 V to 30 V supply voltage range allows for versatility • Very accurate when compared to other sensors • Output current is not dependant on the exact value of the input voltage; as long as it is within the specified range, the current will be the same
Graph of the Input vs. the Output • Linear relationship between the output current and input voltage. • Anywhere between the specified voltage range, the output current is proportional to the temperature in Kelvin, equal to 1 micro-amp per Kelvin
Schematic of Our First Circuit • This schematic was highly unstable • Measured the correct room temperature • Jumped around randomly when an ice cube was placed on it, varying from –20ºC to 58ºC AD590 9V 1Kohm Vo
Schematic of Circuit 1 kOhms • Operating voltage used for the op amp is 9V • This schematic gave the most stable results • Gives the room temperature and went down to 1ºC when an ice cube was placed on it. • The Vo is tied into the board AD590 9 V Vo
Block Diagram 9 V Battery AD590 Op Amp And Resistor MSP 430 LCD
Intelligent Sensor Microcode Initializations Input Convert data Send Voltage MSP 430 Processor Output
Source Code sample = ADC12MEM6; X = sample; Y = .2*(X+X1+X2+X3+X4); // moving average filter X4 = X3; X3 = X2; X2 = X1; X1 = X; Y = Y – 3756.2; // Y – offset Y = Y * 10.1; lcd_word(Y,2); lcd_char(0,’C’); // displays a ‘C’ for Celsius
Complications • Between the time that we got our board to flash and connected to our sensor, some of the pins on the chip came loose, and we had to re-solder some of the pins. • Our first op amp was bad and gave us unstable results. We switched it with another one, which gave us better results.
Sources • Analog Devices: • http://www.analog.com/ • The University of North Florida College of Computing, Engineering, and Construction: • http://www.unf.edu/ccec/