Download - DEC0905 IRP Presentation
-
8/7/2019 DEC0905 IRP Presentation
1/28
Remote Control of Home
Appliances Using theInternetTeam DEC0905
Elie Abichar
Rachel Ayoroa Chris Tefer Ananta Upadhyaya
Faculty Advisor & Client: Dr. Ahmed Kamal
Website:http://seniord.ece.iastate.edu/dec0905/
-
8/7/2019 DEC0905 IRP Presentation
2/28
Abstract
Problem Statement
Design and Implement a system that willenable users to remotely control their homeappliances through the Internet and getfeedback from the appliance.
Need Statement
The system designed will provide a newproduct to the newly emerging automation andcontrols market. It will be used in householdsto remotely control and monitor various home
appliances through the Internet.DEC 0905 2
-
8/7/2019 DEC0905 IRP Presentation
3/28
Concept SketchUser
Server Bluetooth
USB
Adapter
Garage door
OpenerBluetooth module Microcontroller
Internet
IR Sensor
DEC 0905 3
-
8/7/2019 DEC0905 IRP Presentation
4/28
System Operating
Environment The system components will operate indoors undernormal room temperature or in an environment protectedfrom weather elements.
The system would operate within the temperature andhumidity limits for proper operation of hardware.
A Internet connection would be necessary for the
operation of the system.
DEC 0905 4
-
8/7/2019 DEC0905 IRP Presentation
5/28
Functional Requirements
Bluetooth Dongle
Must Be Wireless
Must be able to send and receive messages from the
blue tooth module
Bluetooth Module
Must be able to send and receive messages from theaccess point
Must communicate with the access point wirelessly
Must interface directly to the Microcontroller
DEC 0905 5
-
8/7/2019 DEC0905 IRP Presentation
6/28
Functional Requirements(2)
Microcontroller Units
Must be able to receive commands from theBluetooth module
Must be able to send status messages to theBluetooth dongle
Must be able to control the device
Must be able to parse and interpret commands
Client Interface
Must be able to receive user input
Must display the devices, and controls to thosedevices, to the user DEC 0905 6
-
8/7/2019 DEC0905 IRP Presentation
7/28
Non-Functional
Requirements GUI must have an intuitive look and feel for the user
Wireless antennas must be internal or shorter than
4 inches
Access point must have a footprint of less than 50feet
DEC 0905 7
-
8/7/2019 DEC0905 IRP Presentation
8/28
Market and Literature
SurveySimilar Systems HAI products
Proliphix
Technologies
Wireless communication: Zigbee, Bluetooth.WLAN
Security: AES, RSA, MD5 Microcontrollers: AtMega 128, Jennic, MIPS
Transceivers: Easy Bluetooth, LMX 9820, WT11,WT12
DEC 0905 8
-
8/7/2019 DEC0905 IRP Presentation
9/28
Deliverables
Server
User Interface
Device control Unit Project Plan
Project Poster
Design Documents
Final Report
DEC 0905 9
-
8/7/2019 DEC0905 IRP Presentation
10/28
Work Breakdown
DEC 0905 10
-
8/7/2019 DEC0905 IRP Presentation
11/28
Resource Requirement
Item Cost
Easy Bluetooth Module $ 70
LMX9820 $27
Bluetooth USB Adapter $15IR Sensor $10
Garage Door Opener Donated by Door & Fence Store
Microcontroller Donated by Team May0613
Poster $50
Total $ 172
DEC 0905 11
-
8/7/2019 DEC0905 IRP Presentation
12/28
Project Schedule
DEC 0905 12
-
8/7/2019 DEC0905 IRP Presentation
13/28
Risks
Time management: All four team members arecurrently full time students
Project Complexity: Lot of subsystemsconnected together that we have to figure outhow would they communicate to each other
New technologies: Deal with new hardware andsoftware
DEC 0905 13
-
8/7/2019 DEC0905 IRP Presentation
14/28
User Interface Description
DEC 0905 14
-
8/7/2019 DEC0905 IRP Presentation
15/28
Server Connections
DEC 0905 15
-
8/7/2019 DEC0905 IRP Presentation
16/28
Server Description
The server contains three components. The HTMLwebsite, JavaScript page handler, and the HTTP server.
The HTML allows for an easy user interface. JavaScript communicates with the server via AJAX The server communicates with the devices via
Bluetooth
DEC 0905 16
-
8/7/2019 DEC0905 IRP Presentation
17/28
Device Control Unit ( DCU )
The Device Control Unit consists of the microcontrollerand a Bluetooth module that is connected to it
The Bluetooth Module: provide the microcontroller theability to wirelessly communicate with Bluetooth dongle onthe server side
The Microcontroller: connected directly at the other end
to the home appliance and is able to control that device
DEC 0905 17
-
8/7/2019 DEC0905 IRP Presentation
18/28
Bluetooth Communication
The Bluetooth dongle: connected on the server side The Bluetooth module: connected on the UART (Universal
Asynchronous Receiver / Transmitter) port of the microcontrollerwhich is PORT D
This PORT has a UART transmit pin TX, a UART receive pin Rxand a power and ground pins
Bluetooth module sends data at 9600 baud rate and themicrocontroller system clock runs at 4MHz, we had to calculatethe baud rate register value to be 4M/9600/16 - 1 rounded to
nearest integer A specific protocol was setup for proper communication
BluetoothModule
DEC 0905 18
-
8/7/2019 DEC0905 IRP Presentation
19/28
up: garage door is open dn: garage door isclosed
BT dongle BT module
BluetoothConnection
n
Device name (**)
a
b
*
b
s
* *
Request for command
Send device name {gd,th} for garage door andthermostat respectively
Request a universal action
Acknowledgement
Request action * = {o,c} for opening or closingthe garage door respectively
Acknowledgement (command executed)
Request the current status of the garage door
Respond the with status ** = {up,dn} where
DEC 0905 19
-
8/7/2019 DEC0905 IRP Presentation
20/28
Microcontroller (STK300)
The microcontroller: has 6 different ports with 10pins each
Port B is used to power up the garage door openercontrol circuit, and the control signal wire is as wellconnected on Pin 2 of Port B
This pin can be programmed using AVR studio so itsends 5V signals to toggle the switch
20DEC 0905
-
8/7/2019 DEC0905 IRP Presentation
21/28
Relay Circuit
Connected between themicrocontroller and the garage dooropener
Takes 5V output from themicrocontroller and switches 24Vgarage door motor
Diode protects the microcontrollerfrom back EMF
Relay
21DEC 0905
-
8/7/2019 DEC0905 IRP Presentation
22/28
IR Sensor Used to detect the status of the garage door
Range: 9cm to 90cm
The sensors Voltage reference is connected to the Arefpin of the analog port and the sensors digital output isconnected to ADC pin of the microcontroller
The conversion is done programmatically
IR Sensor
DEC 0905 22
-
8/7/2019 DEC0905 IRP Presentation
23/28
Test Plan
Software Testing
Unit testing: Isolate the smallest piece of a testable codeand test it
Regression testing: Re-run previously run test after
modifying functionality End Product testing: All of the functional requirements
would be tested at the very high level, using the userinterface
Non functional Software Testing
Usability testing: Usability testing depends on theuser feedback regarding the user interface.
Hardware Testing
Each hardware component would be tested as soon as weDEC 0905 23
-
8/7/2019 DEC0905 IRP Presentation
24/28
Server Testing
The functionality of the server was first developedusing a test program. This program allowed us toconnect to the microcontroller via Bluetooth connectionwithout using a fully developed web server
In later development of the server we also used adialog box to let us know what actions were beingperformed on the server
DEC 0905 24Server test output
Server TestProgram
-
8/7/2019 DEC0905 IRP Presentation
25/28
Hardware Testing
Since the microcontrollercommunicates to three
separate devices via UART, atest module that
communicated through acomputers serial port wasdeveloped using the UART
librar and a serialDEC 0905 25Brays Terminal MicrocontrollerTesting
-
8/7/2019 DEC0905 IRP Presentation
26/28
Future Work
More Devices with multiplemicrocontrollers
Adding more security features
Adding user authentication andseparation of device controls
DEC 0905 26
-
8/7/2019 DEC0905 IRP Presentation
27/28
Final Thoughts
Allocating more resources to theserver
Being able to begin basicimplementation during the planningstage
Understanding the scope of our project
DEC 0905 27
-
8/7/2019 DEC0905 IRP Presentation
28/28
Any Questions?
Internet
DEC 0905 28