Presentation is loading. Please wait.

Presentation is loading. Please wait.

D.H.S. Digijock Home Security ECE477 – Team 7 Linda Stefanutti Zach Smith Stuart Pulliam Will Granger Software Design Narrative.

Similar presentations


Presentation on theme: "D.H.S. Digijock Home Security ECE477 – Team 7 Linda Stefanutti Zach Smith Stuart Pulliam Will Granger Software Design Narrative."— Presentation transcript:

1 D.H.S. Digijock Home Security ECE477 – Team 7 Linda Stefanutti Zach Smith Stuart Pulliam Will Granger Software Design Narrative

2 Overview of DHS Security system consisting of 2 remote detection units and 1 central monitoring station (CMS) The CMS has: ◦ Web server The Detectors have: ◦ Noise detection ◦ Motion sensing ◦ Smoke detection ◦ Temperature measuring Digijock Home Security - Software Design Narrative2

3 Central Monitoring System (CMS) Receiving input via USB devices Hosts a web server - Internet Information Services (IIS) MySQL database Will have a program written in C# which reads data from Xbee and places it in database Digijock Home Security - Software Design Narrative3

4 Detector (Analog-to-Digital) PeripheralPortCode Status Noise DetectorAN7Tested Temperature SensorAN6Tested Smoke DetectorAN5Written Battery ChargeAN0Tested Digijock Home Security - Software Design Narrative4 RegisterPurposeInitial Value 0x8D ATD Input Enable Register - set AN0,5-7 as input 0xE1 0x82 ATD Control Register 2 – enable ATD 0x80 0x83 ATD Control Register 3 – set conversion sequence length to 2 0x10 0x84 ATD Control Register 4 – select nominal sample time 0x85

5 Detector (SCI) Digijock Home Security - Software Design Narrative5 Xbee PortPort Xbee Data OutTX Xbee Data InRX RegisterPurposeInitial Value 0xC8 SCI Baud Rate Register High - set baud rate to 9600 0x00 0xC9 SCI Baud Rate Register Low 0x9C 0xCA SCI Control Register 1 0x00 0xCB SCI Control Register 2 - initialize SCI for program- driven operation 0x0C 0x03 Port B Data Direction Register - set PB4 for output 0x10 0x01 Port B Register - assert DRT pin on COM port 0x10 Code Status for Xbee Wireless Module: N/A

6 Detector (PWM) Digijock Home Security - Software Design Narrative6 PeripheralPortCode Status SpeakerPT1Tested RegisterPurposeInitial Value 0xE0PWM Enable Register – enable channel 10x02 0xE3PWM Prescale Clock Select Register - set clock t = 24 MHz / 16 0x04 0xE8PWM Scale A Register - set clock SB scalar to 119119 0xE1PWM Polarity Register - set PWM active high0x02 0xE4PWM Center Align Enable Register - left-aligned output mode 0 0xE5PWM Control Register - no concatenation0 0xF3PWM Ch.Per. 1 Register - 24MHz/(16*2*119*7) = 900Hz7 0xF9PWM Channel Duty 1 Register - set duty cycle = 0%0 0x247Module Routing Register - PT1 used as PWM ch 1 output 0x02 0xE2PWM Clock Select Register – select channel 1 clock0x02

7 Detector (SPI) Digijock Home Security - Software Design Narrative7 LCD PeripheralPortLCD PeripheralPort LCD SCKPM5LCD RSPM0 LCD MOSIPM4LCD CLKPT0 LCD R/WPM1 RegisterPurposeInitial Value 0xDA SPI Baud Rate Register - initialize baud rate for 6.25MHz 0x01 0xD8 SPI Control Register - transfers most significant bit first 0x50 0xD9 SPI Control Register 2 – normal mode 0x00 0x252 Port M Data Direction Register - set PM0 and PM1 as outputs 0x03 Code Status for LCD: Written PT0 Actually PM4,5

8 Detector (Digital I/O) Digijock Home Security - Software Design Narrative 8 PeripheralPortCode Status LED (Red)PT4Tested LED (Green)PT3Tested Motion DetectorPT2Tested RegisterPurposeInitial Value 0x242Port T Data Direction Register - make PT0,1,3,4 outputs (also PT6 for debug purposes) 0x5B

9 Detector - Main() flowchart Digijock Home Security - Software Design Narrative9

10 Software Hierarchy Digijock Home Security - Software Design Narrative10

11 Questions? 11Digijock Home Security - Software Design Narrative “The key to wisdom is knowing all the right questions.” © DC Comics


Download ppt "D.H.S. Digijock Home Security ECE477 – Team 7 Linda Stefanutti Zach Smith Stuart Pulliam Will Granger Software Design Narrative."

Similar presentations


Ads by Google