140 likes | 262 Vues
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.
E N D
Temple University Advisors: Dr. John Helferty Charles Wright Jinyan Chen Billy Cheng Brittany Gray May 21, 2010 Rock it rockeWeekly Teleconference
Changes Since Last Week • Successfully Tested Prototype Electrical System • PCB Order Placed
Pictures • Schematic Of Power Supply System
Pictures • Schematic Of Data Logging And Microcontroller
Pictures • Schematic Of ADC And X And Y Accelerometers
Pictures • Prototype
Pictures • PCB Layout
Test Description - Electrical • Used BS2 Onboard EEPROM As Flash Memory Address Counter • Implemented Series Of Steps To Erase, Log, And Read Data
Test Results • Data Output Of Accelerometers
To Be Completed • Testing Of Mechanical System • Outputting Data Into Excel File • Component Mounting On PCB Upon Arrival • Walkthrough Of Payload Check-Out Procedure • First Order Of Business – Documentation Check!
Thank you Questions?
'---------Variables-------------------------- addhi VAR Byte 'high byte of address location addlomi VAR Word 'low 16 bits of address location cmd VAR Byte ' command, to be sent by the Stamp adrs VAR Byte ' which byte on page dat VAR Byte 'data in statOne VAR Byte stat VAR Byte 'status register result VAR Byte ' ADC8031 Result resultOne VAR Byte volts VAR Word ' Volts (0.01 Increments) ix VAR Byte ' general purpose index x VAR Byte ' general purpose byte '-------------------------------------------- '------Connection Lines---------------------- Adc0831 PIN 0 ' ADC0831 Chip Select Adc0832 PIN 10 AdcClock PIN 2 ' ADC0831 Clock AdcClockOne PIN 11 AdcData PIN 1 ' ADC0831 Data AdcDataOne PIN 12 cs CON 8 ' chip SELECT line clk CON 5 ' clock line so CON 7 ' data output line si CON 6 ' data input line ' '------------------------------------------------- '---------------Variable Initializing------------- addhi = $00 addlomi = $0000 '------------------------------------------------ '---------------------Main Program--------------- GOSUB counter END counter: '----------------------------- 'DEBUG CR, DEC addhi 'GOSUB erase 'GOSUB echip GOSUB unprotect GOSUB erase DEBUG "write sensor1 read sensor1 write sensor2 read sensor2", CR DO 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 CR LOOP RETURN enable: '----------------------- 'write enable cmd = $06 'opcode for write enable LOW cs 'CS low SHIFTOUT so, clk, MSBFIRST, [cmd\8] 'sets WEL bit to 1 in status register HIGH cs 'CS high RETURN disable: '---------------- 'disable write cmd = $04 LOW cs SHIFTOUT so, clk, MSBFIRST, [cmd\8] HIGH cs RETURN unprotect: '--------------------------------------- 'performing a global unprotect of flash GOSUB enable cmd = $01 'opcode for global unprotect dat = $00 'sets the status at unprotect LOW cs SHIFTOUT so, clk, MSBFIRST, [cmd\8, dat\8] HIGH cs RETURN rd: '---------------- 'read from memory cmd = $0B LOW cs SHIFTOUT 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 accel GOSUB log GOSUB disable RETURN prgmOne: '------------------------------------------ '___________________________________________ GOSUB accelOne GOSUB logOne GOSUB disable RETURN log: '---------------------------------------------- 'writing commands to the flash GOSUB enable cmd = $02 LOW cs SHIFTOUT so, clk, MSBFIRST, [cmd\8, addhi\8, addlomi\16, result\8] HIGH cs DEBUG " ", DEC result, " " RETURN logOne: GOSUB enable cmd = $02 LOW cs SHIFTOUT so, clk, MSBFIRST, [cmd\8, addhi\8, addlomi\16, resultOne\8] HIGH cs DEBUG DEC resultOne, " " RETURN accel: '------------------------------------------ 'logging accelerometer data into memory HIGH Adc0831 result = 0 LOW Adc0831 SHIFTIN AdcData, AdcClock, MSBPOST, [result\9] HIGH Adc0831 RETURN accelOne: '------------------------------------------ 'logging accelerometer data into memory HIGH Adc0832 resultOne = 0 LOW Adc0832 SHIFTIN AdcDataOne, AdcClockOne, MSBPOST, [resultOne\9] HIGH Adc0832 RETURN Appendix: Code ' {$STAMP BS2} ' {$PBASIC 2.5} '---------Variables-------------------------- addhi VAR Byte 'high byte of address location addlomi VAR Word 'low 16 bits of address location cmd VAR Byte ' command, to be sent by the Stamp adrs VAR Byte ' which byte on page dat VAR Byte 'data in statOne VAR Byte stat VAR Byte 'status register result VAR Byte ' ADC8031 Result resultOne VAR Byte volts VAR Word ' Volts (0.01 Increments) ix VAR Byte ' general purpose index x VAR Byte ' general purpose byte '-------------------------------------------- '------Connection Lines---------------------- Adc0831 PIN 0 ' ADC0831 Chip Select Adc0832 PIN 10 AdcClock PIN 2 ' ADC0831 Clock AdcClockOne PIN 11 AdcData PIN 1 ' ADC0831 Data AdcDataOne PIN 12 cs CON 8 ' chip SELECT line clk CON 5 ' clock line so CON 7 ' data output line '---------Variables-------------------------- addhi VAR Byte 'high byte of address location addlomi VAR Word 'low 16 bits of address location cmd VAR Byte ' command, to be sent by the Stamp adrs VAR Byte ' which byte on page dat VAR Byte 'data in statOne VAR Byte stat VAR Byte 'status register result VAR Byte ' ADC8031 Result resultOne VAR Byte volts VAR Word ' Volts (0.01 Increments) ix VAR Byte ' general purpose index x VAR Byte ' general purpose byte '-------------------------------------------- '------Connection Lines---------------------- Adc0831 PIN 0 ' ADC0831 Chip Select Adc0832 PIN 10 AdcClock PIN 2 ' ADC0831 Clock AdcClockOne PIN 11 AdcData PIN 1 ' ADC0831 Data AdcDataOne PIN 12 cs CON 8 ' chip SELECT line clk CON 5 ' clock line so CON 7 ' data output line si CON 6 ' data input line ' '------------------------------------------------- '---------------Variable Initializing------------- addhi = $00 addlomi = $0000 '------------------------------------------------ '---------------------Main Program--------------- GOSUB counter END counter: '----------------------------- 'DEBUG CR, DEC addhi 'GOSUB erase 'GOSUB echip GOSUB unprotect GOSUB erase DEBUG "write sensor1 read sensor1 write sensor2 read sensor2", CR DO 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 CR LOOP RETURN
rd: '---------------- 'read from memory cmd = $0B LOW cs SHIFTOUT 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 accel GOSUB log GOSUB disable RETURN prgmOne: '------------------------------------------ '___________________________________________ GOSUB accelOne GOSUB logOne GOSUB disable RETURN log: '---------------------------------------------- 'writing commands to the flash GOSUB enable cmd = $02 LOW cs SHIFTOUT so, clk, MSBFIRST, [cmd\8, addhi\8, addlomi\16, result\8] HIGH cs DEBUG " ", DEC result, " " RETURN logOne: GOSUB enable cmd = $02 LOW cs SHIFTOUT so, clk, MSBFIRST, [cmd\8, addhi\8, addlomi\16, resultOne\8] HIGH cs DEBUG DEC resultOne, " " RETURN accel: '------------------------------------------ 'logging accelerometer data into memory HIGH Adc0831 result = 0 LOW Adc0831 SHIFTIN AdcData, AdcClock, MSBPOST, [result\9] HIGH Adc0831 RETURN accelOne: '------------------------------------------ 'logging accelerometer data into memory HIGH Adc0832 resultOne = 0 LOW Adc0832 SHIFTIN AdcDataOne, AdcClockOne, MSBPOST, [resultOne\9] HIGH Adc0832 RETURN enable: '----------------------- 'write enable cmd = $06 'opcode for write enable LOW cs 'CS low SHIFTOUT so, clk, MSBFIRST, [cmd\8] 'sets WEL bit to 1 in status register HIGH cs 'CS high RETURN disable: '---------------- 'disable write cmd = $04 LOW cs SHIFTOUT so, clk, MSBFIRST, [cmd\8] HIGH cs RETURN unprotect: '--------------------------------------- 'performing a global unprotect of flash GOSUB enable cmd = $01 'opcode for global unprotect dat = $00 'sets the status at unprotect LOW cs SHIFTOUT so, clk, MSBFIRST, [cmd\8, dat\8] HIGH cs RETURN