that home automation topology - nick viera

36
THAT THAT 2010.05.04 2010.05.04 1 THAT Home THAT Home Automation Automation Topology Topology Chris Miller Nick Viera Chris Miller Nick Viera Final Presentation Final Presentation Bradley University Bradley University Electrical and Computer Electrical and Computer Engineering Department Engineering Department Advisors Advisors Dr. Irwin Dr. Irwin Dr. Malinowski Dr. Malinowski

Upload: others

Post on 03-Feb-2022

2 views

Category:

Documents


0 download

TRANSCRIPT

THAT THAT •• 2010.05.04 2010.05.04 • • 11

THAT HomeTHAT HomeAutomationAutomation

TopologyTopology

Chris Miller • Nick VieraChris Miller • Nick VieraFinal PresentationFinal Presentation

Bradley UniversityBradley UniversityElectrical and ComputerElectrical and ComputerEngineering DepartmentEngineering Department

AdvisorsAdvisorsDr. IrwinDr. Irwin

Dr. MalinowskiDr. Malinowski

THAT THAT •• 2010.05.04 2010.05.04 • • 22

IntroductionIntroduction

SignificanceSignificance

‣‣ Convenience ...Convenience ...

‣ ‣ Safety ...Safety ...

‣ ‣ Savings ...Savings ...

‣ ‣ FUN!FUN!

Better Living Through Home AutomationBetter Living Through Home Automation

THAT THAT •• 2010.05.04 2010.05.04 • • 33

IntroductionIntroduction

MotivationMotivation

Design Goals:Design Goals: Six Desirable TraitsSix Desirable Traits

Current productsCurrent productsfall short...fall short...

THAT THAT •• 2010.05.04 2010.05.04 • • 44

IntroductionIntroduction

MotivationMotivation

We Intend to achieve We Intend to achieve a reasonable balancea reasonable balance

THAT THAT •• 2010.05.04 2010.05.04 • • 55

IntroductionIntroduction

The Many Functions of Home AutomationThe Many Functions of Home Automation

Which to choose?Which to choose?

THAT THAT •• 2010.05.04 2010.05.04 • • 66

EthernetRouter

Computer( 32/64-bitplatform)

BroadbandModem

TheInternet

Ethernet LinkPoE Ethernet LinkSerial LinkSoftware Link

Given an Existing System:Given an Existing System:

IntroductionIntroduction

ObjectivesObjectives

THAT THAT •• 2010.05.04 2010.05.04 • • 77

Digital Thermostat

Module

ElectronicAccessModule

EthernetRouter

PoEEthernetSwitch

THAT Module

FrontDoor

Widget

THAT Module

Computer( 32/64-bitplatform)

THATControl

Software

BroadbandModem

TheInternet

Ethernet LinkPoE Ethernet LinkSerial LinkSoftware Link

To Design and Implement:To Design and Implement:

THAT topology and protocol THAT topology and protocol ( Nick and Chris )( Nick and Chris )

IntroductionIntroduction

ObjectivesObjectives

THAT THAT •• 2010.05.04 2010.05.04 • • 88

Digital Thermostat

Module

ElectronicAccessModule

EthernetRouter

PoEEthernetSwitch

THAT Module

THAT Module

Computer( 32/64-bitplatform)

THATControl

Software

BroadbandModem

TheInternet

Ethernet LinkPoE Ethernet LinkSerial LinkSoftware Link

To Design and Implement:To Design and Implement:

THAT topology and protocol THAT topology and protocol ( Nick and Chris )( Nick and Chris )THAT Control Software THAT Control Software ( Nick and Chris )( Nick and Chris )

IntroductionIntroduction

ObjectivesObjectives

FrontDoor

Widget

THAT THAT •• 2010.05.04 2010.05.04 • • 99

Digital Thermostat

Module

ElectronicAccessModule

EthernetRouter

PoEEthernetSwitch

THAT Module

THAT Module

Computer( 32/64-bitplatform)

THATControl

Software

BroadbandModem

TheInternet

Ethernet LinkPoE Ethernet LinkSerial LinkSoftware Link

To Design and Implement:To Design and Implement:

THAT topology and protocol THAT topology and protocol ( Nick and Chris )( Nick and Chris )THAT Control Software THAT Control Software ( Nick and Chris )( Nick and Chris )Digital Thermostat ModuleDigital Thermostat Module ( Nick )( Nick )Electronic Access ModuleElectronic Access Module ( Chris )( Chris )

IntroductionIntroduction

ObjectivesObjectives

FrontDoor

Widget

THAT THAT •• 2010.05.04 2010.05.04 • • 1010

THAT Power SupplyTHAT Power Supply

Block DiagramBlock Diagram

THAT THAT •• 2010.05.04 2010.05.04 • • 1111

Important ComponentsImportant Components

PoE ControllerPoE Controller

Ag9405 Power overAg9405 Power overEthernet (PoE) moduleEthernet (PoE) moduleby Silvertel implementsby Silvertel implementsIEEE 802.3afIEEE 802.3af

THAT THAT •• 2010.05.04 2010.05.04 • • 1212

THAT Power SupplyTHAT Power Supply

SchematicSchematic

THAT THAT •• 2010.05.04 2010.05.04 • • 1313

THAT Power SupplyTHAT Power Supply

PCB LayoutPCB Layout

THAT THAT •• 2010.05.04 2010.05.04 • • 1414

THAT Power SupplyTHAT Power Supply

Completed Power SupplyCompleted Power Supply

THAT THAT •• 2010.05.04 2010.05.04 • • 1515

THAT Network InterfaceTHAT Network Interface

Block DiagramBlock Diagram

THAT THAT •• 2010.05.04 2010.05.04 • • 1616

Important ComponentsImportant Components

Ethernet ControllerEthernet Controller

ENC28J60 IC by Microchip implements IEEE 802.3ENC28J60 IC by Microchip implements IEEE 802.3

THAT THAT •• 2010.05.04 2010.05.04 • • 1717

THAT Network InterfaceTHAT Network Interface

SchematicSchematic

THAT THAT •• 2010.05.04 2010.05.04 • • 1818

THAT Network InterfaceTHAT Network Interface

PCB LayoutPCB Layout

THAT THAT •• 2010.05.04 2010.05.04 • • 1919

THAT Network InterfaceTHAT Network Interface

Completed NICCompleted NIC

THAT THAT •• 2010.05.04 2010.05.04 • • 2020

Important ComponentsImportant Components

Microcontroller PlatformMicrocontroller Platform

Atmel AVR SeriesAtmel AVR Series

‣ ‣ 8-bit RISC architecture 8-bit RISC architecture ‣ ‣ In System Programming In System Programming ‣ ‣ Many peripherals (ADC, comparators, serial UART, IMany peripherals (ADC, comparators, serial UART, I22C, SPI) C, SPI) ‣ ‣ Many through-hole and SMT package options Many through-hole and SMT package options ‣ ‣ Assembly and C languagesAssembly and C languages ‣ ‣ No proprietary software necessary No proprietary software necessary ‣ ‣ Cost-effective, readily available Cost-effective, readily available

THAT THAT •• 2010.05.04 2010.05.04 • • 2121

Electronic Access ModuleElectronic Access Module

Module Sub-TopologyModule Sub-Topology

PoE Ethernet LinkI2C Serial LinkAC/DC Control Link

THAT CommunicationsTHAT Communications( To Ethernet Switch )( To Ethernet Switch )

Front Door WidgetFront Door Widget Side Door WidgetSide Door Widget Back Door WidgetBack Door Widget

ElectricLock / Strike

ElectricLock / Strike

ElectronicAccessModule

THAT THAT •• 2010.05.04 2010.05.04 • • 2222

Electronic Access ModuleElectronic Access Module

Module OverviewModule Overview

‣ ‣ Graphical LCDGraphical LCD

‣ ‣ Integrated relaysIntegrated relays

‣ ‣ Piezo buzzerPiezo buzzer

‣ ‣ Seven-segment LEDsSeven-segment LEDs

‣ ‣ Pushbutton switchesPushbutton switches

HardwareHardware

‣ ‣ Open-sourceOpen-source

‣ ‣ Programmable functionalityProgrammable functionality

‣ ‣ Multi-user support Multi-user support

FirmwareFirmware

THAT THAT •• 2010.05.04 2010.05.04 • • 2323

Electronic Access ModuleElectronic Access Module

EAM Block DiagramEAM Block Diagram

THAT THAT •• 2010.05.04 2010.05.04 • • 2424

Electronic Access ModuleElectronic Access Module

Door Widget Block DiagramDoor Widget Block Diagram

THAT THAT •• 2010.05.04 2010.05.04 • • 2525

Completed WorkCompleted Work

Electronic Access Module PrototypingElectronic Access Module Prototyping

THAT THAT •• 2010.05.04 2010.05.04 • • 2626

Completed WorkCompleted Work

Electronic Access Module PrototypingElectronic Access Module Prototyping

THAT THAT •• 2010.05.04 2010.05.04 • • 2727

Digital Thermostat ModuleDigital Thermostat Module

Module OverviewModule Overview

HardwareHardware

‣ ‣ Graphical LCD screenGraphical LCD screen ‣ ‣ 6 switches and 5 LEDs 6 switches and 5 LEDs ‣ ‣ 4 relays4 relays ‣ ‣ Thermostat: -20 to 70°C with ±2° accuracyThermostat: -20 to 70°C with ±2° accuracy ‣ ‣ Humidistat: 10 to 95% with ±2% accuracyHumidistat: 10 to 95% with ±2% accuracy

SoftwareSoftware

‣ ‣ End-user configurableEnd-user configurable ‣ ‣ Weekly schedulingWeekly scheduling ‣ ‣ Heat, Cool, Auto, Fan, and Circulation modesHeat, Cool, Auto, Fan, and Circulation modes ‣ ‣ Short-cycle preventionShort-cycle prevention ‣ ‣ Settings stored to non-volatile memorySettings stored to non-volatile memory ‣ ‣ Passcodes for restricted accessPasscodes for restricted access

THAT THAT •• 2010.05.04 2010.05.04 • • 2828

Digital Thermostat ModuleDigital Thermostat Module

Physical Design ConceptPhysical Design Concept

THAT THAT •• 2010.05.04 2010.05.04 • • 2929

Digital Thermostat ModuleDigital Thermostat Module

Block DiagramBlock Diagram

THAT THAT •• 2010.05.04 2010.05.04 • • 3030

Digital Thermostat ModuleDigital Thermostat Module

Prototype DevicePrototype Device

THAT THAT •• 2010.05.04 2010.05.04 • • 3131

Digital Thermostat ModuleDigital Thermostat Module

Prototype LCD ReadoutPrototype LCD Readout

THAT THAT •• 2010.05.04 2010.05.04 • • 3232

THAT Control SoftwareTHAT Control Software

Example UsageExample Usage

THATControl

Software

(Python)Web Interface Terminal + Log Files

Main Computer ( Intranet )

Web Interfacevia Browser

Remote Device( Internet )

Web Interfacevia Browser

Local Device( Intranet )

THAT THAT •• 2010.05.04 2010.05.04 • • 3333

THAT Control SoftwareTHAT Control Software

Block DiagramBlock Diagram

THAT Moduledefinition(XML) file

THATControl

SoftwareCore

XMLParsingModule

HTTPWeb Server

Module

THAT TCPServerModule

THAT ModuleHTML file

THAT ModuleCSS file

THAT Software“Database”XML file(s)

XMLdatabaseModule

Default HTMLtheme file(s)

Default CSStheme file(s)

Provided by the module manufacturer

Provided with THAT Control Software

Dynamically generated by THAT Control Software

THAT THAT •• 2010.05.04 2010.05.04 • • 3434

THAT Control SoftwareTHAT Control Software

A Module's XML FileA Module's XML File

ModelIdentificationsection

Controls Declarationsection

THAT THAT •• 2010.05.04 2010.05.04 • • 3535

THATTHAT

ConclusionConclusion

Completed WorkCompleted Work

‣ ‣ Basic communication schemeBasic communication scheme

‣ ‣ TCP communications softwareTCP communications software

‣ ‣ THAT Power SupplyTHAT Power Supply

‣ ‣ THAT Network InterfaceTHAT Network Interface

In ProgressIn Progress

‣ ‣ Digital Thermostat ModuleDigital Thermostat Module

‣ ‣ Electronic Access ModuleElectronic Access Module

‣ ‣ THAT Control SoftwareTHAT Control Software

THAT THAT •• 2010.05.04 2010.05.04 • • 3636

▸ ▸ Questions? ◂Questions? ◂

THATTHAT

References:References:

[1] D. Dwelley & J. Herbold, “Banish Those Wall Warts With Power Over Ethernet,” [1] D. Dwelley & J. Herbold, “Banish Those Wall Warts With Power Over Ethernet,” electronic design,electronic design, Oct. 2003. [Online]. Available: http://electronicdesign.com/article/power/page/page/1/banish-those-Oct. 2003. [Online]. Available: http://electronicdesign.com/article/power/page/page/1/banish-those-wall-warts-with-power-over-ethernet59.aspxwall-warts-with-power-over-ethernet59.aspx

[2] D. Sherman, “AN452 One mile long I[2] D. Sherman, “AN452 One mile long I22C communication using the P82B715.” Datasheet & C communication using the P82B715.” Datasheet & Application Note Database, May 2010. [Online]. Available: Application Note Database, May 2010. [Online]. Available: http://www.datasheetarchive.com/pdf/Datasheet-054/DSA004594.pdfhttp://www.datasheetarchive.com/pdf/Datasheet-054/DSA004594.pdf

[3] G. Socher, “An AVR microcontroller based Ethernet device,” June 2006. [Online]. Available: [3] G. Socher, “An AVR microcontroller based Ethernet device,” June 2006. [Online]. Available: http://www.tuxgraphics.org/electronics/200606/article06061.shtmlhttp://www.tuxgraphics.org/electronics/200606/article06061.shtml

[4] G. Socher, “HTTP/TCP with an atmega88 microcontroller,” Nov. 2006. [Online]. Available: [4] G. Socher, “HTTP/TCP with an atmega88 microcontroller,” Nov. 2006. [Online]. Available: http://www.tuxgraphics.org/electronics/200611/embedded-webserver.shtmlhttp://www.tuxgraphics.org/electronics/200611/embedded-webserver.shtml