220 likes | 389 Views
SDP 2005. Wireless Ski Timing System MDR Presentation. Professor A. Muschinski Mike Coughlin Philip Da Silva Dave Pomeroy Nick Hnatiw. Presentation Outline. Dave: Review of Project, MDR Specs/Accomplishments Mike: Clocks, Interrupts, Delays Phil: Project Versions, C Code
E N D
SDP 2005 Wireless Ski Timing SystemMDR Presentation Professor A. Muschinski Mike Coughlin Philip Da Silva Dave Pomeroy Nick Hnatiw
Presentation Outline Dave: Review of Project, MDR Specs/Accomplishments Mike: Clocks, Interrupts, Delays Phil: Project Versions, C Code Nick: Wireless Communication, Budget, Conclusion
3 Part System: Start, Wearable Timer, Finish Start Racer starts by tripping start wand Finish Racer finishes by tripping IR beam Timer Strapped to racer Controlled by start and finish units Finish stops wearable clock, which transmits race time to finish unit. Here times are recorded for scoring Wearable clock keeps racer’s time while racer is on course Timer in wearable clock starts when racer trips the start wand
MDR Specifications Clock unit Keeps time through a start and a stop interrupt Accurate to the hundredth of a second Will not wander more than 10 ms over five minutes Wireless Communication Communicate through two transceivers Transceiver chips controlled by two PICs
Accomplishments Clock Unit Accuracy: 10 ms over 22 minutes (based on clock error ppm) Precision: 61 µs (based on clock speed and implementation) Wireless Communication Two transceivers communicating data
Presentation Outline Dave: Review of Project, MDR Specs/Accomplishments Mike: Clocks, Interrupts, Delays Phil: Project Versions, C Code Nick: Wireless Communication, Budget, Conclusion
TCXO Rated for use in temperature range -40C to +85C ±7.5ppm => ± 4min/yr => Max race time of 22min Responsible for keeping accurate race time
Clock and Instruction Cycles 4MHz system clock allows for fast interrupt service PIC16F877 instructions: 4 clock cycles = 1 instruction cycle = 1 µs 2 instruction cycles for branch instructions 1 instruction cycles for all other instructions
Delay Times Examination of compiled assembly code Worst Cases 33µs worst case result difference 40µs worst case overall delay
Presentation Outline Dave: Review of Project, MDR Specs/Accomplishments Mike: Clocks, Interrupts, Delays Phil: Project Versions, C Code Nick: Wireless Communication, Budget, Conclusion
C Code V00 – VFD functionality V01 – Moved VFD, input pin for buzzer V02 – Timer0 interrupt, 1s beep V03 – Classified V04 – Timer0 uses TCXO, external interrupt, time calculations and conversions V05 – Rewrote timing conversion
Timer_Module.c Priority based – 1st Timer0, 2nd External Additional Time Calculations get_timer0( ) on each gate trip Convert returned integer to fraction of Timer0 interrupt time Subtract start gate time, add finish gate time from total time
Convert_time.c Mother variable ‘cnt’ scaled by time constant Conversion formula ‘cnt’ to hours, minutes, seconds, and hundredths Overflow problems! 17 minute overflow still within 5 minute spec To be fixed regardless
Presentation Outline Dave: Review of Project, MDR Specs/Accomplishments Mike: Clocks, Interrupts, Delays Phil: Project Versions, C Code Nick: Wireless Communication, Budget, Conclusion
Wireless Communication Micrel RFB915 Module Operating range: -20°C to 75°C VCO (voltage controlled oscillator) Frequency Modulation Frequency 902 – 928 MHz Programmable frequency dividers Data rate of 9200 bits/sec
Wireless Communication 3 Registers set the frequency N,M, and A registers hold the frequency values Registers are 12, 10, and 6 bits respectively Values are determined using following equation: fxco / M = fRF / (64*N + A) 80bit control word entered at power-up Sets internal values
Budget Total amount spent $186.42 Planned future purchases ~$200 Remaining budget for CDR ~$100
Conclusion MDR specifications met Accurate timing Wireless communication Future milestones Three units with wireless transmission of data Menu system for the finish unit with user input Timing within specification Field tested units
Relativity Concern? t is the time interval in the stationary frame t1 is the time interval in the uniform motion frame v is the relative speed c is the speed of light, t = 300 seconds (longest ski race ever) v = 200 mph ~ 90 m/s (fastest skier ever) c = 300000000 m/s Result: No detectable difference between stationary frame and motion frame.