Home Wireless Control Students Ehud Ravitz Lee Blum Instructor Konstantin Sinyuk Part A Final Presentation Project A - 044167.

Slides:



Advertisements
Similar presentations
Nios Multi Processor Ethernet Embedded Platform Final Presentation
Advertisements

Bus Tracking System Fianl Part A presentation Presented by: Gal gavish and Yuval Peled Supervisor: Hen Broodney Winter High Speed Digital Systems.
Two Way Remote Control Dr. Abdelhafid Bouhraoua. Outline Context, Motivations and Applications Principle of Operation Components Implementation Problems.
DATA COLLECTION USING ZIGBEE NETWORK Timothy Melton Moscow, ID.
LOGSYS Development Environment of Embedded Systems Tamás Raikovich Béla Fehér Péter Laczkó Budapest University of Technology and Economics Department of.
Senior Design Project Mid-Course Design Review Wireless Home Audio Advisor: Professor Yngvesson, K Sigfrid Group members: Wan Ng (Hardware Protel) Eric.
Home Wireless Control Students Ehud Ravitz Lee Blum Instructor Konstantin Sinyuk Part B Final Presentation Project B
Control System for Smart House Characterization Students Yossi Lempert Natan Keren Instructor Konstantin Sinyuk.
Home Wireless Control Students Lee Blum Ehud Ravitz Instructor Konstantin Sinyuk Characterization Presentation.
Bus Tracking System midterm presentation Presented by: Gal gavish and Yuval Peled Supervisor: Hen Broodney Winter High Speed Digital Systems.
Critical Design Review VST Vigilant Sensing Technologies Joel Keesecker, Mark Kien, Pat Hauser.
Reliable Data Storage using Reed Solomon Code Supervised by: Isaschar (Zigi) Walter Performed by: Ilan Rosenfeld, Moshe Karl Spring 2004 Part A Final Presentation.
Home Wireless Control Students Ehud Ravitz Lee Blum Instructor Konstantin Sinyuk Poster Project B
Pundik Dmitry & Blekhman Alexandr 2001/02 Final Presentation Semester A הטכניון - מכון טכנולוגי לישראל המעבדה למערכות ספרתיות מהירות הפקולטה להנדסת חשמל.
Control System for Smart House Poster Students Yossi Lempert Albert Achtenberg Instructor Konstantin Sinyuk.
Wireless Control with ZigBee Final Presentation Students Yossi Lempert Natan Keren Instructor Konstantin Sinyuk.
Wireless Control with ZigBee Poster Students Yossi Lempert Natan Keren Instructor Konstantin Sinyuk.
Home Wireless Control with ZigBee protocol Mid Semester Presentation Students Yossi Lempert Natan Keren Instructor Konstantin Sinyuk.
Control System for Smart House Characterization Students Yossi Lempert Albert Achtenberg Instructor Konstantin Sinyuk.
Design and Implementation of a Virtual Reality Glove Device Final presentation – winter 2001/2 By:Amos Mosseri, Shy Shalom, Instructors:Michael.
Systems Programming Course Gustavo Rodriguez-Rivera.
Performed by: Kobbi Kfir-El Ohad Brandelstein Instructor: Konstantin Sinyuk המעבדה למערכות ספרתיות מהירות High Speed Digital Systems Laboratory הטכניון.
DMX512 Programmable Theater Lighting Controller Jeff Sand and Kris Kopel Advisor: Dr. Don Schertz May 8, 2001.
Reliable Data Storage using Reed Solomon Code Supervised by: Isaschar (Zigi) Walter Performed by: Ilan Rosenfeld, Moshe Karl Spring 2004 Midterm Presentation.
USB Mass-Storage Implementation on an Embedded System (D0113) Supervisor: Dimitry Sokolik Performed by: Yoav Gershoni Shachar Faigenblat Final Presentation.
Home Wireless Control Students Lee Blum Ehud Ravitz Instructor Konstantin Sinyuk Mid Semester Presentation Project A
Programmable Delay of Radar Pulse Technion-Israel Institute of Technology Electrical Engineering Department.
Control System for Smart House Mid Semester Presentation Students Yossi Lempert Albert Achtenberg Instructor Konstantin Sinyuk.
Lab 4 ZigBee & with PICDEM Z Boards 55:088 Spring 2007.
Technion-Israel Institute of Technology Electrical Engineering Department High Speed Digital Systems Laboratory Project subject: wireless biofeedback system.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Programming 8-bit PIC Microcontrollers in C Martin Bates Elsevier 2008.
Bluetooth based home automation system N.Sriskanthan, F.Tan, K. Karande Microprocessors and Microsystems 26(2002) Presenter: Bui Phuong Nhung.
EMBEDDED WEB SERVER. CONTENT: 1.ABSTRACT 2.INTRODUCTION TO EMBEDDED SYSTEMS 3.INTRODUCTION TO EMBEDDED WEB SERVER 4.BLOCK DIAGRAM 5.POER SUPPLY 6.COMPONENT.
Walkie-Talkie via Bluetooth By : Kopitman Reem Stolberg Dmitri Instructor: Chen Koren The final presentation.
Short Range Wireless Connectivity Solutuions
Oppenheimer Technologies Rick King Jonathan Creekmore.
NetBurner MOD 5282 Network Development Kit MCF 5282 Integrated ColdFire 32 bit Microcontoller 2 DB-9 connectors for serial I/O supports: RS-232, RS-485,
DEC0905 Remote Control of Home Appliances ABSTRACT The objective of this project is to enable users to remotely control home appliances and systems over.
Multimedia & Communications ATMEL Bluetooth Background information on Bluetooth technology ATMEL implementation of Bluetooth spec.
Lab 4 ZigBee & with PICDEM Z Boards 55:088 Fall 2006.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
2009 Sep 10SYSC Dept. Systems and Computer Engineering, Carleton University F09. SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices 7.2.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
Done By: Amnon Balanov & Yosef Solomon Supervisor: Boaz Mizrachi Project ID: d02310.
MICROCONTROLLER SYSTEMS Part 1. Figure 1.1Elements of a digital controller CPU Central Processing Unit Input Peripherals Output Peripherals ROM Read Only.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
EA PROJETO EM ELETRÔNICA APLICADA Bruno Mourão Siqueira.
1 Presented By: Eyal Enav and Tal Rath Eyal Enav and Tal Rath Supervisor: Mike Sumszyk Mike Sumszyk.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
ChibiOS/RT Demo A free embedded RTOS
Final Presentation Smart-Home Smart-Switch using Arduino
Product Overview 박 유 진박 유 진.  Nordic Semiconductor ASA(Norway 1983)  Ultra Low Power Wireless Communication System Solution  Short Range Radio Communication(20.
박 유 진.  Short RF Range(~10m)  Reduce range by obstruction  Low data rate(1Mbps)  Normal Audio data rate : 1.5 Mbps  CD Quality Audio data rate :
By.  The main aim of this project is to get information about the condition of the baby, which is in ICU through blue tooth medium.  In earlier days,
SUBMITTED BY EDGEFX TEAM PORTABLE CODED WIRELESS MESSAGE COMMUNICATION BETWEEN TWO PARTIES SECRETLY WITH LCD DISPLAY.
TRANSMISSION LINE MULTIPLE FAULT DETECTION AND INDICATION TO EB
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
BATCH MEMBERS R.ABHISHEK-08N41A0401 K.DHEERAJ REDDY-08N41A0412 S.RAJENDRA REDDY-08N41A0458 JYOTHISHMATHI COLLEGE OF ENGINEERING AND TECHNOLOGY,TURKAPALLY.
DALCON RFID IMPROVEMENT ECE 599, SPRING 2011 Brad Gasior, ECE Mike Fradkin, ECE Richard Young, ECE Sean Rinehart, ECE.
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
Voice Controlled Robot by Cell Phone with Android App
PICK N PLACE ROBOTIC ARM AND MOVEMENT CONTROLLED BY ANDROID WIRELESSLY
Controlling of robot using voice
PICK N PLACE ROBOTIC ARM AND MOVEMENT CONTROLLED BY ANDROID WIRELESSLY
Introducing the PIC Mid-Range Family and the 16F84A
Presentation transcript:

Home Wireless Control Students Ehud Ravitz Lee Blum Instructor Konstantin Sinyuk Part A Final Presentation Project A

Project Goals Create a data and control network over household appliances. Check future interfacing of the System with external Controllers (iPaq, CAN2USB…) Should be implemented on cheap software. Should be friendly to both users and application developers.

Web iPaq General Block Design Access Point End Point Legend:CAN BT

Network Structure Each household appliance will have an End Point embedded within it. In Each room in the house, an Access Point will control over all the End Points in the room using a Bluetooth wireless connection. All the Access Points will communicate with one another through a wired CAN network.

Design Tools Microchip PIC18F452/8 on PICDEM2 boards. MCC18 compiler using MPLab IDE. Philips Bluetooth units.

Household Appliance End Point Design A Microchip PIC18F452 controls a Philips Bluetooth unit using UART. The application on the PIC controls the appliance, according to Bluetooth data transfers with the Access Point. UART PIC18F452 Philips Bluetooth Unit BT

End Points could also be… CAN2USB control over a PC connected to the web (Control Protocols over the Internet) An iPaq unit, setting as a remote control (using BT) And many more…

Access Point Design A Microchip PIC18F458 (with CAN support) controls a Philips Bluetooth Unit using UART. Each Access Point, located in a different room of the house, can communicate with up to seven local End Points using Bluetooth. Extra E 2 PROM memory stores the Access Point’s database of local and total End Points (controlled with I 2 C). The PIC uses CAN 2.0B to communicates between different Access Points, enabling control of an Access Point on End Points in different rooms.

Access Point Design Access Point CAN Connection To other Access Points CAN Connection To other Access Points CAN controller End Point End Point UARTI²C BT Philips BT UnitDB of End Points on E 2 PROM PIC18F458

Specifications Microchip PIC18F452/8 DC – 40 MHz Operating Frequency 32KBytes Internal Program Mem BytesData Memory 256 BytesData EEPROM Memory 2: 18 ; 8: 21Interrupt Sources A, B, C, D, EI/O Ports 4Timers Addressable USART, MSSP (+ CAN on 8) MSSP, CAN, Serial Communications YesParallel Communications (PSP) 8 input channels 10-bit Analog- to-Digital Converter 2: 0 ; 8: 2 Analog Comparators 2: No ; 8: YesAnalog Comparators VREF Output Yes Programmable Low Voltage Detect YesProgrammable Brown-out Reset 2: No ; 8: YesCAN Module 75 InstructionsInstruction Set Yes40-pin PDIP

Specifications Phillips Bluetooth Philips Components V GHz to GHz Operating Frequency Class 2 (0 dBm nominal) Transmit Output Power Up to 15m (with integral antenna)Operating range Less than 1E-3 BERReceiver Sensitivity Embedded software stack supporting an HCI interface Embedded Software Point to Multipoint (up to 7 slaves) Master/Slave switching supported Network Topology USB v1.1, UART at up to 921 kbps (low voltage serial interface) Interface 3 to 3.4V (or direct power from USB connection) Power Supply Idle < 2mA File transfer 70mA Peak < 100mA Current consumption -10 to + 55°COperating Temperature -40 to + 85°C Storage Temperature 45 x 48 x 7mmDimensions

CAN max. freq. is 1Mbps. Bluetooth effective freq. is 750KB/sec. PIC to BT UART connection is in 115,200 bps. PIC’s effective throughput is 10MIPS. Therefore, the CAN connection can support a system with four Access Points, each one transferring one End Point’s data, as expected. Work Frequencies

System’s Advantages The Bluetooth Protocol is a standard. Making generic as possible to produce. Should be embedded in all household appliances, of all manufacturers. Strong enough to handle intended rate of communications (previous slide), mainly short data transfers for control functions. Cheap Hardware.

Communication Algorithm Access Point (AP) is always Master. End Points (EP) are always Slaves. AP Scans for updated EPs in area every X sec. AP Calls EP when found. EP stores AP’s BD Address to know who is his Master. EP refuses other APs trying to connect him when is with a Master. Packets sent from APs to EPs: –Command –Inquiry for Data Packets sent from EPs to APs: –Data in response to inquiry / command

Debugging Methods The MPLab Debugger, supplied with the PIC Development Kit. The BT C++ project on PC. The LCD, supplied on the PICDem 2 board, for faster, easier and specific tests. LEDs…

Final System Block Design UART BT Low BT High CAN-Low CANopen / DeviceNet I²C E²PROMButtons LCD SCHEDULER – HWC LAYER Considering using RTOS AP App. EP App. AP App. Lower Level EP App. Lower Level Opaque Background == implemented modules

Part A status Modules to control the PIC : UART, LCD. A Bluetooth module (BT stack on PIC implementation). A Server (Access Point) Application. A Client (End Point) Application.

1. UART module An initialization function. Read / Write functions. Close UART function (closes UART after waiting for all data to be sent / received). An interrupt service routine to control the UART module. This module was compiled to be a standard EUART library.

2. LCD module An initialization function.An initialization function. Functions to write Strings and Constants to the LCD screen.Functions to write Strings and Constants to the LCD screen. This module was compiled to be a standard LCD library.

3.1. Bluetooth module – HCI Layer An Initialization function. Bluetooth stack commands functions: –Reset –Write Scan Enable –Accept Connection Request –Disconnect –Inquiry –Create Connection.

3.1. Bluetooth module – HCI Layer – Cont. A Get Event Routine to handle incoming events: –Reset complete –Read buffer size complete –Write scan enable complete –Accept connection request status –Disconnect status –Disconnect complete –Create connection status –Connection complete –Connection request –Inquiry status –Inquiry result –Inquiry complete –Number of complete packets

3.1. Bluetooth module – HCI Layer – Cont. Error Handling Recognizing errors and sending appropriate return values: –TRANSMIT FREE SPACE ERROR –RECEIVE FREE SPACE ERROR –CMD BUFFER ERROR –DATA PACKET BUFFER ERROR –VOICE PACKET BUFFER ERROR –DATA PACKET SIZE ERROR –VOICE PACKET SIZE ERROR –UNKNOWN COMMAND STATUS EVENT ERROR –SUCCESS…

3.2. Bluetooth module – Functional API Sublayer Init Search (Inquiry) Connect / Accept Connection Send / Receive Data Disconnect This module will be implemented in Part B

4. The Applications EP and AP demo apps to show BT stack layer functionalities: AP functionality:AP functionality: –Inquiry –Create connection –Select Desired Data using LCD and Buttons –Send data –Terminate Connection EP functionality:EP functionality: –Write Scan Enable –Accepts Connection –Receives Data –Shows Data on LCD

* End Points also handle input from the appliance. In part B, the main module in Access Points will handle input/output from CAN module routines as well. UART Module Control the Phillips unit LCDModule BluetoothModule Manage the Bluetooth protocol Output Debug Debug Interrupt-Driven Application* (Client / Server) Module dependency diagram (Current State)

DEMONSTRATION

Difficulties we have encountered The PIC has many limitations:The PIC has many limitations: –One process only. –Very small RAM (1.5K). –Using ROM as RAM not possible (mcc18). –10Mhz effective CPU freq. –Only 32K ROM to store program. Still, need to handle high frequency data transfers.Still, need to handle high frequency data transfers. For all of the above reasons, conversion from PC and iPaq projects was not in question. All had to be written from scratch.For all of the above reasons, conversion from PC and iPaq projects was not in question. All had to be written from scratch. Moreover, no PIC modules were available for UART and LCD, and had to be developed.Moreover, no PIC modules were available for UART and LCD, and had to be developed.

Solutions we came up with The emphasis when writing the code was on smart and efficient code (space and time).The emphasis when writing the code was on smart and efficient code (space and time). Thus, the current apps take only 12.5K of the 32K program memory.Thus, the current apps take only 12.5K of the 32K program memory. Thus enough space left for the CAN module (~15K).Thus enough space left for the CAN module (~15K). All the UART code, and thus the BT events, is interrupt driven.All the UART code, and thus the BT events, is interrupt driven. Façade of C routines for LCD Assembly code.Façade of C routines for LCD Assembly code.

Final System Block Design UART BT Low BT High CAN-Low CANopen / DeviceNet I²C E²PROMButtons LCD SCHEDULER – HWC LAYER Considering using RTOS AP App. EP App. AP App. Lower Level EP App. Lower Level Opaque Background == implemented modules

CAN issues There are two alternatives: –DeviceNet module available from Microchip –CANopen module by Konstantin Sinyuk We will probably develop with the DeviceNet module since it doesn’t have the extra features of the CANopen, that we do not need for HWC.

Time Table 01/12/03 - BT Functional API Sublayer 15/12/03 - I²C module 01/02/04 – CAN-LOW & CANopen or DeviceNet module 01/03/04 – HWC Scheduler module 15/03/04 - AP / EP apps April Presentation & Book Army Service – July 2004

To be continued