rock it rocke weekly teleconference

14
ROCK IT ROCKE WEEKLY TELECONFERENCE Temple University Advisors: Dr. John Helferty Charles Wright Jinyan Chen Billy Cheng Brittany Gray May 21, 2010 1

Upload: becca

Post on 24-Feb-2016

56 views

Category:

Documents


0 download

DESCRIPTION

Temple University Advisors: Dr. John Helferty Charles Wright Jinyan Chen Billy Cheng Brittany Gray May 21 , 2010. Rock it rocke Weekly Teleconference. Changes Since Last Week. Successfully Tested Prototype Electrical System PCB Order Placed. Pictures. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Rock it  rocke Weekly Teleconference

ROCK IT ROCKE

WEEKLY TELECONFERENCE

Temple UniversityAdvisors: Dr. John Helferty

Charles WrightJinyan Chen

Billy ChengBrittany GrayMay 21, 2010

1

Page 2: Rock it  rocke Weekly Teleconference

Changes Since Last Week Successfully Tested Prototype Electrical

System PCB Order Placed

2

Page 3: Rock it  rocke Weekly Teleconference

Pictures Schematic Of Power Supply System

3

Page 4: Rock it  rocke Weekly Teleconference

Pictures Schematic Of Data Logging And Microcontroller

4

Page 5: Rock it  rocke Weekly Teleconference

Pictures Schematic Of

ADC And X And Y Accelerometers

5

Page 6: Rock it  rocke Weekly Teleconference

Pictures

6

Page 7: Rock it  rocke Weekly Teleconference

Pictures Prototype

7

Page 8: Rock it  rocke Weekly Teleconference

Pictures PCB Layout

8

Page 9: Rock it  rocke Weekly Teleconference

Test Description - Electrical Used BS2 Onboard EEPROM As

Flash Memory Address Counter Implemented Series Of Steps To

Erase, Log, And Read Data

9

Page 10: Rock it  rocke Weekly Teleconference

Test Results Data Output Of

Accelerometers

10

Page 11: Rock it  rocke Weekly Teleconference

To Be Completed Testing Of Mechanical System Outputting Data Into Excel File Component Mounting On PCB Upon

Arrival Walkthrough Of Payload Check-Out

ProcedureFirst Order Of Business – Documentation

Check!

11

Page 12: Rock it  rocke Weekly Teleconference

Thank you

Questions?

12

Page 13: Rock it  rocke Weekly Teleconference

Appendix: Code ' {$STAMP BS2}' {$PBASIC 2.5}

'---------Variables--------------------------

addhi VAR Byte 'high byte of address locationaddlomi VAR Word 'low 16 bits of address locationcmd VAR Byte ' command, to be sent by the Stampadrs VAR Byte ' which byte on pagedat VAR Byte 'data instatOne VAR Bytestat VAR Byte 'status registerresult VAR Byte ' ADC8031 ResultresultOne VAR Bytevolts VAR Word ' Volts (0.01 Increments)ix VAR Byte ' general purpose indexx VAR Byte ' general purpose byte

'--------------------------------------------'------Connection Lines----------------------

Adc0831 PIN 0 ' ADC0831 Chip SelectAdc0832 PIN 10AdcClock PIN 2 ' ADC0831 ClockAdcClockOne PIN 11AdcData PIN 1 ' ADC0831 DataAdcDataOne PIN 12cs CON 8 ' chip SELECT lineclk CON 5 ' clock lineso CON 7 ' data output line

'---------Variables--------------------------

addhi VAR Byte 'high byte of address locationaddlomi VAR Word 'low 16 bits of address locationcmd VAR Byte ' command, to be sent by the Stampadrs VAR Byte ' which byte on pagedat VAR Byte 'data instatOne VAR Bytestat VAR Byte 'status registerresult VAR Byte ' ADC8031 ResultresultOne VAR Bytevolts VAR Word ' Volts (0.01 Increments)ix VAR Byte ' general purpose indexx VAR Byte ' general purpose byte

'--------------------------------------------'------Connection Lines----------------------

Adc0831 PIN 0 ' ADC0831 Chip SelectAdc0832 PIN 10AdcClock PIN 2 ' ADC0831 ClockAdcClockOne PIN 11AdcData PIN 1 ' ADC0831 DataAdcDataOne PIN 12cs CON 8 ' chip SELECT lineclk CON 5 ' clock lineso CON 7 ' data output linesi CON 6 ' data input line '

'-------------------------------------------------'---------------Variable Initializing-------------

addhi = $00addlomi = $0000

'------------------------------------------------

'---------------------Main Program---------------

GOSUB counter

END

counter:'-----------------------------'DEBUG CR, DEC addhi'GOSUB erase'GOSUB echipGOSUB unprotectGOSUB eraseDEBUG "write sensor1 read sensor1 write sensor2 read sensor2", CRDO WHILE (addhi < $20) addlomi = addlomi +$8 IF (addlomi = $0000)THEN addhi = addhi + $1 ENDIF DEBUG HEX addhi," ", HEX addlomi, CR GOSUB prgm GOSUB rd

addlomi=addlomi+$8 IF(addlomi=$0000)THEN addhi=addhi+$1 GOSUB erase ENDIF GOSUB prgmOne GOSUB rd DEBUG CRLOOPRETURN

Page 14: Rock it  rocke Weekly Teleconference

enable:'-----------------------'write enablecmd = $06 'opcode for write enableLOW cs 'CS lowSHIFTOUT so, clk, MSBFIRST, [cmd\8] 'sets

WEL bit to 1 in status registerHIGH cs 'CS highRETURN

disable:'----------------'disable writecmd = $04LOW csSHIFTOUT so, clk, MSBFIRST, [cmd\8]HIGH csRETURN

unprotect:'---------------------------------------'performing a global unprotect of flash

GOSUB enablecmd = $01 'opcode for global unprotectdat = $00 'sets the status at unprotectLOW csSHIFTOUT so, clk, MSBFIRST, [cmd\8, dat\8]HIGH csRETURN

rd:'----------------'read from memorycmd = $0BLOW csSHIFTOUT so, clk, MSBFIRST, [cmd\8, addhi\8, addlomi\16, 0\8]SHIFTIN si, clk, MSBPRE, [stat\8]HIGH cs

DEBUG " ", DEC stat, " "

RETURN

prgm:'------------------------------------------'___________________________________________

GOSUB accelGOSUB logGOSUB disable

RETURN

prgmOne:'------------------------------------------'___________________________________________

GOSUB accelOneGOSUB logOneGOSUB disable

RETURN

log:'----------------------------------------------'writing commands to the flashGOSUB enable

cmd = $02LOW csSHIFTOUT so, clk, MSBFIRST, [cmd\8, addhi\8, addlomi\16, result\8]HIGH csDEBUG " ", DEC result, " "RETURN

logOne:GOSUB enablecmd = $02LOW csSHIFTOUT so, clk, MSBFIRST, [cmd\8, addhi\8, addlomi\16, resultOne\8]HIGH csDEBUG DEC resultOne, " "RETURN

accel:'------------------------------------------'logging accelerometer data into memoryHIGH Adc0831result = 0LOW Adc0831SHIFTIN AdcData, AdcClock, MSBPOST, [result\9]HIGH Adc0831RETURN accelOne:'------------------------------------------'logging accelerometer data into memoryHIGH Adc0832resultOne = 0LOW Adc0832SHIFTIN AdcDataOne, AdcClockOne, MSBPOST, [resultOne\9]HIGH Adc0832RETURN