Presentation is loading. Please wait.

Presentation is loading. Please wait.

 Home Security and Lighting System  Western Washington University  Jonathon Ross  28 April, 2009.

Similar presentations


Presentation on theme: " Home Security and Lighting System  Western Washington University  Jonathon Ross  28 April, 2009."— Presentation transcript:

1  Home Security and Lighting System  Western Washington University  Jonathon Ross  28 April, 2009

2  MCU – MC9S12DP512  MCU Bus Frequency 25MHz  Memory Requirements 3kB Ram 10kB Rom  Kernel Choice MicroC/OS-II

3  Start Task  Light Sense Task  User Interface Task  Light Adjust Task  Motion Sensor Task  Alarm Task

4  Description Creates tasks and displays startup message. Task Priority - #4 Task Period - Once (Startup) Estimated Task Execution Time - ~1s Task CPU load - Not Applicable

5  Description Senses and adjusts light according to a predetermined level set by the user. Task Priority - #5 Task Period - 10ms (Periodic) Estimated Task Execution Time - 1ms Task CPU load  Average -.5/10 =.05  Peak - 1/10 =.1

6  Description Interfaces between user and product as well as controls states and other tasks Task Priority - #6 Task Period - 10ms (Periodic) Estimated Task Execution Time -.1ms Task CPU load  Average -.05/10 =.005  Peak -.1/10 =.01

7  Description Allows user to adjust the lighting level with a 4 button array.  Options available - on, off, up, down Task Priority - #7 Task Period - 10ms (Periodic) Estimated Task Execution Time -.25ms Task CPU load  Average -.1/10 =.01  Peak -.25/10 =.025

8  Description Senses outside motion and activates a light when movement is detected outside the front door. Task Priority - #8 Task Period - 20ms (Periodic) Estimated Task Execution Time - 1.5ms Task CPU load  Average - 1/20 =.05  Peak - 1.5/20 =.075

9  Description Detects open windows and doors and activates an alarm when necessary. Task Priority - #9 Task Period - 50ms (Periodic) Estimated Task Execution Time -.1ms Task CPU load  Average -.05/50 =.001  Peak -.1/50 =.002

10 L max= (10%) + (1%) + (2.5%) + (7.5%) + (.2%) L max= 21.2% L average = (5%) + (.5%) + (1%) + (5%) + (.1%) L average = 11.6%

11

12 Keypad I/O Key.c() KeyCodeTable Key KeyFlag Keypad Module Application KeyPend() UserInterfaceTask LightAdjust() StartTask() KeyInit() KeyPend()

13 LCD I/O Lcd.c() LCD Module Application UserInterfaceTask() LightAdjustTask() StartTask() Lcd_init() LcdClrDisp() LcdMoveCursor() LcdCursor() LcdBackspace() LcdForwardSpace() LcdDispChar() LcdDispDecNum() putstrg()

14 LightSensor Application LightSenseTask() TRIAC/Bulbs LightSensor I/O Light Bulbs/Output LightAdjustTask() Level Level.flag

15 Alarm 1 Alarm 2 Alarm 3 Alarm 4 Alarm 5 Application AlarmTask() Buzzer Alarm Groups I/O Alarm MotionSensorTask() TRIAC Light Motion Sensor Motion Sensor I/O


Download ppt " Home Security and Lighting System  Western Washington University  Jonathon Ross  28 April, 2009."

Similar presentations


Ads by Google