Beruflich Dokumente
Kultur Dokumente
ABSTRACT
The objective of this project is to enable users to remotely control home appliances and systems over the Internet using a web interface. The system will enable users access a web interface running on a server located at home. Users will be able to monitor the status of the home appliances, and issue control commands to perform specific functions. For Example open or close a garage door, program the home security system, reprogram the lawn watering system, etc. A function completion code is then returned to the user. The interface to home appliances will be through wireless Bluetooth communication. A microcontroller will be connected directly to the appliance being controlled and execute the commands. It will also interpret the feedback information and send it to the server.
Bluetooth Protocol
Bluetooth Adapter Bluetooth Module Bluetooth Connection n Request for command Send device name {gd,th} for garage door and thermostat respectively Request a universal action
Bluetooth Module
PROJECT DESCRIPTION
Problem Statement
Design and Implement a system that will enable users to remotely control their home appliances through the Internet and get feedback from the appliance.
Acknowledgement
Request action * = {u,d} for opening or closing the garage door respectively Acknowledgement (command executed) Request the current status of the garage door. Status is detected by the IR sensor. Respond the with status ** = {up,dn,op,cl} where
up: garage door currently opening op: garage door already open cl: garage door already closed
Need Statement
The system designed will provide a new product to the newly emerging automation and controls market. It will be used in households to remotely control and monitor various home appliances through the Internet.
DESIGN REQUIREMENTS
FUNCTIONAL REQUIREMENTS Access Point
Must Be Wireless Must use a wireless technology Must be able to control the device Must be able to parse and interpret commands
Relay circuit
Device control unit is the major component of this system. It consists of a microcontroller and a Bluetooth module. This unit will connect directly to the device and control the functioning of the device based on the commands received from the server. DCU connects to the server through Bluetooth using the Bluetooth module. DCU will communicate with the server in order to receive commands and send responses in order to provide status data to the user.
Sensor
An IR sensor is used to detect if the garage door is open or closed since the user might simply request the current status of the garage door.
Client Interface
Must be able to receive user input Must display the devices, and controls to those devices, to the user Must have a logon method for verifying users
Microcontroller Units
Must be able to receive commands from the access point. Must be able to send status messages to the server wirelessly through the access point.
Devices
This refers to the home appliance that is controlled by the DCU. Appliances considered for this project is a garage door opener. A relay circuit is used to connect the microcontroller to the garage door opener.
TESTING
Server Testing
The functionality of the server was first developed using a test program. This program allowed us to connect to the microcontroller via Bluetooth connection without using a fully developed web server. In later development of the server we also used a dialog box to let us know what actions were being performed on the server. GUI must have an intuitive look and feel for the user
Test Program
Server Dialog
Microcontroller Testing
Since the microcontroller communicates to three separate devices via UART, a test module that communicated through a computers serial port was developed using the UART library and a serial communication program called Brays Terminal. Once the UART code was developed for basic serial communication, three separate test modules were developed for the infrared sensor, Bluetooth device, and garage door relay. Each module was developed to run on a separate port of the microcontroller. An LCD screen connected to the microcontroller was used to output results for each test module until the Bluetooth server was fully functional.
HTML GUI
Brays Terminal
Internet IR Sensor Bluetooth USB Adapter Bluetooth module Garage door Opener
LCD Module
Server
Microcontroller
SYSTEM DESCRIPTION
Server Description
The server contains several parts. The first of which is an HTTP servlet that runs server side. When this servlet is loaded it sends out a broadcast for all available Bluetooth devices. The devices are filtered for the Easy Bluetooth module, and the servlet gives the command that it is ready.
Resources
The second part of the server is the user interface. Once the servlet is ready, the user may go to the website which is running the servlet. The servlet passes back a list of devices found, and the user may select from a list of devices and start sending messages to the device. JavaScript is used to call an AJAX request to the servlet in order to pass off communications Easy Bluetooth Module LMX9820 Bluetooth USB Adapter IR Sensor Garage Door Opener Microcontroller Poster Total $70 $27 $15 $10 Donated by Door & Fence Store Donated by Team May0613 $50 $ 172