Transcript

Slide 1

Smarter Than Your HomeGROUP 4Daniel Arnett, Joseph Vanciel, Brian KruegerMotivationEnergy costs continue to riseEnergy independence is an important national issue, with energy conservation as a key componentWith the advances in mobile technologies, people want increasingly more access and control over all aspects of their livesGoalsCreate a prototype for a Smart House that will:

Reduce energy consumptionIncrease energy efficiencyAllow for home automationAllow for remote access via a user friendly GUI delivered through an internet browserObjectivesThe objectives of the Smart House will be to: Reduce wasted energy consumption by automatically shutting off nonessential appliances and lights in unoccupied rooms.Allow the user to adjust blind settings in each room so the blinds will open/close automatically, adjusting appropriately to help reduce energy consumptionAllow the user to remotely view and adjust statuses of various lights and electronics in each room

ObjectivesWireless communication:The prototype will be coordinated by one main microcontroller, which will wirelessly communicate with the other components throughout the house via RF.Design Contests:We hope to be able to enter this project in both UCFs and Texas Instruments contest.

RequirementsCommunicate to electronic devices through a webpageAutomated lights turn on and off as user enters/exits a roomElectronic devices and lights time out to save powerBlinds open/close according to amount of incoming light & user requestUser has control over multiple electronic devices within the household from one sourceSpecifications (User End)Lights & Electronics time out 5 minutes after doorway sensor is tripped & no activity (Power Savings)Web interface accessible to user at all times (User Accessibility)Web interface reports back status of all lights, blinds & electronics on the network (User Accessibility)

Specifications (Design End)Spend at least 90% of time in sleep modeExternal 4 bit dip switch on all devices to set unique addressDevices in sleep mode until external interrupt wakes them upRF communications operate on 900 MHz frequencyUSB, Ethernet connections for data transferLight Controllers are tied directly to doorway sensors

Overall Design

Overall DesignMain Processor Stellaris LM3S8962Door Sensor & Light/Electronics Controller MSP430G2553Communication RF Transceiver CC1100(All TI Components)

Main Processing Chip Comparison (ARM M3 Processing CoresMCUUART Enabled?Hibernation ModuleOutput Current

On Chip ServerTI Stellaris LM3s8962YesYes5-48 mAYesAT91 SAM3SYesYes80 mANoAnalog Devices ADUCRF101

YesYes192 A - 32 mA NoMain Processor Logic

Main Processor Functionsvoid UART_Config()Initializes several variables (setting pin outs, initializing UART interrupts, configuring baud rate, stop bit, parity bit, word length)void UART_Send(char dataOut)Sends character to FIFO buffer to send out (8 bits)char UART_Receive()Returns character from FIFO buffer (8 bits)int UART_CRC(char dataIn)Runs CRC on received data to verify validity.void UART_Store(char address, int status)Stores latest On/Off status of device at any given address at the Default Registerint UART_Retrieve(char address)Retrieves default status at device at any given device from the Default Register

RF CircuitL112 nHC827 pFC141.5 pFL212 nHC927 pFC15100 pFL312 nHC101.0 pFC24100 nFL418 nHC11100 pFR1556 kL512 nHC121.5 pFQ226 MHzL618 nHC133.3 pFMain Processor CommunicationCommunication protocol: RF900 MHz115,200 Baud Rate 8 bits:3 bit digital handshake5 data bitsCRC algorithm for error checkingMain Processor SoftwareProtocol: UART5 data bits:4 address bits (configured through dip switch)1 status bit (on or off)Default (Last checked) status stored to register in memory

Main Processor Physical Design

MSP430 Light Control Logic

Sensor Processor Comparison Ti MSP430Atmel XMEGAArduino UNOCost (Development Kit)$4.50$39.00$20.00Pin count204428Current draw while asleep @ 3.3V0.5 A1.65 A6 ACurrent draw while active @ 3.3V440 A4.78mA50mAUART built inYesYesYesSchematic of Motion Sensor MSP430

Motion MSP430 Functionsvoid initializepins(void) - perform the initial processor set up

char datain(void) - function for receiving data over UART from the brain

void dataout(char) - function for sending data over UART to the brainFunctions cont.void lightcontrol(char) - controls the status of the lights depending on what needs to be on or off

void outletcontrol(char) - controls the status of any outlets depending on what signals are sent from the brain

void doorsensor(void) - contains the logic to be used for determining light status when the doorway is tripped

Testing Environment for motion sensors

Blinds Control LogicSchematic of Blinds MSP430

Blinds MSP430 Functionsvoid initializepins(void) - perform the initial processor set up

char datain(void) - function for receiving data over UART from the brain

void dataout(char) - function for sending data over UART to the brainFunctions cont.int tempin(void) - measures the outside temperature

int lightin(void) - measures the incoming light intensity

void servo(int) - controls the position of the servo motor for opening and closing the blindsGraphical User InterfaceOnce the user pulls up the IP address of the Server in their browser, the GUI will appear in the users web browser.The GUI will display the status of the lights, electronics, and blinds in each roomallow the user to turn a light on or off by clicking the appropriate buttonallow the user to open or close the blinds in each roomGraphical User Interface

Remote Access

Remote Access-RoutingThe Stellaris LM3S8962 will be on the PCB fitted with an RJ45 jack that will connect to the homes internet connection through the Linksys WRT54G router via an Ethernet cable.Since we are assuming that different people would have different routers, the choice of which router to use was fairly arbitrary, as the prototype would need to be compatible with a wide range of routers.The Linksys WRT54G was chosen since it is a popular router which is reasonably priced The main requirement for the router to be compatible would be that a user would be able to properly configure the routers port forwarding

Remote AccessConfigure HTTP forwarding: Application: HTTP External port: 80 Internal port: 80 Protocol: TCP IP Address: 192.168.200 Configure HTTPS forwarding: Application: HTTPS External port: 443 Internal port: 443 Protocol: TCP IP Address: 192.168.1.200 Configure RWW forwarding: Application: RWW External port: 4125 Internal port: 4125 Protocol: TCP IP Address: 192.168.1.200

Work distribution chart

Progress

ItemCostStellaris (Kit + Chips)$100MSP430 (Kit + Chips)$15IR Sensors$100RF Transceivers$60Linksys Router$80Misc. Parts$100PCB$200Total:$655Budget and Financing Funding will be provided by Work Force Central FloridaWhat is Left to Do: Servo motors Finishing the development of the GUI RF Testing Power design PCB layoutIssuesRF Establishing handshake, CRCDemonstration Displaying household application in a presentationNetworking Establishing our web page over an internet connection (specifically UCFs internet connection)Questions?


Top Related