You are on page 1of 32

A Cell Phone-Based Remote Home Control System

Adam Mohling CprE mohbandy@iastate.edu Arturo Palau EE apalau@iastate.edu Issa Drame EE issad@iastate.edu Chau Nguyen EE chayman@iastate.edu
Client: ECpE Department

Advisor: Ahmed E. Kamal, Professor kamal@iastate.edu

May0613 - A Cell Phone-Based Remote Home Control System

Agenda
Problem statement System overview System components

Technology considerations Device operations

Summary and conclusions Questions


May0613 - A Cell Phone-Based Remote Home Control System

Problem Statement

Design a system that allows users, upon authentication, to remotely control and monitor multiple home appliances using a cell phonebased interface.

May0613 - A Cell Phone-Based Remote Home Control System

Project in Action Entire System


Lamp

Controlled Devices

Fan

Thermostat

May0613 - A Cell Phone-Based Remote Home Control System

Project in Action Cellular Phone Communication


Lamp

Controlled Devices

Fan

Thermostat

May0613 - A Cell Phone-Based Remote Home Control System

Cellular Phone Communication


Technologies Considered

Tone Decoding (DTMF) Features


High Compatibility with all cell phone models Limited user interaction More prone to user error (uneditable) Inefficient, time consuming Additional hardware required (convert sound to binary)
Data transmitted in binary form (ASCII) Message can be edited prior to sending

Text Messaging (SMS) Features


May0613 - A Cell Phone-Based Remote Home Control System

Cellular Phone Communication


Technology Selected: Text Messaging Reasons for Selection: Allows user to verify and edit the message before sending to ensure the command issued is the command requested Data is transmitted in binary, requires less hardware to manipulate (as opposed to DTMF) Most commonly used in M2M technology

May0613 - A Cell Phone-Based Remote Home Control System

Cellular Phone Communication


Text Message Implementation

Users will be provided with a list of pre-defined commands that can be stored into the cellular phone Users will then have to enter or issue the commands from the cellular phone defined by the command list Example command : PASSWORD

May0613 - A Cell Phone-Based Remote Home Control System

Project in Action Cellular Module


Lamp

Controlled Devices

Fan

Text Messages

Thermostat

May0613 - A Cell Phone-Based Remote Home Control System

Cellular Modules
Model EE54 Edge Type GSM / GPRS Connection type USB 2.0 Low insertion force system connector 60 pin boardon-board including RS232 for AT + 2 general purpose Serial interfaces Programming AT commands (GSM07.07 and 07.05) Additional features TCP/IP protocol stack. PPP protocol Kit SIM 1.8/3V on board SIM card reader

Required

GM47

GSM / GPRS

AT +proprietary commands

AT access to TCP/IP stack UDP

Required

3/5V SIM reader with SIM detection

GM28

GSM / GPRS

RS232 DB-9 connection

Control via AT commands

AT access to TCP/IP stack UDP UCS2 16 bit data supported

Not Required

3/5V SIM reader with SIM detection

10

May0613 - A Cell Phone-Based Remote Home Control System

Cellular Modules
Module Selected: GM28

Reasons for Selection: RS232 DB9 connector No kit necessary for interface Located coding examples
11
May0613 - A Cell Phone-Based Remote Home Control System

Project in Action - Microcontroller


Lamp

GM28

Controlled Devices

Fan

Text Messages

Thermostat

12

May0613 - A Cell Phone-Based Remote Home Control System

Microcontrollers
Starter Kit STK200 Starter Kit
AT90S8515**(8K bytes Flash) ISP and RS232 9-15VDC or 7-12VAC

STK300 Starter Kit


ATmega128**(128KB Flash; 4KB EEPROM; 4KB SRAM) ISP and RS232; opt. USB 9-15VDC or 7-12VAC

Freescale Starter Kit MC68HC11E9


MC68HC11E9 (12KB Flash/EPROM; 512B RAM; 512B EEPROM) PC COM port 7-18VDC

8051 Starter Kit Philips XA/RD/66x


XA-G49 (64KB Flash; 2KB RAM) RS232 9-15V AC or DC

Microcontroller
Cable/Connection Power Consumption I/O

64-pins
Sockets for various microcontrollers Vcc and Ground for external circuitry Brownout (2.9V or 4.5V level) Application Builder

66-pins
Vcc and Ground for powering external circuitry Include daughter board Brownout (2.9V or 4.5V level) STK300 Application Builder AVR ISP (C-complier) AVR and IAR Studio $85

38 pins
3"x1.5" Solderless Breadboard 32Kbytes external RAM Buffalo Monitor utility for debug and test program AXIDE free Assembler, C compiler

32 pins
40-pin DIP 44-pin PLCC sockets switches and 10-way Bar LED Application Builder C-compiler Demos WINISP and Flash Magic Programming Tools $99 $94.80

Highlights

Software

AVR Studio 3 and 4 AVREdit and AVRGCC

Price

$66

13

May0613 - A Cell Phone-Based Remote Home Control System

Microcontroller
Microcontroller Selected: STK300 Starter Kit Reasons for Selection: Allows large-scaled projects (ATmega128) Interchangeable microcontroller design Sufficient number of I/O pins Vcc and Gnd pins can power external circuitry Application Builder, AVR Studio, and programmable in C Language

14

May0613 - A Cell Phone-Based Remote Home Control System

Programming Languages Considered


All the software developed for this project will be loaded into the memory of the STK300 microcontroller. The language must be supported by the STK300s compiler

The STK300 compiler supports C and Assembly Java and C++ considered because code can be converted to C

Assembly C
15

C++ Java
May0613 - A Cell Phone-Based Remote Home Control System

Development Languages
Development Language Considered Assembly Language Features: Low level language (greater device control) Less memory required Not many development resources/libraries available Team out of practice in Assembly language programming

16

May0613 - A Cell Phone-Based Remote Home Control System

Development Languages
Development Language Considered

JAVA Language Features: Many GSM programming resources available Object oriented language (modular coding) Large memory requirement Poor response time
17
May0613 - A Cell Phone-Based Remote Home Control System

Development Languages
Development Language Considered

C++ Language Features: All team members have knowledge of C++ Object oriented language (modular coding) Not many development resources / libraries available
18
May0613 - A Cell Phone-Based Remote Home Control System

Development Languages
Development Language Considered C Language Features: Universally reliable language Many programming resources available

Serial port libraries GSM libraries

Example code and project resources online Team will need to identify differences between C and C++
May0613 - A Cell Phone-Based Remote Home Control System

19

Development Languages
Development Language Selected: C Programming Language Reasons for Selection: Vast amount of online resources Ease of development Team members have experience coding C
20
May0613 - A Cell Phone-Based Remote Home Control System

Software Development Environment


The code for this project will be developed in a more user friendly environment than AVR Studio (provided with the STK300) Possible Solutions: Eclipse v3.1 MS Visual Studio .NET 2003
21
May0613 - A Cell Phone-Based Remote Home Control System

Software Development Environment


Eclipse v3.1

Free, but requires some setup for team Free through MSDNAA (available to all ECE)

MS Visual Studio .NET 2003

Both are similar in their advantages. Since the .c files will be copied into the STK300s compiler, decision was made to go with Visual Studio .NET
22
May0613 - A Cell Phone-Based Remote Home Control System

Project in Action Controlled Devices


Lamp

GM28

Controlled Devices

Fan

STK300

Text Messages

Thermostat

23

May0613 - A Cell Phone-Based Remote Home Control System

Controlled Devices
The following devices will be controlled by the microcontroller:

Fan Light Digital thermostat

24

May0613 - A Cell Phone-Based Remote Home Control System

Controlled Devices - Fan

25

May0613 - A Cell Phone-Based Remote Home Control System

Controlled Devices - Light


STK300 port B, bit 0 STK300 port B bit 1

Control relay

Manual/Remote select Power from 120VAC outlet Light Switch

26

May0613 - A Cell Phone-Based Remote Home Control System

Controlled Device Status Detection

27

May0613 - A Cell Phone-Based Remote Home Control System

Controlled Device - Digital Thermostat

28

May0613 - A Cell Phone-Based Remote Home Control System

Summary
Experiences Technical Experiences: GSM modules Microcontroller Control circuits synthesis Personal Experiences: Time management Communication Accountability

29

May0613 - A Cell Phone-Based Remote Home Control System

Conclusions
Lessons Learned Functioning in a team environment Should follow assignment criteria closely Amount of detailed documents goes in a professional project

30

May0613 - A Cell Phone-Based Remote Home Control System

Acknowledgements
Special thanks to Sony Ericsson for providing the teams GM28 cellular module Special thanks to Prof Kamal for his continued support to the team

31

May0613 - A Cell Phone-Based Remote Home Control System

Questions?
Lamp

GM28

Any device with an electrical interface

Controlled Devices

Fan

STK300

Text Messages

Thermostat

32

May0613 - A Cell Phone-Based Remote Home Control System

You might also like