+ All Categories
Home > Documents > Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Date post: 24-Dec-2015
Category:
Upload: christopher-gardner
View: 219 times
Download: 0 times
Share this document with a friend
20
Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin
Transcript
Page 1: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Home Enhancement Suite

Presenter: Allen Humphreys

William Bouchonnet, Daniel Sabo, Nathan Irvin

Page 2: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Summary• Module specific design considerations

and status

• Major software component descriptions

• Hierarchical code organization diagram and descriptions

Page 3: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Updated PSSCs1. An ability to detect a user based on RFID and determine

which user has priority, displaying the user's identity on an LCD.

2. An ability to adjust the light intensity to match a user’s settings through X10 protocol.

3. An ability to adjust a television set or other HDMI device using CEC-HDMI protocol, to a user's preferred settings. (ON/OFF, Channel, Volume)

4. An ability to unlock a door when an acceptable RFID is present.

5. An ability to select/set preferred settings through an embedded web server and the ability to save the "light settings" with the press of a button.

Page 4: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

micro

PLIX

RJ-11 PL 513Transmitter

ACOutlet

X10Light ControlPower

Supply+5

RFIDReaders

spi

+3.3

Ambient Light Sensor

ethernetport

ADC

HDMIPortI/O

electricstrike

(door lock)

I/O

LCD

uart

user saveI/O

ethernet

XBeeModule uart

XBeeModule Ext. PHY

National DP8384Q

Updated Block Diagram

Page 5: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Software Design Considerations

• Xbee• UART1

• Receive• Tech considerations• Pseudo-code

• PLIX Chip• SPI1

• Transmit• Researched, pseudo-code

Page 6: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Software Design Considerations

• LCD• UART2

• Transmit only• One wire communication• Simple interface

• RFID Reader• UART5

• Receive Only• One wire communication

Page 7: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Major Software Componenets

• Web Interface• Ethernet

• RMII• Ported from Microchip

• Porting started, not tested

• Consumer Electronics Control (CEC)• Port E – Pin 4

• Tristate register for input/output operation• Network mapping• Conceptualized

Page 8: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

CEC Timing

Page 9: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

CEC Message Framing

Page 10: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Software Design Narrative

• Organization of Code - Polling• Application requires little user interaction• Simpler to code/debug• Minimal service time requirement

• Overall Progress• Microchip HTTP server setup/porting started• Other modules to be tested individually then

wrapped in

Page 11: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

main()

InitializeBoard() InitAppConfig() StackInit() Polling Loop

StackTask() StackApplictions() ReceiveUser()

UpdateDoor() UpdateLights() UpdateTV() UpdateLCD()

InstantSave()

Software Design Narrative

Page 12: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Software Design Narrative

• InitializeBoard()

• UART1

• UART2

• UART5

• SPI1

Page 13: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Software Design Narrative

• InitAppConfig()• Application specific data structure setup

• StackInit()• MAC, TCP, UDP, HTTP initializations

Page 14: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

main()

InitializeBoard() InitAppConfig() StackInit() Polling Loop

StackTask() StackApplictions() ReceiveUser()

UpdateDoor() UpdateLights() UpdateTV() UpdateLCD()

InstantSave()

Software Design Narrative

Page 15: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Software Design Narrative

• Polling Loop

• StackTask()• Checks for new incoming packets• Performs timed stack operations

• StackApplications()• HTTPServer() – possibly others

• Acts like an RTOS task• Main application must call this function

repeatedly

Page 16: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Software Design Narrative

• Polling Loop (cont’d)

• ReceiveUser()• UpdateDoor()

• Signal door to switch states

• UpdateLights()• Signal PLIX to adjust lighting

Page 17: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Software Design Narrative

• Polling Loop (cont’d)

• ReceiveUser()• UpdateTV()

• Use CEC functions to set channel/volume

• UpdateLCD()• Display the new current user

Page 18: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Software Design Narrative

• Polling Loop (cont’d)

• InstantSave()• Checks for button press• Saves the current ATD light sensor value

Page 19: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Software Design Narrative

• Other/Misc

• Lights• First use and on command• Set lights to each level, record ATD

value

Page 20: Home Enhancement Suite Presenter: Allen Humphreys William Bouchonnet, Daniel Sabo, Nathan Irvin.

Questions?


Recommended